After reading the relevant chapters on NanoBSD from the official manuals, the Absolute FreeBSD book and also from the net, I have some questions about the build.
I compiled a nanobsd _.disk.full and _.disk.image and then copied to the usb stick with dd. Gets booted to the point where it asks for mountpoint, giving an error that it could not mount /dev/ad0s1a to / in read-only and /dev/ad0s3 to /cfg read-writable. I manually mount "ufs:/dev/da0s1a" and get the root prompt.
As soon as I get the root prompt, I mount /dev/da0s1a to / and /dev/da0s4 to /cfg in read-writable format, and make the necessary changes that I need in /boot/loader.conf and /etc/rc.conf and /etc/fstab replacing the relevant mountpoints from the usb disk. I also copy the contents of the entire /etc/ directory to /cfg/ directory which is reportedly from where the NaonBSD reads the configurations.
But when I reboot, I still have to reconfigure everything, because next boot does not read anything from /cfg and even it fails to mount /dev/da0s4 which is to be mounted from /etc/fstab (/cfg/fstab). Instead in dmesg, I saw /dev/ad0s3 is trying to get mounted in place of /dev/da0s4 for rw /cfg mountpoint.
The original /etc/fstab looked like:
After booting I changed to:
Is this the normal way NanoBSD behaves? I guess not from what I read online and in books. If not why the specified partitions are not mounted?
I expect responses from NanoBSD/FreeBSD gurus, I know there are a lot of daemon-fans hovering around the forum ;-) Thanks!
I compiled a nanobsd _.disk.full and _.disk.image and then copied to the usb stick with dd. Gets booted to the point where it asks for mountpoint, giving an error that it could not mount /dev/ad0s1a to / in read-only and /dev/ad0s3 to /cfg read-writable. I manually mount "ufs:/dev/da0s1a" and get the root prompt.
As soon as I get the root prompt, I mount /dev/da0s1a to / and /dev/da0s4 to /cfg in read-writable format, and make the necessary changes that I need in /boot/loader.conf and /etc/rc.conf and /etc/fstab replacing the relevant mountpoints from the usb disk. I also copy the contents of the entire /etc/ directory to /cfg/ directory which is reportedly from where the NaonBSD reads the configurations.
But when I reboot, I still have to reconfigure everything, because next boot does not read anything from /cfg and even it fails to mount /dev/da0s4 which is to be mounted from /etc/fstab (/cfg/fstab). Instead in dmesg, I saw /dev/ad0s3 is trying to get mounted in place of /dev/da0s4 for rw /cfg mountpoint.
The original /etc/fstab looked like:
Code:
/dev/ad0s1a / ufs ro 1 1
/dev/ad0s3 /cfg ufs rw,noatime,noauto 2 2
After booting I changed to:
Code:
/dev/da0s1a / ufs ro 1 1
/dev/da0s4 /cfg ufs rw,noatime,noauto 2 2
Is this the normal way NanoBSD behaves? I guess not from what I read online and in books. If not why the specified partitions are not mounted?
I expect responses from NanoBSD/FreeBSD gurus, I know there are a lot of daemon-fans hovering around the forum ;-) Thanks!