Partview: (Free space in drives) rewritten

Miscellaneous tools
Post Reply
Message
Author
User avatar
ecube
Posts: 88
Joined: Fri 11 Jul 2008, 17:00
Location: Västerås, Sweden

Partview: (Free space in drives) rewritten

#1 Post by ecube »

Barry has rewritten partview with a new SVG image
http://bkhome.org/blog/?viewDetailed=02648

The reported amount of free disk space may differ substantially depending on the commands used.

For my mnt/home (sdb1) partition the df command yields (in G) 1K-blocks = 114.438, Used = 95.1178, Available = 13.4558
Partview uses probpart for size = 116.21 and free (size - df(Used)) = 116.21 - 95.117 = 21.1
GParted have size = 116.21, used = 96.94, unused = 19.27

For those who prefer to calculate free space in mounted drives as default, I have modified the new partview script so it may be run in two modes
Commands
partview => Mounted Drives
partview all => All Drives

To run partview store partview in /usr/sbin and type

J=`echo | /usr/sbin/partview`
if [ "${J:6:3}" = "all" ]; then
/usr/sbin/partview all
fi

A minor cosmetic issue is the ordering of the partitions. I get
sda1,sda2,sda3,sda4,sdb1,sdb2,sdb4,sdb6,sdd1,sde1,sdf1,sdh1,sdi1,sdc1,sdg1,sdj1,sr0
Attachments
partviewM.jpg
(10.5 KiB) Downloaded 927 times
partview.gz
(1.86 KiB) Downloaded 467 times

User avatar
ecube
Posts: 88
Joined: Fri 11 Jul 2008, 17:00
Location: Västerås, Sweden

Partview pet

#2 Post by ecube »

Partview.pet installs a partview version with the same function as the Perl based version (Partview-2.2)
Attachments
pall.jpg
(44.59 KiB) Downloaded 712 times
pm.jpg
(18.33 KiB) Downloaded 714 times
Partview.pet
(2.43 KiB) Downloaded 451 times

Post Reply