[parted-devel] File System Type Not Detected with 4096 byte Sector Size Device

Curtis Gedak gedakc at gmail.com
Fri Apr 30 17:52:38 UTC 2010


Karel Zak wrote:
> On Wed, Apr 28, 2010 at 03:08:02PM -0600, Curtis Gedak wrote:
>   
>> Jim Meyering wrote:
>>     
>>> Curtis Gedak wrote:
>>>       
>>>> My testing using blkid to detect file systems on devices with a 4096
>>>> byte sector size has proven quite promising.  One difference of note
>>>> is that blkid does not display an entry for extended partitions.
>>>>     
>>>>         
>>> Do you mean that libblkid does not display a file system type for
>>> an msdos extended partition?  That makes sense, since the
>>> extended partition is just a container for other partitions,
>>> and hence has no file system of its own.
>>>       
>> I have not worked with the libblkid library directly myself.  It might  
>> or might not recognize an msdos partition table extended partition.
>>
>> My observation is that the blkid command will not return any textual  
>> information if run on an extended partition.
>>     
>
> It depends on version, from the current git tree:
>
>   # blkid -p -o udev /dev/sda2
>   ID_PART_ENTRY_SCHEME=dos
>   ID_PART_ENTRY_TYPE=0x5
>   ID_PART_ENTRY_TYPE_ENC=0x5
>   ID_PART_ENTRY_NUMBER=2
>
> anyway, I don't think this is important detail for parted. The
> libparted has all necessary information to probe for filesystems on
> proper devices.
>
>     Karel
>   

Thank you Karel for providing the options to determine an extended 
partition using blkid.  It is always good to know how to make this 
determination in case I need this while enhancing GParted to support 
sector sizes > 512 bytes.

Regards,
Curtis Gedak



More information about the parted-devel mailing list