Re: edit fstab through rescuedisk?



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
.



Relevant Pages

  • Re: [SLE] kernel update hoses system
    ... From the rescue system ... mount /dev/hda2 tmp (or whatever your root partition is) ...
    (SuSE)
  • Re: Hardware
    ... If you used Knoppix or some other live CD, ... Right-click on the desktop icon for the root partition and mount it ... name and the second field, where I put the Xs, holds the password hash. ...
    (Debian-User)
  • Re: Restoring old root partitions.
    ... >>Why not go in with a rescue disk of some sort, chroot to the original ... Basically, you boot up the rescue disk, mount whatever partition needed ... say your root partition is /dev/hda1. ...
    (Debian-User)
  • Re: [SLE] Duplicate Install
    ... Mount your server's root partition to /mnt/server. ... Get the installation.tar.bz2 off your source server or make available somehow. ... into it and do tar xfj installation.tar.bz2 ...
    (SuSE)
  • Re: [opensuse] 10.3 upgrade
    ... mount the root partition of the drive, ... itself is on an XFS file system. ... GRUB can also read that sector, and the ones directly after it, ...
    (SuSE)