File system problem, Emergency!!!

Taking care of your Linux box.

File system problem, Emergency!!!

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

Assalam-o-Alikum

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.

ALLAH HAFIZ.
jawadakhtar
Cadet
 
Posts: 2
Joined: Wed Feb 04, 2004 2:31 am

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 : azfarhashmi@hotmail.com
azfar
Captain
 
Posts: 598
Joined: Tue Mar 23, 2004 1:16 am
WLM: azfarhashmi@hotmail.com
Yahoo Messenger: azfarhusain@yahoo.com
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?
farhantoqeer
Major General
 
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Website: http://www.emergen.biz
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron