Author Topic: What Is Using 1.5gb On Hdd3?  (Read 5539 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« on: January 25, 2006, 05:06:48 am »
I know this topic has been discussed before, but I have searched and didn't find anything about a drive/partition that should be empty while using 1.5 GB of space.
I've enclosed a screenshot of Tree!explorer (with root priv enabled) and below is my output from console:
Code: [Select]
# df -h
Filesystem      Size   Used  Available  Use%   Mounted on
rootfs          32.0M  32.0M      0     100%   /
/dev/root       32.0M  32.0M      0     100%   /
/dev/ram1      108.0k  28.0k  80.0k      26%   /dev
/dev/loop0      25.9M  25.9M      0     100%   /dev
/dev/mtdblock3  89.0M  21.9M  67.1M      25%   /home
none            10.0M  32.0k  10.0M       0%   /dev/shm
/dev/hda1        9.5M   1.0M   8.0M      11%   /hdd1
/dev/hda2        9.5M   1.1M   7.9M      12%   /hdd2
/dev/hda3        3.8G   1.5G   2.3G      39%   /hdd3

What is using 1.5GB on this partition?
Look at the screenshot, and it shows the partition is "empty"
I deleted everything on it. Of course, I backed it up first.

Thank you
Jon
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
What Is Using 1.5gb On Hdd3?
« Reply #1 on: January 25, 2006, 05:11:00 am »
Maybe try...

cd /hdd3
du -h

and see what comes back...
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

TRIsoft

  • Sr. Member
  • ****
  • Posts: 332
    • View Profile
    • http://www.trisoft.de
What Is Using 1.5gb On Hdd3?
« Reply #2 on: January 25, 2006, 05:57:54 am »
Jon_J,

are you sure that you removed the dictionary files and
directories in /hdd3/dict1 and /hdd3/dict2 ?

///TRIsoft

Marc Stephan

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #3 on: January 25, 2006, 10:06:32 am »
cd /hdd3
du -h
4.0k    .

It looks empty now, but why the confusing information with (df -h)?

Stephen, I removed those last week.
I'm wanting to add a ext2 partition. This is why I have deleted all the stuff on hdd3.

BTW, thanks for the 'cd' tip. I thought that was for changing directories only. (Old DOS habits are hard to shed).
Thank you,
Jon
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #4 on: January 25, 2006, 10:37:59 am »
I've seen this before on other *nix boxes.  df is not correct and I used to believe it was because a process was holding something open that was deleted (maybe the dictionary was on fast load).  Probably a reboot would fix things.  I'm not sure of another way.
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #5 on: January 25, 2006, 10:40:20 am »
BTW cd *is* change directories.  You could have carried out the command like this as well

du -h /hdd3
« Last Edit: January 25, 2006, 10:40:35 am by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #6 on: January 25, 2006, 11:11:24 am »
I rebooted, same result with df
If I deleted the dictionary files while they were set to "fast load", does that mean they are still using memory?
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #7 on: January 25, 2006, 11:46:33 am »
Quote
I rebooted, same result with df
If I deleted the dictionary files while they were set to "fast load", does that mean they are still using memory?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=112342\"][{POST_SNAPBACK}][/a][/div]

Well, maybe do a file system check. Maybe old data is deleted, but space has not been made available for new files.

If you boot with the B+D option, login as root and use
fsck.vfat -a -f -t -v -V /dev/hda3

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
What Is Using 1.5gb On Hdd3?
« Reply #8 on: January 25, 2006, 12:16:48 pm »
To use the D+B option do as follows...

i. Remove power and battery from the SL-C3000.
ii. Leaving the Battery Cover OFF, return the battery cover lock to the LOCKED position.

At this point examine the battery compartment. On the edge that is closest to Zaurus Logo are a set of slots where the battery cover 'keys into' when closed.

If you look at the slot that sits almost exactly vertically central of the whole Zaurus (not the compartment) you will notice that there is a reset button. Do NOT press it just yet.

iii. Open the unit so the screen is at right angles to the base unit and sit the unit on the back of the screen so that the keyboard is accessible with one hand and the base of the unit is accessible with the other.

iv. Hold down D+B on the keyboard and whilst these keys are held depress the reset button using the stylus.

v. Release the D+B keys and within a few seconds the unit should start to boot into Emergency Linux.

You can now login as root with no password
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

DReymann

  • Newbie
  • *
  • Posts: 34
    • View Profile
What Is Using 1.5gb On Hdd3?
« Reply #9 on: January 25, 2006, 12:27:59 pm »
Hi,

Quote
I rebooted, same result with df
[...]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=112342\"][{POST_SNAPBACK}][/a][/div]

I am not totally shure but I have in mind that even on linux you have to delete the directory where the files were stored. Only then the inodes are back in the list of available inodes?

As I said, I am not totally shure, but may be worth a try.

Detlev

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #10 on: January 25, 2006, 01:01:17 pm »
Quote
Hi,

Quote
I rebooted, same result with df
[...]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=112342\"][{POST_SNAPBACK}][/a][/div]

I am not totally shure but I have in mind that even on linux you have to delete the directory where the files were stored. Only then the inodes are back in the list of available inodes?

As I said, I am not totally shure, but may be worth a try.

Detlev
[div align=\"right\"][a href=\"index.php?act=findpost&pid=112352\"][{POST_SNAPBACK}][/a][/div]

That would be bad! <g>
Imagine a directory full of large files. You want to delete one large file to regain space on the drive. If you would have to delete the entire directory, you first had to move the other large files somewhere else.
I don't think that this can be the reason.

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #11 on: January 25, 2006, 01:05:16 pm »
I rebooted and logged in as root using the B+D method
I used fsck.vfat -a -f -t -v -V /dev/hda3
It is checking for bad clusters now, but after about 5 minutes, the curser stopped blinking.
The battery light and disk light are both on. (I have it plugged into the power supply).
It's been awhile, and it still says "Checking for bad clusters"
How long should this take??

Thank you,
Jon

EDIT Whew, it's done. Any way to get a screenshot of the output?
This is what appeared after
Checking for bad clusters
-----------------------------------------------------------------
Reclaiming unconnected clusters.
Checking free cluster summery.
Free cluster summery wrong (608516 vs. really 992951)
Auto-correcting.
Starting verification pass.
Checking for unused clusters.
Performing changes.
/dev/hda3: 0 files, 1/992952 clusters
#
-----------------------------------------------------------------
« Last Edit: January 25, 2006, 01:17:24 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #12 on: January 25, 2006, 01:26:41 pm »
Yeah! I think I got it. I hope there aren't any other issues though..

Code: [Select]
$ df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   32.0M     32.0M         0 100% /
/dev/root                32.0M     32.0M         0 100% /
/dev/ram1               108.0k     28.0k     80.0k  26% /dev
/dev/loop0               25.9M     25.9M         0 100% /usr
/dev/mtdblock3           89.0M     22.0M     67.0M  25% /home
none                     10.0M     24.0k     10.0M   0% /dev/shm
/dev/mmcda1             968.3M    333.4M    634.8M  34% /usr/mnt.rom/card
/dev/hda1                 9.5M      1.0M      8.0M  11% /hdd1
/dev/hda2                 9.5M      1.1M      7.9M  12% /hdd2
/dev/hda3                 3.8G      4.0k      3.8G   0% /hdd3
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #13 on: January 25, 2006, 01:55:32 pm »
BTW were you in the directory you were deleting while you were deleting it?
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
What Is Using 1.5gb On Hdd3?
« Reply #14 on: January 25, 2006, 02:09:27 pm »
If you mean while I deleted all the sharp stuff and dictionaries, I first deleted the individual files within the directories, then when all the directories were empty, I was in /hdd3, then I deleted each empty directory, individually.
I used Tree!explorer to delete the files & directories.

Thank you for your help bluedevils,
Jon
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers