s123456789:~ # parted /dev/hda
GNU Parted 1.8.8
Using /dev/had
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) print
Model: QEMU HARDDISK (ide)
Disk /dev/hda: 671088640s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 63s 19551104s 19551042s primary ext3 , , , , , , , , , type=83, ,
2 19551105s 23470964s 3919860s primary linux-swap , , , , , , , , , type=82, ,
4 23470965s 524287999s 500817035s extended , , , , , , , , , type=05, ,
5 23471028s 43022069s 19551042s logical xfs , , , , , , , , , type=83, ,
6 43022133s 62573174s 19551042s logical xfs , , , , , , , , , type=83, ,
7 62573238s 524281274s 461708037s logical xfs , , , , , , , , , type=83, ,
(parted) resize 4 23470965s -1
(parted) print
Model: QEMU HARDDISK (ide)
Disk /dev/hda: 671088640s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 63s 19551104s 19551042s primary ext3 , , , , , , , , , type=83, ,
2 19551105s 23470964s 3919860s primary linux-swap , , , , , , , , , type=82, ,
4 23470965s 671088639s 647617675s extended , , , , , , , , , type=05, ,
5 23471028s 43022069s 19551042s logical xfs , , , , , , , , , type=83, ,
6 43022133s 62573174s 19551042s logical xfs , , , , , , , , , type=83, ,
7 62573238s 524281274s 461708037s logical xfs , , , , , , , , , type=83, ,
(parted)
|