filesystem turns read only and can't be unmounted

Support section for FREESCO v0.3.x

filesystem turns read only and can't be unmounted

Postby Spook » Sun Jan 27, 2013 12:48 pm

Hi,
today I realized, that one of the filesystems from my freesco server (0.3.6) had turned to read only which is causing several problems.
I tried to unmount and wanted to do a filesystem check - but it did not work.
It is possible to unmount every filesystem but this one.
Unfortunately it's the filesystem where /mnt/bootdev is on so I'm having trouble not beeing able to correct it.
I stopped all services like samba, ftp, http etc. which might access this filesystem and ensured that I'm not in one of the subdirectories.
It is not possible to unmount anyway.

Trying to do a fsck on the mounted filesystem gives the followin error:
[root@Freesco] fsck /dev/hda4
fsck 1.27 (8-Mar-2002)
WARNING: couldn't open /etc/fstab: No such file or directory
e2fsck 1.27 (8-Mar-2002)
/dev/hda4 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

Couldn't find ext2 superblock, trying backup blocks...

fsck.ext2: Bad magic number in super-block while trying to open /dev/hda

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superbloc
e2fsck -b 8193 <device>

[root@Freesco] [root@Freesco]


Does anybody have an idea what I should do to being able to repair the filesystem?

Tia Spook
User avatar
Spook
Junior Advanced Member
 
Posts: 144
Joined: Thu Oct 09, 2003 5:39 pm
Location: Germany / Berlin

Re: filesystem turns read only and can't be unmounted

Postby Lightning » Mon Jan 28, 2013 9:10 pm

Does anybody have an idea what I should do to being able to repair the filesystem?
It sounds like the drive is having problems, so my first suggestion would be to replace the drive and clone it to another drive, which a Hiren's boot CD has 'ghost' and a couple other cloning tools. However even if you are going to do that I would first run 'spinrite' on the drive to try and recover as much as possible and it might even repair the drive. You can get 'spinrite' directly ($) or you can run it from a Hiren's boot CD directly. To get Hiren's you can find it on a 'torrent' download and it is completely free with no registration. Which regardless of everything else I would recommend downloading a copy of the CD unless you already have one handy in your back pocket.

As for the e2fsck command, FREESCO use a block size of 1024. I also have seen similar problems if someone changes the BIOS and turns on or off LBA on a drive the was formatted with it set differently. But normally those drives won't boot at all.

I am also curious as to why you are running 0.3.6 on this machine.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: filesystem turns read only and can't be unmounted

Postby Spook » Tue Jan 29, 2013 8:10 am

Hi Lightning,
thanks for the hints and recommendation of tools.
I guess I will work on that next weekend - and give feedback how it worked out.

Regarding the question why I still use v0.3.6 on that machine.
Simply because it works for years without any problems and I believe in the saying:
Never touch a running system.

Nevertheless I guess it's time to do a change to the latest version in the near future.
User avatar
Spook
Junior Advanced Member
 
Posts: 144
Joined: Thu Oct 09, 2003 5:39 pm
Location: Germany / Berlin

Re: filesystem turns read only and can't be unmounted

Postby Lightning » Wed Jan 30, 2013 8:41 pm

I believe in the saying: Never touch a running system.
I am in complete agreement, 0.3.6 was a VERY good system and even now I would still recommend it for minimal hardware. Of course it is out of date with some services, but still completely functional for routing.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA


Return to FREESCO Support for v0.3.x

Who is online

Users browsing this forum: No registered users and 8 guests

cron