pass init=/bin/sh to your kernel boot line (using grub or lilo)

then do mount -n -o remount,rw /

vi /etc/fstab

mount -n -o remount,ro /

Dave.


On Sat, 27 Sep 2003, Chris Barnes wrote:

> Hi people,
> I've done something stupid to my /etc/fstab. I made some changes because
> I wasn't having much luck getting supermount to work.
> Anyway after a reboot, I found my system now hangs at the stage where it
> says "Mounting local filesystems", and I cant find a way to bypass this.
> I've left the machine for quite some time hoping it might pull through
> but no luck.
>
> I've tried using programs for Windows to read the ext2 partition so that
> I can copy /etc/fstab to windows, edit the file, and then copy it back
> to the ext2 partition, but I'm not having any luck copying it back.
>
> I've tried booting a Slackware Linux installation cd-rom, gone to a
> terminal and tried mounting /dev/hda1 to /mnt/hda1 but I get errors
> telling me there's either too many filesystems mounted, theres a bad
> superblock, it's the wrong fs type, etc.
>
> So can anyone think of any other ways I could fix the problem?
> I'm using Mandrake 9.1 by the way.
>
> Thanks very much,
>
> Chris Barnes.
>

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / [EMAIL PROTECTED]
pam_smb / Linux DECstation / Linux VAX / ILUG person

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to