Linux not showing the amount of free space even after I deleted 2gb worth of files....

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
Situation is, I have a drive which is already at 100% usage. I've tried deleting 2gb worth of files and yet it shows as 0 available space. I was wondering where did the extra space go to?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If the files were opened when you deleted them then they're not really gone yet.
 

SSP

Lifer
Oct 11, 1999
17,736
0
0
This happened with kubuntu once. It was stuck in the .trash folder and didn't show up in the trash bin. If you see it there just delete it manually.
 

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
Originally posted by: SSP
This happened with kubuntu once. It was stuck in the .trash folder and didn't show up in the trash bin. If you see it there just delete it manually.

Where's the trash folder located at?? I don't have xwindows on this thingy. :)

Nothinman, I deleted quite abit of files, I doubt anyone was using the files at that point of time.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Where's the trash folder located at?? I don't have xwindows on this thingy.

If you deleted them from the cli with rm then there's virtually 0 chance of them being in a trash can.

If you're sure that none were open when you deleted them just umount and remount the filesystem. If it's the root filesystem you'll have to reboot.
 

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
I used the rm -fr to remove them. I've tried rebooting it and it still shows up as 0bytes available. :(
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Then you should probably run fsck on the filesystem and possibly even see if some other files appeared and started taking that space when you deleted the other ones.
 

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
It's instantenous. I can delete it now and won't see the free space at all. You're right on the fsck. Thing is, how do I initiate it to run on bootup? It's the / partition so I can't unmount and run it...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Do it from a LiveCD. There's probably a way to force the init scripts to do it for you but that would be distro-dependent and you haven't mentioned which one you're using.
 

pillage2001

Lifer
Sep 18, 2000
14,038
1
81
I'm on debian. I notice you have it in your sig. I suppose you're a power user of debian? I don't have xwindows on this machine. It's purely in bash....
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
It looks like if you 'touch /forcefsck' it'll run one on bootup but I've never tried. And if you're using XFS then it won't help as fsck.xfs is a noop and you need to run xfs_repair instead. Even the Debian net-inst disc should have enough of a system on it to see the filesystem and run fsck on it if that doesn't work. I always have tons of Knoppix discs laying around so I never really worry about it.