From owner-freebsd-questions@freebsd.org Wed Aug 16 07:27:19 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72771DCA9DF for ; Wed, 16 Aug 2017 07:27:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D99A173B85 for ; Wed, 16 Aug 2017 07:27:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Wed, 16 Aug 2017 09:26:43 +0200 Received: from r56.edvax.de (port-92-195-85-111.dynamic.qsc.de [92.195.85.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id C292A3CC42; Wed, 16 Aug 2017 09:26:42 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v7G7QfPm001945; Wed, 16 Aug 2017 09:26:42 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 16 Aug 2017 09:26:41 +0200 From: Polytropon To: Kurt Buff Cc: "freebsd-questions@freebsd.org" Subject: Re: FUBAR on an upgrade - need some help Message-Id: <20170816092641.038c1860.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with 2D3F36839AA X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1307 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2017 07:27:19 -0000 On Tue, 15 Aug 2017 19:29:23 -0700, Kurt Buff wrote: > I have an old Acer AspireOne netbook that's been running 10.1-RELEASE. > > Yesterday I upgraded it using freebsd-update to 10.2 and then to 10.3, > and it went fine. > > Then I upgraded it to 11.0-RELEASE, and it failed during boot, saying > it wanted to boot from ad4s1a, but couldn't find it. > > I have managed to get it into single user, and have run "df-h" and > "gpart show", which don't agree at all. Output: > > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad4s1a 140G 36G 93G 28% / > devfs 1.0k 1.0k 0B 100% /dev > > #gpart show > => 63 312581745 ada0 MBR (149GB) > 63 312581745 1 freebsd [active] (149GB > > => 0 312581745 ada0s1 BSD (149GB) > 0 8388608 2 freebsd-swap (4.0GB) > 8388608 304193137 1 freebsd-ufs (145GB) > > # cat /etc/fstab > # Device Mountpoint FStype Options Dump Pass# > /dev/ad4s1b none swap sw 0 0 > /dev/ad4s1a / ufs rw > 1 1 The OS now has associated /dev/ada0 to the device formerly known as /dev/ad4, so the root partition needs to be adjusted in /etc/fstab from /dev/ad4s1a to /dev/ada0s1a. When in single-user mode, do this: # mount -w / so you can write to /, then use # vi /etc/fstab or # ee /etc/fstab to make the required changes (for the swap partition as well). Finally reboot. > I can't seem to use vi to modify fstab. This is because the system leaves / mounted read-only when booting into single-user mode (and it does not mount anything than /, so if you have /usr on a different file system, you need to mount that as well). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...