File system problem, Emergency!!!

Taking care of your Linux box.
Posts: 2
Joined: Wed Feb 04, 2004 2:31 am

File system problem, Emergency!!!

Postby jawadakhtar » Thu Apr 08, 2004 1:26 am


I was working on fstab as root, but due to power intruption the system was restarted. No when system starts, during Interactive startup mode, it stops processing, and ask for root password for file system maintenance. If I bypass it, it said that 'fstab' is not present and then it restarted.

If I entered root passward, and entered the system for filesystem maintenance, it does not allow me to do any thing. I checked, fstab is not present but '.fstab.swp' is there. But I can't create, delete or even rename '.fstab.swp' file nor I can create fstab file from scretch. It said that the filesystem is in readonly mode.

How can I repair my system, how can I switch filesystem in read write mode. How can I fix this problem.

Can any one help me..

Thanks in advance.


Posts: 598
Joined: Tue Mar 23, 2004 1:16 am
Location: Karachi

Postby azfar » Thu Apr 08, 2004 9:07 am

When it asking root password or press ctrl+D give it then try this command
fsck -v
Azfar Hashmi
Email :

Major General
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Location: Karachi

Postby farhantoqeer » Thu Apr 08, 2004 1:08 pm

Supply root's password when required during boot process. You will be at the shell prompt in single user more.

Imagining that you have 3 Linux partitions at your HDD with ext2 filesystem

hda1 - /boot
hda2 - /swap
hda3 - /

At shell execute e2fsck program which is used to repair ext2 file systems
If you have ext3 filesystem then replace e2fsck with fsck

/sbin/e2fsck -y -p -c /dev/hda1
/sbin/e2fsck -y -p -c /dev/hda3

Read man pages of e2fsck to get the information about the switches i mentiond.
A: Yes
Q: Is top-posting bad?

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest