I'm getting the following errors on system boot:
Now I looked up error code 17 in errno(2) and it says that the file exists, but it's complaining that the disklabel is invalid? Well, obviously the disklabel is valid because everything mounts and I have been using the system.
My disk layout is as follows:
/etc/fstab:
fdisk on ada0:
fdisk on ada1:
When I created the partitions, I didn't specify MBR or GPT. I specified BSD Disklabel, but it is using MBR. I found this thread https://forums.freebsd.org/threads/59464/ that shows something similar. I tried the solution presented and it still comes up.
Taking a second look at it, it looks like it's trying to create device nodes in /dev but the nodes already exist so it throws error code 17...
Any ideas?
Code:
GEOM: ada0a: invalid disklabel.
g_dev_taste: make_dev_p() failed (gp->name=ada0a, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0b, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0d, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0e, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0f, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada0g, error=17)
GEOM: ada1a: invalid disklabel.
g_dev_taste: make_dev_p() failed (gp->name=ada1a, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada1b, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada1d, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada1e, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada1f, error=17)
g_dev_taste: make_dev_p() failed (gp->name=ada1g, error=17)
My disk layout is as follows:
Code:
strata:/root 239 ### ->df
Filesystem 1M-blocks Used Avail Capacity Mounted on
/dev/ada0a 1983 290 1534 16% /
devfs 0 0 0 100% /dev
/dev/ada0d 3958 187 3454 5% /var
/dev/ada0e 3958 43 3597 1% /tmp
/dev/ada0f 7916 887 6396 12% /usr
/dev/ada0g 16857 170 15338 1% /home
/dev/ada1b 3958 2475 1165 68% /usr/src
/dev/ada1d 7916 4605 2678 63% /usr/obj
/dev/ada1e 3958 1106 2535 30% /usr/doc
/dev/ada1f 7916 1700 5582 23% /usr/ports
/dev/ada1g 85077 510 77761 1% /usr/local
/etc/fstab:
Code:
strata:/etc 244 ### ->cat fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ada0a / ufs rw 1 1
/dev/ada0b.eli none swap sw 0 0
/dev/ada0d /var ufs rw 2 2
/dev/ada0e /tmp ufs rw 2 2
/dev/ada0f /usr ufs rw 2 2
/dev/ada0g /home ufs rw 2 2
/dev/ada1a.eli none swap sw 0 0
/dev/ada1b /usr/src ufs rw 2 2
/dev/ada1d /usr/obj ufs rw 2 2
/dev/ada1e /usr/doc ufs rw 2 2
/dev/ada1f /usr/ports ufs rw 2 2
/dev/ada1g /usr/local ufs rw 2 2
fdisk on ada0:
Code:
strata:/root 240 ### ->fdisk
******* Working on device /dev/ada0 *******
parameters extracted from in-core disklabel are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 0, size 50000 (24 Meg), flag 80 (active)
beg: cyl 0/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
fdisk on ada1:
Code:
trata:/root 241 ### ->fdisk /dev/ada1
******* Working on device /dev/ada1 *******
parameters extracted from in-core disklabel are:
cylinders=232581 heads=16 sectors/track=63 (1008 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=232581 heads=16 sectors/track=63 (1008 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 0, size 50000 (24 Meg), flag 80 (active)
beg: cyl 0/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
When I created the partitions, I didn't specify MBR or GPT. I specified BSD Disklabel, but it is using MBR. I found this thread https://forums.freebsd.org/threads/59464/ that shows something similar. I tried the solution presented and it still comes up.
Taking a second look at it, it looks like it's trying to create device nodes in /dev but the nodes already exist so it throws error code 17...
Any ideas?