Author |
Message |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Sun 09 Dec 2012, 14:20 Post subject:
|
|
greengeek wrote: | rmcellig wrote: | My save file indicator is now green. Here are the contents of my save file. |
In that image there is no data listed for the size of each directory, and I always find this makes it hard to know which directory to investigate in order to trim the excess unwanted files. Does anyone know of a way to display directory size rather than just individual files? |
cd /initrd/pup_rw
du -h -d1
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4943 Location: Republic of Novo Zelande
|
Posted: Sun 09 Dec 2012, 14:28 Post subject:
|
|
I just found a tip on another topic which suggested using menu, filesystem, gdmap to display parts of the filesystem in order to track where the largest blocks of data are. Looks like a really helpful programme. It creates an amazing image - almost worthy of being used as a desktop background.
You just hover over each block and it tells you what it belongs to. Made me realise my mhwaveedit temp files were huge.
Description |
|
Filesize |
41.51 KB |
Viewed |
562 Time(s) |

|
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4943 Location: Republic of Novo Zelande
|
Posted: Sun 09 Dec 2012, 14:34 Post subject:
|
|
jpeps wrote: | cd /initrd/pup_rw
du -h -d1 |
Thanks jpeps. This seems to give an "invalid option" syntax error though. Neither "minus d one" nor "minus d ell" seems to work. Am I reading it wrong? Thx.
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Sun 09 Dec 2012, 15:10 Post subject:
|
|
greengeek wrote: | jpeps wrote: | cd /initrd/pup_rw
du -h -d1 |
Thanks jpeps. This seems to give an "invalid option" syntax error though. Neither "minus d one" nor "minus d ell" seems to work. Am I reading it wrong? Thx. |
that's -d[one]
strange: what version of busybox? busybox | head -1
also: du --help
(try busybox du -h -d1 ??)
edit: both gnu-coreutils and busybox should have -d option.
|
Back to top
|
|
 |
Barkin

Joined: 12 Aug 2011 Posts: 823
|
Posted: Sun 09 Dec 2012, 17:36 Post subject:
|
|
greengeek wrote: | ... my mhwaveedit temp files were huge. |
I had that problem ... http://murga-linux.com/puppy/viewtopic.php?t=74992&sid=56d69fe3ed23172aff3f9d5ffe74d892
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4943 Location: Republic of Novo Zelande
|
Posted: Mon 10 Dec 2012, 02:48 Post subject:
|
|
jpeps wrote: | strange: what version of busybox? busybox | head -1 |
Code: | sh-4.1# busybox |head -1
BusyBox v1.17.2 (2011-10-03 16:04:49 GMT-8) multi-call binary. |
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4943 Location: Republic of Novo Zelande
|
Posted: Mon 10 Dec 2012, 02:52 Post subject:
|
|
jpeps wrote: | try busybox du -h -d1 ??
|
Thanks jpeps - that got it. The busybox du lists all the directories and sizes. cheers.
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4943 Location: Republic of Novo Zelande
|
Posted: Mon 10 Dec 2012, 03:15 Post subject:
|
|
Barkin wrote: | I removed the old mhwaveedit/config file, and mhwaveedit automagically generated a new, much shorter one. |
Thanks Barkin. I have now deleted those temp files and will wait to see what happens.Partview now shows orange instead of red, so some progress there.
EDIT: Looks like I also have a problem with openoffice. I have a directory for /opt/openoffice (about 400MB) and a folder for /opt/libreoffice(also about 400MB). I only use Libreoffice on this machine, so I figure that the openoffice directory is something I don't need. However, if I try to rename it (to see if it causes any problems if I prepare to delete it) it won't let me rename it - it insists on making a duplicate directory with the new name. Hmmm.
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Mon 10 Dec 2012, 04:44 Post subject:
|
|
greengeek wrote: | jpeps wrote: | try busybox du -h -d1 ??
|
Thanks jpeps - that got it. The busybox du lists all the directories and sizes. cheers. |
Could you post "du --version | head -1" ? Maybe old coreutil versions don't include it?
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 892 Location: Staffordshire
|
Posted: Mon 10 Dec 2012, 17:06 Post subject:
|
|
This is from the current Wary:
Code: |
# busybox |head -1
BusyBox v1.19.3 (2011-11-09 07:34:50 WST) multi-call binary.
|
Code: |
# du --version | head -1
du (GNU coreutils) 6.12
|
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Mon 10 Dec 2012, 18:35 Post subject:
|
|
Keef wrote: | This is from the current Wary:
Code: |
du (GNU coreutils) 6.12
|
|
Thanks,
Exprimo uses 8.14, which has -d arg.
6.1 was released in Aug, 2006
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 12824 Location: Arizona USA
|
Posted: Mon 10 Dec 2012, 22:30 Post subject:
|
|
greengeek wrote: | Does anyone know of a way to display directory size rather than just individual files? |
In ROX, ctrl+A (select all), then right-click and choose Count from the ROX menu. ROX will show the count for all the directories you selected with ctrl+A. ROX's count is slightly less than what du says.
I like Gdmap, too.
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4943 Location: Republic of Novo Zelande
|
Posted: Tue 11 Dec 2012, 04:45 Post subject:
|
|
jpeps wrote: | Could you post "du --version | head -1" ? Maybe old coreutil versions don't include it? |
Code: | sh-4.1# du --version | head -1
du (GNU coreutils) 6.9
sh-4.1#
|
Hopefully you can make sense of this. (over my head...). Thx for the help.
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4943 Location: Republic of Novo Zelande
|
Posted: Tue 11 Dec 2012, 05:07 Post subject:
|
|
Flash wrote: | In ROX, ctrl+A (select all), then right-click and choose Count from the ROX menu. ROX will show the count for all the directories you selected with ctrl+A. |
Excellent. Thanks.
|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Tue 11 Dec 2012, 11:34 Post subject:
|
|
greengeek wrote: |
du (GNU coreutils) 6.9
sh-4.1#
[/code]
Hopefully you can make sense of this. (over my head...). Thx for the help. |
The problem is a very old version of GNU coreutils. I'd consider an update.
http://murga-linux.com/puppy/viewtopic.php?t=77671
|
Back to top
|
|
 |
|