Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Skip fsck on startup

Status
Not open for further replies.

ejmilne

Technical User
Apr 23, 2003
37
0
0
GB
Hello,
I'm new to Lunix and have a Red Hat Enterprise server installed. After a powercut on the weekend, one of the filesystem (not an important one) wont pass a fsck - does anyone know how I can bypass the fsck for a particular filesystem?
 
In Solaris, there is a flag which can be set in /etc/vfstab. Not sure whether Red Hat has an equivalent?

When one door closes another one bangs shut too.
 
You can boot into single user mode.
With Lilo, you can select the OS from the menu and add a 1 to the end.
Eg.
boot: Linux 1
Edit /etc/fstab
/dev/hda3 /data reiserfs noauto

The noauto option will not try to mount the filesystem on reboot.
Reboot to multi-user mode and you can try to recover the filesystem.


"If you always do what you've always done, you will always be where you've always been."
 
I had to do this once before, and IIRC if you boot to single-user mode, touch a file called /fastboot, then reboot. The presence of /fastboot will bypass the fsck at boot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top