Mr Blek
1st February 2008, 18:51
I'm running SUSE. Today I ran out of disk space on a 150gig hd. I don't have much on the drive so I did the following commands as root:
du -s -h
titan:/ # du -s -h
du: cannot access `./backups/Thursday.sql.gz': Permission denied
du: cannot access `./backups/Friday.sql': Permission denied
3.0G
I tried to delete the above to files as root but it wouldn't let. ls gave a permission denied.
and
titan:/ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 148G 123G 25G 84% /
udev 499M 112K 499M 1% /dev
du = 3.0G
df = 123G
Surely something is wrong there? I thought a fsck was in order, so i executed the command
titan:/ # fsck.reiserfs --fix-fixable /dev/hda2
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --fix-fixable started at Fri Feb 1 16:43:14 2008
###########
Partition /dev/hda2 is mounted with write permissions, cannot check it
titan:/ #
How do I go about fixing the problem? / is mounted as /dev/hda2 so I can't see how I can unmount the whole filesystem. Is there another way to do fix the inconsistency? I've tried setting the flag in /etc/fstab but that hasn't worked.
du -s -h
titan:/ # du -s -h
du: cannot access `./backups/Thursday.sql.gz': Permission denied
du: cannot access `./backups/Friday.sql': Permission denied
3.0G
I tried to delete the above to files as root but it wouldn't let. ls gave a permission denied.
and
titan:/ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 148G 123G 25G 84% /
udev 499M 112K 499M 1% /dev
du = 3.0G
df = 123G
Surely something is wrong there? I thought a fsck was in order, so i executed the command
titan:/ # fsck.reiserfs --fix-fixable /dev/hda2
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --fix-fixable started at Fri Feb 1 16:43:14 2008
###########
Partition /dev/hda2 is mounted with write permissions, cannot check it
titan:/ #
How do I go about fixing the problem? / is mounted as /dev/hda2 so I can't see how I can unmount the whole filesystem. Is there another way to do fix the inconsistency? I've tried setting the flag in /etc/fstab but that hasn't worked.