Re: Opening file at boot time ( read only)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
frank smith wrote:
> I ve made a mess in /etc/fstab and now cant boot my linux box
> I tried to mount my other OS using fstab and now when I boot
> It dumps me at the prompt ( ctl + D plus root pword)
>
> When I try Vi the file it's read only even though I use the Root Pword.
>
> How do I access and change fstab with Vi (commands helpful as me and Vi
> dont play well!)
First, you need to remount your root fs read-write, since it is
initially mounted read-only. To do this run
mount -o remount,rw /
Now you can mount your /usr with:
mount /dev/usr-partition /usr
and use whatever text-editor you like to fix /etc/fstab.
when you're done, run 'mount -a' to mount all file systemas.
Then exit the emergency shell to continue the boot process.
dam
- --
Damyan Ivanov Creditreform Bulgaria
divanov@creditreform.bg http://www.creditreform.bg/
phone: +359(2)928-2611, 929-3993 fax: +359(2)920-0994
mob. +359(88)856-6067 dam@jabber.minus273.org/Gaim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDpceiHqjlqpcl9jsRAtshAJ9VsM7MHu3Ct2X6YArtce67rQQDRACeNzyQ
LwO1wWen5BNDjaFQlNNilS4=
=hEZG
-----END PGP SIGNATURE-----
Reply to: