Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2001 12:51:01 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Soweb_Ahfei <ahfei_99@yahoo.com>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Read only file FSTAB after error config???
Message-ID:  <3BD32725.CC1CEFBA@mindspring.com>
References:  <000f01c15a3b$883c2d60$6005c3cb@holam>

next in thread | previous in thread | raw e-mail | index | archive | help
This belongs on -questions...

Soweb_Ahfei wrote:
> We have installed the Freebsd4.32 in our server.But we can not
> reboot the system after we made an error configuration  in the
> file FSTAB.Now,we can not delete or rename the error file Fstab
> and the system shown the file is read only.
> 
> We would not re-install the system since there are some available
> data.Please give us an instruction how to revise it.

Boot the system single user (boot -s at the boot prompt,
after hitting spacebar during the countdown).

Remount the root partition as read/write (mount -u -o rw /,
after you get to a shell).

Modify the fstab to correct your error; you may need to fsck
the partition where /tmp is located, if it is not /, before
you can run an editor; you will probably need to set the
terminal type, as well, unless you want to use "cat", or are
comfortable with "ed" (setenv TERM cons25).

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BD32725.CC1CEFBA>