From owner-freebsd-hackers Sun Oct 21 12:50:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.121.12]) by hub.freebsd.org (Postfix) with ESMTP id 1EFA137B405 for ; Sun, 21 Oct 2001 12:50:09 -0700 (PDT) Received: from mindspring.com (dialup-209.245.139.60.Dial1.SanJose1.Level3.net [209.245.139.60]) by harrier.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id MAA15213; Sun, 21 Oct 2001 12:50:07 -0700 (PDT) Message-ID: <3BD32725.CC1CEFBA@mindspring.com> Date: Sun, 21 Oct 2001 12:51:01 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Soweb_Ahfei Cc: freebsd-hackers@FreeBSD.org Subject: Re: Read only file FSTAB after error config??? References: <000f01c15a3b$883c2d60$6005c3cb@holam> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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