From owner-freebsd-stable@FreeBSD.ORG Mon Sep 29 17:05:49 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCD99106569F for ; Mon, 29 Sep 2008 17:05:49 +0000 (UTC) (envelope-from danallen46@airwired.net) Received: from mail.utahbroadband.com (mail.utahbroadband.com [204.14.20.91]) by mx1.freebsd.org (Postfix) with ESMTP id A4AE18FC23 for ; Mon, 29 Sep 2008 17:05:49 +0000 (UTC) (envelope-from danallen46@airwired.net) Received: (qmail 31230 invoked by uid 89); 29 Sep 2008 16:25:37 -0000 Received: from unknown (HELO ?192.168.0.16?) (danallen46@airwired.net@66.29.174.6) by 0 with ESMTPA; 29 Sep 2008 16:25:37 -0000 Message-Id: From: Dan Allen To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 29 Sep 2008 11:05:46 -0600 X-Mailer: Apple Mail (2.929.2) Subject: Missing fstab X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 17:05:49 -0000 In messing around trying to get a bootable FreeBSD system on a memory stick I messed up and deleted my fstab file on my main FreeBSD STABLE machine. Actually a script I was writing overwrote it... arrggghh. I feel so stupid. Anyway, my system now boots and then dies midway in boot because there is no /etc/fstab. I get the mountroot prompt, I type in ufs:ad0s2a (my main root partition) and it begins booting fine. So far so good. It then goes into single user mode, which is fine, but it leaves my main root filesystem as readonly, which is not so fine. This is because of the missing /etc/fstab file. I have a backup of my fstab file on a USB memory stick. I can mount the stick on /mnt and then I type /sbin/mount -F /mnt/fstab -f -u -w / thinking that it will now update the drive to readwrite. It does not. The command appears to succeed but running mount again shows the file system is still read-only. It will not mount my main root file system readwrite. I believe my main file system is fine. I can see all of my files readonly. I cannot change my root file system in order to copy my backup fstab back to /etc/fstab because the file system refuses to be updated to readwrite. This is my core problem. fsck will not run because there is no /etc/fstab and there is no option that I can find that will allow a different fstab to be used, although running fsck is not my central problem. Any ideas on how to force the file system to be readwrite long enough for me to replace my /etc/fstab file? Dan