Hi, I'd like to use parted in a script to list primary and logical partitions only (i.e., without extended partitions). I do see the partition type if I use the following command: # parted -s /dev/sdc print Model: Generic STORAGE DEVICE (scsi) Disk /dev/sdc: 3965MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:
Number Start End Size Type File system Flags 1 4194kB 71,3MB 67,1MB primary fat16 boot, lba 2 71,3MB 3965MB 3894MB extended lba 5 75,5MB 344MB 268MB logical 6 344MB 612MB 268MB logical 7 612MB 621MB 8388kB logical ext4 8 621MB 3965MB 3344MB logical ext4 However, if I run the same command with the --machine option, I get the following output: # parted -sm /dev/sdc print BYT; /dev/sdc:3965MB:scsi:512:512:msdos:Generic STORAGE DEVICE:; 1:4194kB:71,3MB:67,1MB:fat16::boot, lba; 2:71,3MB:3965MB:3894MB:::lba; 5:75,5MB:344MB:268MB:::; 6:344MB:612MB:268MB:::; 7:612MB:621MB:8388kB:ext4::; 8:621MB:3965MB:3344MB:ext4::; where the partition type is missing. This is unfortunate :-\ $ parted --version parted (GNU parted) 3.2 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>. Best regards, -- Johan Oudinet R&D Engineer - Green Communications [email protected]
signature.asc
Description: OpenPGP digital signature
