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 Wed 01 Oct 2014, 12:14
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 Posts_count  
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   551 Time(s)

partviewM.jpg

partview.gz
Description 
gz

 Download 
Filename  partview.gz 
Filesize  1.86 KB 
Downloaded  216 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   455 Time(s)

pall.jpg

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

pm.jpg

Partview.pet
Description 
pet

 Download 
Filename  Partview.pet 
Filesize  2.43 KB 
Downloaded  251 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0407s ][ Queries: 13 (0.0049s) ][ GZIP on ]