Linux Rescue Mode Help

Stuart Sears stuart at sjsears.com
Tue Dec 28 23:26:00 UTC 2004


On Tuesday 28 December 2004 19:49, Dave Martini 1 wrote:
> I commented out the /etc/fstab file entry for / and
> want to know how to fix this.
> I tried to boot from CD #1 in rescue mode but the file system
> is read only and won't let me edit the /etc/fstab file.
just for clarity:
so after a CD boot you are trying to edit *which* file - 
/etc/fstab or
/mnt/sysimage/etc/fstab ?

have you tried the following...
assuming your / is /dev/hda2

1) ignore the CD.
2) make changes at the grub stage...
	a) hit 'a' at the grub menu.
	b) edit the kernel arguments to say
	root=/dev/hda2 emergency
	c) hit return to boot
3) now you're in(ish) but the problem is that the / fs is mounted read-only.
to solve this:
4) mount /proc
5) mount -o remount,rw /
now edit your /etc/fstab file and reboot.

any help?

if not, exactly what are the error messages?
and what does 'df' show in emergency mode?

Stuart

-- 
Stuart Sears RHCE, RHCX
Remember: Silly is a state of Mind, Stupid is a way of Life.
		-- Dave Butler




More information about the redhat-list mailing list