Solved No partitions in /dev

Hi,

I just found there is no partitions (e.g. ada0p1) in my /dev at all.
The disk exists (/dev/ada0), and gpart shows everything is correct.
And I was booting from ada0p3 with ZFS.
No found any error in the log.

So, what happened?
 
Is devd actually running? Try using # service devd status.

Another thing which you can try using is: sysctl kern.disks, make sure you got the right naming scheme.
 
Is devd actually running? Try using # service devd status.

Another thing which you can try using is: sysctl kern.disks, make sure you got the right naming scheme.
# service devd status
devd is running as pid 38163.

sysctl kern.disks
kern.disks: cd0 ada0

seems good.
 
FreeBSD 11.1-RELEASE-p4

/dev/gpt and /etc/gptid not exist.
Bizarre, because on my end it's the other way around: /dev/diskid doesn't exist but the others do. However, I've also read up a bit (can't find the thread right now) and learned that ZFS can sometimes interfere with these entries.

Which brings me to another question: what devices are part of your pool? In other words: what does zpool status show you (the disk entries)?

Also: you said that gpart shows everything, just wondering: are your disks using a GPT partitioning scheme?
 
Bizarre, because on my end it's the other way around: /dev/diskid doesn't exist but the others do. However, I've also read up a bit (can't find the thread right now) and learned that ZFS can sometimes interfere with these entries.

Which brings me to another question: what devices are part of your pool? In other words: what does zpool status show you (the disk entries)?

Also: you said that gpart shows everything, just wondering: are your disks using a GPT partitioning scheme?
Code:
# zpool status
  pool: XXXXXXXXXX
 state: ONLINE
  scan: none requested
config:

        NAME                       STATE     READ WRITE CKSUM
        XXXXXXXXXXX               ONLINE       0     0     0
          diskid/DISK-XXXXXXXp3  ONLINE       0     0     0

errors: No known data errors

Code:
# gpart list
Geom name: diskid/DISK-XXXXXXXXX
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1953525127
first: 40
entries: 152
scheme: GPT

Code:
# gpart show
=>        40  1953525088  diskid/DISK-XXXXXXXXX  GPT  (932G)
          40        4056                         - free -  (2.0M)
        4096      524288                      1  efi  (256M)
      528384     8388608                      2  freebsd-swap  (4.0G)
     8916992  1944604672                      3  freebsd-zfs  [bootme]  (927G)
  1953521664        3464                         - free -  (1.7M)
 
I found this.

It seems kernel will try to use diskid/gptid first and hide others.
I actually preferred this way because I don't need worry when I change the disk ports.
The confusing was when I installing FreeBSD, I got my disk as /dev/ada0pX and written fstab for that, and then it disappeared. o_O
 
Back
Top