Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2014 22:07:37 -0400
From:      grarpamp <grarpamp@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   RELENG_8: ufs: "ROOT MOUNT ERROR"
Message-ID:  <CAD2Ti2-UeqkG0PBJ9cNWGeZRUpgnVoOr6CZt6y1DCdj%2Bow2O2w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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 <first_8k_of_ad0s1>
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  |................|



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAD2Ti2-UeqkG0PBJ9cNWGeZRUpgnVoOr6CZt6y1DCdj%2Bow2O2w>