From owner-freebsd-stable@FreeBSD.ORG Wed Apr 30 02:07:39 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 788E9CDB for ; Wed, 30 Apr 2014 02:07:39 +0000 (UTC) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [IPv6:2607:f8b0:400c:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B3F615F6 for ; Wed, 30 Apr 2014 02:07:39 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id oz11so1333885veb.19 for ; Tue, 29 Apr 2014 19:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=A7LkwX5HyAJoiNPhaR3Us9sRemTqd+aLV0HjS83MGyA=; b=pqynZKUvDSq4BC38OxIkFXeKFh0sNRgUbVU+cPb7BUZTLmVLe5eonuLBZ28gVcFwjo nTRIK2ytA++4EMh6kRZT58YY8ons6fealsaAQ5oZjLRvsAsnHAdPWhDNFSut2KH9eHVZ WWRWlV493HNxXIa9djQ/fQSffLB0Jcv1gHXfKsf2Yg3Et3GV4wCXgW5iJBnVe0wpN8/W l0U9uMgCAeJLr5pHvZNcUNluiDLYfN+plZgF2yN5ldBtdHDYdZoFc7coam94Uzvjsdys 4SZDskRzZJT6VwyIrXDoGr3OTS+k1Oe/Nv1JcfG97FcN98omM8mBKiwTQapkFNV2s7Ft ahyg== MIME-Version: 1.0 X-Received: by 10.58.202.133 with SMTP id ki5mr1271268vec.19.1398823657348; Tue, 29 Apr 2014 19:07:37 -0700 (PDT) Received: by 10.221.65.198 with HTTP; Tue, 29 Apr 2014 19:07:37 -0700 (PDT) Date: Tue, 29 Apr 2014 22:07:37 -0400 Message-ID: Subject: RELENG_8: ufs: "ROOT MOUNT ERROR" From: grarpamp To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 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 02:07:39 -0000 Hello. On an i386 GENERIC ... RELENG_8 from July 2012 works. RELENG_8 from this week fails to mount root. 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 |................|