[parted-devel] 'print free': does not work
Debarshi 'Rishi' Ray
debarshi.ray at gmail.com
Thu Nov 30 06:39:10 CET 2006
> Can you provide an example output and point what's the problem on it?
The following session with the Parted sources from the Git tree can be
taken as an example. I have also added the output of 'df' to point the
amount of usage on each file-system.
[rishi at Sunflower parted-build]$ sudo parted/parted /dev/hda
GNU Parted 1.8.0
Using /dev/hda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free
Model: ST93015A (ide)
Disk /dev/hda: 30.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 98.7MB 98.7MB primary ext3 boot
2 98.7MB 19.4GB 19.3GB primary ext3
3 19.4GB 25.9GB 6440MB primary ext3
4 25.9GB 30.0GB 4137MB extended
5 25.9GB 28.0GB 2147MB logical ext3
6 28.0GB 29.1GB 1077MB logical ext3
7 29.1GB 29.3GB 239MB logical ext3
8 29.3GB 30.0GB 674MB logical linux-swap
(parted) select /dev/hda1
Using /dev/hda1
(parted) print free
Model: Unknown (unknown)
Disk /dev/hda1: 98.7MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00kB 98.7MB 98.7MB ext3
(parted) quit
Information: Don't forget to update /etc/fstab, if necessary.
[rishi at Sunflower parted-build]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 18G 15G 1.9G 89% /
/dev/hda1 92M 19M 68M 22% /boot
/dev/hda3 6.0G 5.1G 616M 90% /data
tmpfs 109M 0 109M 0% /dev/shm
/dev/hda7 221M 153M 57M 74% /devel
/dev/hda5 2.0G 1.6G 256M 87% /home
/dev/hda6 996M 737M 208M 78% /tmp
/iso/fc5-dvd.iso 3.1G 3.1G 0 100% /mnt/fc5-dvd-iso
/dev/sda1 492M 465M 2.0M 100% /media/pendr
[rishi at Sunflower parted-build]$
Happy hacking,
Debarshi
--
I only work when I am not doing any assignments.
More information about the parted-devel
mailing list