Date: Fri, 9 Jun 1995 14:00:28 +0800 (CST) From: Brian Tao <taob@gate.sinica.edu.tw> To: FREEBSD-HACKERS-L <freebsd-hackers@freebsd.org> Subject: MAKEDEV sd* deletes partition devices Message-ID: <Pine.BSI.3.91.950609135053.190B-100000@leo>
next in thread | raw e-mail | index | archive | help
I think there is some broken (or at least non-intuitive) behaviour in the way MAKEDEV handles disk slices. Recall that my 2.0.5A installation had incorrect minor numbers for the /dev/sd*.ctl devices. Today I brought the system down to single user for some unrelated maintenance, and decided to fix up the /dev directory. I ran "MAKEDEV sd0" and noted that /dev/rsd0.ctl now had the correct minor number. The next thing I did was umount the /usr and /tmp filesystems for a quick fsck (this was after the "biodone" panic I mention in a separate message). fsck complained that it could not stat /dev/sd0s1e nor /dev/sd0s1f, and that /dev/rsd0s1e and /dev/rsd0s1f were not character devices. I looked in /dev and found sd0s1* and rsd0s1* had all been deleted. It appears that a "MAKEDEV sd0" deletes the partitions, but then forgets to put them back. You need to do a separate "MAKEDEV sd0s1*" (* = [a-h]). "MAKEDEV sds1" only makes /dev/sd0s1. I would rather have the "sds1" target make the slice and partition devices, and if the "sd0" target deletes something, it should put them back. You're supposed to end up with *more* devices after running MAKEDEV, not less. ;-) -- Brian ("Though this be madness, yet there is method in't") Tao taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.91.950609135053.190B-100000>