bug#19836: Missing partition type in machine parseable output
Johan Oudinet <[email protected]>
| Newsgroups | gmane.comp.gnu.parted.bugs |
|---|---|
| Organization | Green Communications |
| Message-ID | <[email protected]> |
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
(application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU24QGAAoJEDzKzBvsE+7Uz3AH/2R8gwNvIcX5qe229HC+EP9Z OCrO9+PfYzBWoksd7wiM6KbuphYZmpFwbEzAdart1IZjSrhJYqcu5V499/7u6OZt cEbLEau/a1V7Xk7XNdfNrQnoXnVv5t/Tr+8Vnab762lSyo24GH0qzvt8oKuhrkXm /M1GtUynTZ9jJnYMkdYlTTAs2u5+2W+l5WMIhdXafmJq/mHiFhOitdr3YgSUeSAV U3gFgnTStqMWKBEozQM3kZv5Ecf/UgFSSMuiaEeTXPh8DqtScDLWT+z6hIGL5sI1 M+3kzn75jr1tOzhf+FsgObUQWSgJ5F/Z67ObeXeodbLpzRhZd4Akz+vXOfOoOM8= =d+px -----END PGP SIGNATURE-----