Hi, I tried to mount root slice using the device nodes provided in /dev/ufs directory. It works fine for other slices but not for the root slice. If I try it I get prompt asking for root slice at boot time. It this not possible at all or am I doing something wrong? -- VH
On Wed, 2009-01-14 at 19:00 +0100, V?clav Haisman wrote:> Hi, > I tried to mount root slice using the device nodes provided in /dev/ufs > directory. It works fine for other slices but not for the root slice. If I > try it I get prompt asking for root slice at boot time. It this not possible > at all or am I doing something wrong?If you don't have geom_label built into the kernel it's a chicken-egg problem. Even if you do, early startup almost certainly doesn't have devfs available yet. -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/ http://www.zazzle.com/fmayhar*
On Wed, Jan 14, 2009 at 1:00 PM, V?clav Haisman <v.haisman@sh.cvut.cz> wrote:> Hi, > I tried to mount root slice using the device nodes provided in /dev/ufs > directory. It works fine for other slices but not for the root slice. If I > try it I get prompt asking for root slice at boot time. It this not possible > at all or am I doing something wrong?You should add vfs.root.mountfrom="ufs:ufs/whatever" to /boot/loader.conf This will short circuit the bootloader's attempts to resolve it from the rootdev:/etc/fstab entry for /, which, occasionally, will be unable to deal with an fstab with an otherwise legal ufs label. I noticed it a few years ago when I moved every machine I had to using geom_label to find the root device, but I was unable to find the source of the bug in the code (src/sys/boot/common/boot.c, the getrootmount routine).
V?clav Haisman wrote:> Hi, > I tried to mount root slice using the device nodes provided in /dev/ufs > directory. It works fine for other slices but not for the root slice. If I > try it I get prompt asking for root slice at boot time. It this not possible > at all or am I doing something wrong?It works for me without any issues on FreeBSD 7.1-BETA2 amd64 (booting from USB flash disk): # cat /etc/fstab /dev/ufs/2gLive / ufs ro 1 1 I am using GENERIC without tuning in loader.conf Miroslav Lachman