Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 11:42
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Partview: (Free space in drives) rewritten
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
ecube


Joined: 11 Jul 2008
Posts: 88
Location: Västerås, Sweden

PostPosted: Sun 22 Jan 2012, 16:27    Post subject:  Partview: (Free space in drives) rewritten  

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
partviewM.jpg
 Description   
 Filesize   10.5 KB
 Viewed   489 Time(s)

partviewM.jpg

partview.gz
Description 
gz

 Download 
Filename  partview.gz 
Filesize  1.86 KB 
Downloaded  197 Time(s) 
Back to top
View user's profile Send private message 
ecube


Joined: 11 Jul 2008
Posts: 88
Location: Västerås, Sweden

PostPosted: Thu 26 Jan 2012, 04:31    Post subject: Partview pet  

Partview.pet installs a partview version with the same function as the Perl based version (Partview-2.2)
pall.jpg
 Description   
 Filesize   44.59 KB
 Viewed   414 Time(s)

pall.jpg

pm.jpg
 Description   
 Filesize   18.33 KB
 Viewed   418 Time(s)

pm.jpg

Partview.pet
Description 
pet

 Download 
Filename  Partview.pet 
Filesize  2.43 KB 
Downloaded  230 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0372s ][ Queries: 12 (0.0048s) ][ GZIP on ]