Partview v2016

Miscellaneous tools
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Partview v2016

#1 Post by rcrsn51 »

Partview is the applet that runs when you click the free-space icon in the tray. Partview v2012 shows a bit more information about your partitions and its bar graphs are easier to interpret.

Update: Partview v2016 can correctly display drives with 10+ partitions.

Update: Partview v2015 has an option to run GdMap on your save file/folder.

Update: Partview v2014 has two new features.

1. It displays the status of the /tmp folder. This can be useful if you are running an app that generates a lot of temporary data. This feature is designed for PUPMODE=12 frugal installs.

2. It has a Details tool that analyses the disk usage of a selected folder or mount point. It shows the sizes of all files and top-level directories in the target. This feature only works in recent Puppies. See the discussion here.

--------------------------
Attachments
partview-2016.pet
Updated 2016-06-07
(2 KiB) Downloaded 484 times
partview-2015.pet
Updated 2015-09-17
(1.96 KiB) Downloaded 460 times
screenie.png
(49.46 KiB) Downloaded 1181 times
Last edited by rcrsn51 on Tue 07 Jun 2016, 11:28, edited 20 times in total.

User avatar
Monsie
Posts: 631
Joined: Thu 01 Dec 2011, 07:37
Location: Kamloops BC Canada

Partview v2012

#2 Post by Monsie »

Hi rcrsn51,

I've been looking at Barry's version of partview, trying some changes so it will give an accurate reading after probepart detects an optical drive...

That said, I've since tried your version, and I note some interesting differences, mainly that you have included a reading for one's savefile (when applicable) and have chosen not to include info regarding the optical drive.

I really like the inclusion of the savefile info; I think this is useful. However, I am wondering if a user is using a multisession DVD hence saving info to the disc, would it not be useful to include this information so that one has an idea of how much room is left on the DVD?

Lastly, I noticed that your version of partview gives a reading for the size of the drive and not necessarily the partition. For instance, it shows the size of my hard drive as being 19 gb which is correct, but it has actually been partitioned to include a swapfile so its usable size is about 18.6 gb.
The question I have then is: Should partview provide a reading for the size of the drive or the size of the partition... or maybe both? I have been mulling this over while looking at Barry's version of partview also.

Monsie
My [u]username[/u] is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#3 Post by rcrsn51 »

Thank you for testing this.

Partview 2102 gets its information from the "df -h" command. I looked at including optical drives, but the information didn't strike me as being useful. The disc was always listed as being 100% full.

However, I didn't test this with a multisession DVD. If someone can confirm that the df command does show the correct information for these discs, I can include them.
Lastly, I noticed that your version of partview gives a reading for the size of the drive and not necessarily the partition. For instance, it shows the size of my hard drive as being 19 gb which is correct, but it has actually been partitioned to include a swapfile so its usable size is about 18.6 gb.
I don't understand this. You should see an entry for sda1, NOT sda. The difference between 19 and 18.6 is probably round-off error. Check the values in "df -h".

User avatar
Monsie
Posts: 631
Joined: Thu 01 Dec 2011, 07:37
Location: Kamloops BC Canada

Partview 2012

#4 Post by Monsie »

rcrsn51,

I did some more testing using the df (diskfree) command. I confirmed the reported size of my hard drive as indicated in my first post. Then, I used Gparted in Puppy and shrank the partition by three gigs. I ran df again, and found that the reported size of my hard drive was indeed three gigs smaller. So this answered my question that indeed partview is measuring the partition size and not disk drive capacity. It was just a co-incidence that partview reported my hard drive partition as being the same as its capacity... and this appeared to be due to a rounding error as you suggested.

That said, the accuracy of diskfree would seem to be +/- 500 mb which doesn't seem to be very accurate. Another thing that I notice is that the information it reports does not quite fit.... i.e. available space + used space (does not) = partition size... even when rounding errors are taken into account, so I don't quite know what to make of it here except to say that the algorithm that diskfree uses must be somewhat inaccurate. Notably, however, the reported used space is the same as that reported by partview in Wary Puppy.

Lastly, when I tried df -a command on my debian desktop, I was not able to get a reading for my DVD drive despite having a mounted disk, so maybe my suggestion about including multi-session disks is not workable...

I am including screenshots of my tests using diskfree before and after resizing my hard drive partition for reference.

