From owner-freebsd-stable@FreeBSD.ORG Wed Apr 30 07:39:22 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E84DF1B for ; Wed, 30 Apr 2014 07:39:22 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D714C1A6E for ; Wed, 30 Apr 2014 07:39:21 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.8/8.14.8) with ESMTP id s3U7dFVg015761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Apr 2014 09:39:15 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.8/8.14.8/Submit) with ESMTP id s3U7dE0s015758; Wed, 30 Apr 2014 09:39:14 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Wed, 30 Apr 2014 09:39:14 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: grarpamp Subject: Re: RELENG_8: ufs: "ROOT MOUNT ERROR" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.fig.ol.no Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 07:39:22 -0000 On Tue, 29 Apr 2014 22:07-0400, grarpamp wrote: > Hello. > > On an i386 GENERIC ... > RELENG_8 from July 2012 works. > RELENG_8 from this week fails to mount root. Try to back out r262226, rebuild the kernel and install that kernel. E.g. # boot the old kernel (/boot/kernel.old/kernel) # Move the bad kernel out of the way mv /boot/kernel /boot/kernel.bad # Make sure you keep the good kernel in place mv /boot/kernel.old /boot/kernel cd /usr/src svn diff -r 262226:262225 sys/dev/pci/pci.c | patch make -D NO_CLEAN buildkernel make installkernel > Updated source, built and installed kernel and world, > no system changes made but that. > > It's also failing to print any errmsg here... > sys/kern/vfs_mount.c:1872: printf("ROOT MOUNT ERROR: %s\n", errmsg); > > > Then I noticed > bsdlabel ad0s1 > had ad0s1b as 'unused' ie: 0, but it's ufs now, so... > gpart modify -i 2 -t freebsd-ufs ad0s1 > which didn't help. > > Loading... > geom_part_{bsd,mbr,gpt,ebr} > showed these were already in the new GENERIC kernel. > > Loading... > geom_{bsd,mbr} > didn't help. > > Then for fun... > boot0cfg -b /boot/boot0 ad0 > gpart bootcode -b /boot/boot ad0s1 > which didn't help as expected. > > There's nothing disk related in > /boot.config > /boot/loader.conf* > but atapicam, geom_eli, and zfs for later use with /etc/rc. > > So I'm booted back on the old kernel and mounted just fine for now. > > What changed in the new kernel so that it no longer mounts my root? > Ideas? > > > Current state... > > > Trying to mount root from ufs:/dev/ad0s1a > ROOT MOUNT ERROR: > ... > Loader variables: > vfs.root.mountfrom=ufs:/dev/ad0s1a > vfs.root.mountfrom.options=ro > ... > mountroot> ? > ... > List of GEOM managed disk devices: > cd1 cd0 ad13 ad12 ad10 ad6 ad4 acd1 acd0 ad0 fd0 > ... > mountroot> ufs:/dev/ad0s1a > Trying to mount root from ufs:/dev/ad0s1a > ROOT MOUNT ERROR: > ... > mountroot> > panic: Root mount failed, startup aborted. > > > gpart show ad0 > => 63 17803377 ad0 MBR (8.5G) > 63 6421905 1 freebsd [active] (3.1G) > 6421968 11381328 2 freebsd (5.4G) > 17803296 144 - free - (72k) > > *** ad0s2 is actually part of a zpool now. I don't think there is > a proper slice type for that, and I couldn't find any list in fdisk.c > or /usr/include. I thought that might cause a tasting issue but I > checked and the first 8k of ad0s2 is all zero's. > > gpart show ad0s1 > => 0 6421905 ad0s1 BSD (3.1G) > 0 786432 1 freebsd-ufs (384M) > 786432 131072 2 freebsd-ufs (64M) > 917504 393216 7 freebsd-ufs (192M) > 1310720 1310720 6 freebsd-ufs (640M) > 2621440 1048576 4 freebsd-ufs (512M) > 3670016 2751889 5 freebsd-ufs (1.3G) > > > bsdlabel ad0s1 > # /dev/ad0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 786432 0 4.2BSD 0 0 0 > b: 131072 786432 4.2BSD 0 0 0 > c: 6421905 0 unused 0 0 # "raw" part, don't edit > d: 1048576 2621440 4.2BSD 0 0 0 > e: 2751889 3670016 4.2BSD 0 0 0 > f: 1310720 1310720 4.2BSD 0 0 0 > g: 393216 917504 4.2BSD 0 0 0 > > > fstab > /dev/ad0s1a / ufs ro 0 1 > /dev/ad0s1b none swap xx,sw 0 0 > /dev/ad0s1b /t ufs rw 0 2 > /dev/ad0s1d /var ufs xx,rw 2 2 > /dev/ad0s1e /tmp ufs xx,rw 2 2 > /dev/ad0s1f /usr ufs ro 0 2 > /dev/ad0s1g /usr/local ufs xx,ro 0 2 > /dev/ad0s1h /a ufs xx,rw 0 1 > /dev/ad0s1ha /boot/zfs ufs xx,rw 0 1 > md /boot/zfs mfs rw,-s1m,-M,-p0755 0 0 > /dev/ad0s1hb /a ufs xx,rw 0 1 > md /a mfs rw,-s1m,-M,-p0755 0 0 > /dev/acd0 /cdrom0 cd9660 ro,noauto 0 0 > /dev/acd1 /cdrom1 cd9660 ro,noauto 0 0 > > Zfs handles other mountpoints in /etc/rc. > > > diff /boot/boot > 33c33 > < 00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > --- > > 00000200 57 45 56 82 00 00 00 00 61 6d 6e 65 73 69 61 63 |WEV.....amnesiac| > 35,37c35,37 > < 00000220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 00000230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 00000240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > --- > > 00000220 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 |............?...| > > 00000230 10 00 00 00 e2 18 00 00 f0 03 00 00 91 fd 61 00 |..............a.| > > 00000240 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 |................| > 41,49c41,49 > < 00000280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 00000290 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 000002a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 000002b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 000002c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 000002d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 000002e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 000002f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > < 00000300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > --- > > 00000280 00 00 00 00 57 45 56 82 b4 c8 08 00 00 20 00 00 |....WEV...... ..| > > 00000290 00 00 00 00 00 00 0c 00 3f 00 00 00 00 00 00 00 |........?.......| > > 000002a0 07 00 00 00 00 00 02 00 3f 00 0c 00 00 00 00 00 |........?.......| > > 000002b0 07 00 00 00 91 fd 61 00 3f 00 00 00 00 00 00 00 |......a.?.......| > > 000002c0 00 00 00 00 00 00 10 00 3f 00 28 00 00 00 00 00 |........?.(.....| > > 000002d0 07 00 00 00 91 fd 29 00 3f 00 38 00 00 00 00 00 |......).?.8.....| > > 000002e0 07 00 00 00 00 00 14 00 3f 00 14 00 00 00 00 00 |........?.......| > > 000002f0 07 00 00 00 00 00 06 00 3f 00 0e 00 00 00 00 00 |........?.......| > > 00000300 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+