loader.conf and rootdev option for memory disk
- Reply: Warner Losh : "Re: loader.conf and rootdev option for memory disk"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Nov 2022 19:56:53 UTC
Hi all, In the /boot/defaults/loader.conf are these options for memory disk settings: #mdroot_load="YES" # The "mdroot" prefix is arbitrary. #mdroot_type="md_image" # Create md(4) disk at boot. #mdroot_name="/boot/root.img" # Path to a file containing the image. #rootdev="ufs:/dev/md0" # Set the root filesystem to md(4) device. But - is this example for rootdev option still right? Because “ufs:/dev/md0” works fine on freebsd 12.1, but on freebsd 12.3 this does not work and generates error message: Can’t determine root device When I use this option with value “/dev/md0” or “md0” (even with this option commented out), so the machine boots correctly without any error. — Mira