[Voyage-linux] check/repair fs
Robert Rawlins - Think Blue
(spam-protected)
Tue Jun 23 13:50:02 HKT 2009
Morning Gustin,
Thanks very much for the suggestion, that goes someway to making the results more readable, however, this still looks to me as if only 671mb is registered as being used on the fs:
voyage:/# du -Pacmx --max-depth=1 . |sort -g
0 ./dev
0 ./initrd.img
0 ./initrd.img-2.6.23-486-voyage
0 ./proc
0 ./root
0 ./sys
0 ./tmp
0 ./vmlinuz
0 ./vmlinuz-2.6.23-486-voyage
1 ./CHANGELOG
1 ./README
1 ./README.live-cd
1 ./README.pxe
1 ./gmon.out
1 ./initrd
1 ./isolinux
1 ./lost+found
1 ./media
1 ./mnt
1 ./opt
1 ./ro
1 ./srv
1 ./tftpboot
1 ./voyage.depends.list
1 ./voyage.dpkg-l
1 ./voyage.dpkg.list
2 ./pblue
4 ./bin
5 ./boot
5 ./sbin
5 ./thinkblue
8 ./etc
8 ./home
18 ./lib
25 ./rw
181 ./var
414 ./usr
671 .
671 total
However, quite clearly df -h is stating otherwise:
voyage:/# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 2.0G 1.9G 0 100% /
udev 10M 20K 10M 1% /dev
/dev/disk/by-label/ROOT_FS
2.0G 1.9G 0 100% /
/dev/disk/by-label/ROOT_FS
2.0G 1.9G 0 100% /dev/.static/dev
tmpfs 126M 0 126M 0% /lib/init/rw
tmpfs 126M 0 126M 0% /dev/shm
tmpfs 8.0M 0 8.0M 0% /rw/tmp
This problem is also stopping things such as MySQL running as they're throwing an error which says there isn’t enough space left on the device.
Cheers for any further ideas.
Thanks,
Rob
-----Original Message-----
From: Gustin Johnson [mailto:gustin at echostar.ca]
Sent: 23 June 2009 05:47
To: Robert Rawlins - Think Blue
Cc: voyage-linux at voyage.hk
Subject: Re: [Voyage-linux] check/repair fs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Rawlins - Think Blue wrote:
> Sean,
>
> Thanks for your suggestion, when running 'du -c' from / I get an enormous
> list of files and then the bottom total is: '685472 total'
>
I use "du -Pacmx --max-depth=1 . |sort -g"
This will force the output to be in MB, and then sort and total the
results. I have an alias in my .bashrc for this as it is kinda
cumbersome to type every time.
> This is on a 2GB disk so it would seem that this 100% utilized disk space
> isn't right and perhaps indicates a corruption issue, would you concur?
Not really, it says that your disk is full. There are a hundred
possible causes, and corruption is not the most likely (but still possible).
>
> Cheers,
>
> Rob
>
> -----Original Message-----
> From: Sean [mailto:knife at toaster.net]
> Sent: 22 June 2009 21:59
> To: Robert Rawlins - Think Blue
> Cc: voyage-linux at voyage.hk
> Subject: Re: [Voyage-linux] check/repair fs
>
> You can use the du command. It will tell you the size of all of the
> files and directories in a directory.
>
> Robert Rawlins - Think Blue wrote:
>> -->
>>
>> Hello Guys,
>>
>> I've got a system which went down here, when getting it back up and
>> running the disk usage is at 100% which seems really odd. I want to
>> check for corruption but obviously can't do this as the partition is
>> mounted. Is there any way to ensure a check/repair next time the
>> system reboots before the partition is mounted?
>>
>> Otherwise, is there any good way to find what is eating all my disk
>> space? I'm wondering is something is creating a huge log or db
>> somewhere on the system which I'm not aware of, If I can track down
>> the file that might help.
>>
>> Cheers,
>>
>> Rob
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Voyage-linux mailing list
>> Voyage-linux at list.voyage.hk
>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpAXi0ACgkQwRXgH3rKGfOaawCdGXbaGJNx9OjNeDAeoDrIYbEn
CdUAnjrghfddFH6wbg6X5rRI2YHj/yZ9
=SBwI
-----END PGP SIGNATURE-----
More information about the Voyage-linux
mailing list