View previous topic :: View next topic |
Author |
Message |
bigredgiant1 n00b
Joined: 23 Dec 2003 Posts: 62
|
Posted: Tue Jun 08, 2004 4:01 pm Post subject: SOLVED: df still says hard drive full |
|
|
I accidentally filled one of my hard drives. I noticed df said 0 bytes were available, so to fix the problem I of course removed some files from the hard drive. Ironically enough this didn't work. df still shows 0 bytes available on the hard drive, and I cannot write to the hard drive as I get an error of the drive being full. Any ideas? Thanks. _________________ Vic @ Shellsage
Dual Opteron 242 -- AMD64 2.6.16 Development Sources
CFLAGS="-march=k8 -O3 -pipe" MAKEOPTS="-j3"
Last edited by bigredgiant1 on Wed Jun 09, 2004 4:47 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Tue Jun 08, 2004 5:41 pm Post subject: |
|
|
bigredgiant1,
Is it really full or marked read only because of an error?
Both conditions will make df show zero available space.
How did you delete files, really delete ot just move them to the trash? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
bigredgiant1 n00b
Joined: 23 Dec 2003 Posts: 62
|
Posted: Tue Jun 08, 2004 6:23 pm Post subject: |
|
|
It really seems full, nothing I changed could have made the mount read only, I checked fstab and it's mounted normally, and I removed the files as a non-root user. When I removed them, I actually typed "rm -Rf filename", and still, no change. _________________ Vic @ Shellsage
Dual Opteron 242 -- AMD64 2.6.16 Development Sources
CFLAGS="-march=k8 -O3 -pipe" MAKEOPTS="-j3" |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Tue Jun 08, 2004 6:51 pm Post subject: |
|
|
bigredgiant1,
The system will remount filesystems read only without asking you if it detects an error. Since you (attempted to) removed files as a non-root user, did you have permissions to those files?
Can you post your df?
Are you sure you deleted things from the right filesystem? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
bigredgiant1 n00b
Joined: 23 Dec 2003 Posts: 62
|
Posted: Tue Jun 08, 2004 6:54 pm Post subject: |
|
|
Yes I had permissions to those files.
df output:
Code: | bash-2.05b$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 9621880 4699260 4433844 52% /
/dev/hda5 9621848 998076 8134996 11% /var
/dev/hda6 55598112 11427800 41346088 22% /home
/dev/hdb1 157566568 150785744 0 100% /usr
none 257296 0 257296 0% /dev/shm
bash-2.05b$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 9.2G 4.5G 4.3G 52% /
/dev/hda5 9.2G 975M 7.8G 11% /var
/dev/hda6 54G 11G 40G 22% /home
/dev/hdb1 151G 144G 0 100% /usr
none 252M 0 252M 0% /dev/shm
|
Yep I'm sure I deleted things from the right filesystem. _________________ Vic @ Shellsage
Dual Opteron 242 -- AMD64 2.6.16 Development Sources
CFLAGS="-march=k8 -O3 -pipe" MAKEOPTS="-j3" |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Tue Jun 08, 2004 7:45 pm Post subject: |
|
|
bigredgiant1,
Only root has write access to /usr which is why deleting as your non-root user failed.
=======================edit======================
/usr is 151Gb how did you fill that up ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
bigredgiant1 n00b
Joined: 23 Dec 2003 Posts: 62
|
Posted: Tue Jun 08, 2004 8:49 pm Post subject: |
|
|
My /usr partition also has a directory for non-root users to store their personal files, that's how a non-root user has write privs, and how the drive was filled. _________________ Vic @ Shellsage
Dual Opteron 242 -- AMD64 2.6.16 Development Sources
CFLAGS="-march=k8 -O3 -pipe" MAKEOPTS="-j3" |
|
Back to top |
|
|
bigredgiant1 n00b
Joined: 23 Dec 2003 Posts: 62
|
Posted: Wed Jun 09, 2004 4:47 am Post subject: |
|
|
I figured out the problem. There's a percentage of each filesystem (10% or so), that root and only root can use, thus disallowing the use of that space by other users. So I had to delete 10% of what was on the filesystem to get it to drop below 100%. Thanks. _________________ Vic @ Shellsage
Dual Opteron 242 -- AMD64 2.6.16 Development Sources
CFLAGS="-march=k8 -O3 -pipe" MAKEOPTS="-j3" |
|
Back to top |
|
|
|