Monsie
Attachments
diskfree-test.jpg
(118.62 KiB) Downloaded 1066 times
diskfree-test2.jpg
(111.27 KiB) Downloaded 1044 times
My [u]username[/u] is pronounced: "mun-see". Derived from my surname, it was my nickname throughout high school.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: Partview 2012

#5 Post by rcrsn51 »

Monsie wrote:That said, the accuracy of diskfree would seem to be +/- 500 mb which doesn't seem to be very accurate.
I have seen the same thing with df. The %Used number is sometimes significantly different than calculating Used/Size.

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#6 Post by chrome307 »

Thanks for this, works great with Lucid :)

Pelo

pet partview 2012 does not download

#7 Post by Pelo »

pet partview 2012 does not download. Where can i find it ?
Extra question :
Do you know if the items saved in savefile can be listed , that would be of great interest
Thks in advance.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#8 Post by rcrsn51 »

I have re-uploaded it.

Pelo

partview well downloaded now

#9 Post by Pelo »

How fast was the answer ! Merci !
Not so happy : the size is thee usb stick one, not the save file (248M free 134M).

and..... Can we list the contents of the save file ? have you an idea about that ?
Last edited by Pelo on Tue 01 Mar 2016, 07:53, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post by rcrsn51 »

I don't understand what you are looking for. You can see the contents of the savefile by opening /initrd/pup_rw

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#11 Post by ASRI éducation »

I didn't know partview-2012.pet
This is an interesting utility.
Thank you rcrsn51.

Cordialement
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#12 Post by rcrsn51 »

Partview v2014 is posted above.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: Partview v2014

#13 Post by ASRI éducation »

rcrsn51 wrote:1. It displays the status of the /tmp folder. This can be useful if you are running an app that generates a lot of temporary data. This feature does not work in some PUPMODES.
Hello rcrsn51,
What are the functional pupmodes?
Cordialement,
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: Partview v2014

#14 Post by rcrsn51 »

ASRI éducation wrote:What are the functional pupmodes?
In my tests, it works with a regular frugal install (PUPMODE 12) because /tmp is seen as a mount point.

It does NOT work on a flash drive (PUPMODE 13) because that special layered filesystem has /tmp as a regular folder.

I don't have a full install (PUPMODE 2?) to test.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: Partview v2014

#15 Post by ASRI éducation »

rcrsn51 wrote:I don't have a full install (PUPMODE 2?) to test.
I should be able to test soon.

In the meantime, I suggest a few modifications.

Cordialement,
Attachments
partview-0.0.4_20140501.pet
Updated 20140501
(2.09 KiB) Downloaded 630 times
partview-0.0.4_NLS_20140501.pet
Updated 20140501
(1.28 KiB) Downloaded 586 times
partview-0.0.3_b.jpg
(13.48 KiB) Downloaded 1457 times
partview-0.0.3_a.jpg
(22.17 KiB) Downloaded 1390 times
Last edited by ASRI éducation on Thu 01 May 2014, 23:59, edited 2 times in total.
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

Code: Select all

export TEXTDOMAIN=partview
export OUTPUT_CHARSET=UTF-8
Thank you. I forgot those lines.

There are two schools of thought about GUI design. Some people like icons on their buttons with a mouseover to describe the function. I prefer an actual word so there is no confusion about what the icon means.

I will give your version some thought.

Bill

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Locales en Español

#17 Post by nilsonmorales »

Gooood
my friend what about line 107

Code: Select all

  [ "$PART" = "loop1" ] && PART="$(gettext 'savefile')"
anyway i add gettext to the line and translate
Attachments
partview-2014_NLS-ES.pet
Spanish locales
(1.05 KiB) Downloaded 313 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: Locales en Español

#18 Post by rcrsn51 »

nilsonmorales wrote:

Code: Select all

  [ "$PART" = "loop1" ] && PART="$(gettext 'savefile')"
Done and uploaded!

Thanks.

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: Locales en Español

#19 Post by ASRI éducation »

rcrsn51 wrote:
nilsonmorales wrote:

Code: Select all

  [ "$PART" = "loop1" ] && PART="$(gettext 'savefile')"
Done and uploaded!
If you do that, button "Calculate percentage used" will not work (for save file).
Need to improve the script to can translate <frame $PART ($FS)>
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post by rcrsn51 »

Is this because "savefile" has been translated into a phrase with more than one word?

Post Reply