Re: edit fstab through rescuedisk?
- From: Robert Hull <Robert@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 23 Apr 2006 16:20:45 +0100
In alt.os.linux, on Sun 23 April 2006 16:04, Henrootje
<HenroV@xxxxxxxxx> wrote:
Hello,
I didi something very stupid, I edited the wrong things in my fstab
and now I can no longer boot.
:-(
Can I, using the recuedisk, correct my fstab again?
Yes, but your root partition will not be automatically mounted with a
rescue disk, so you will need to create a temporary mount point and
mount the partition there.
I know exactly
what needs to be dited but not how to reach it :(
Assuming that your root partition is on /dev/hda5, I would do the
following after logging in to the rescue system:
mkdir ./myroot
mount /dev/hda5 ./myroot
vim ./myroot/etc/fstab
You should not need to tell the rescue system what filesystem is on the
root partition, but if you do then add the -t option to the mount
statement. So for Reiserfs it would become
mount -t reiserfs /dev/hda5 ./myroot
Or for ext3 it would become
mount -t ext3 /dev/hda5 ./myroot
If you prefer a different editor, and that is available on your recuse
system, then change the line
vim ./myroot/etc/fstab
To invoke your preferred editor.
HTH
HANDY
--
Robert HULL
Archival or publication of this article on any part of thisishull.net
is without consent and is in direct breach of the Data Protection Act
.
- Follow-Ups:
- Re: edit fstab through rescuedisk?
- From: Henrootje
- Re: edit fstab through rescuedisk?
- References:
- edit fstab through rescuedisk?
- From: Henrootje
- edit fstab through rescuedisk?
- Prev by Date: Re: Suse 9.3 and Suse 10.0
- Next by Date: Re: Multiple seats with one computer? How?
- Previous by thread: edit fstab through rescuedisk?
- Next by thread: Re: edit fstab through rescuedisk?
- Index(es):
Relevant Pages
|