I have installed slackware on my external usb harddisk with btrfs as root filesystem. I referred mainly to the following articles:
The installation is completed successfully and am writing this post from my slackware install. However I have two problems during boot.
1. root not mounting automatically
I get the following error:
mount: mounting /dev/sdb3 on /mnt failed: No such file or directory.
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when things are done.
I accidentally found out that booting proceeds if I manually mount the root on /mnt as:
mount -t btrfs -o subvol=system /dev/sdb3 /mnt
2. complain about root mounted as read-write
During boot I get another error message as:
Testing root filesystem status: read-write filesystem
***ERROR: Root partition has already been mounted read-write. Cannot check!
..Please modify your kernel with 'rdev' so that it does this. If you are booting with LILO add a line 'read-only' to the linux section...
Then there is option to just hit ENTER, and if I do, the booting continues and am able to login to the system.
I suspect these two issues are related to my lilo.conf. Can you help me with this? Mistake with spelling, space, order..?
On this external usb hd, I have GPT partitions as:
/dev/sdb1 BIOS boot
/dev/sdb3 btrfs with 'system' and 'home' as subvolumes
I use generic kernel and created initrd.gz as suggested by the mkinitrd_command_generator.sh script which is:
mkinitrd -c -k 18.104.22.168 -f btrfs -r /dev/sdb3 -m usb-storage:ehci-hcd:usbhid:btrfs -u -o /boot/initrd.gz
The following is my lilo.conf file.
# LILO configuration file
boot = /dev/sdb
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
append=" rootdelay=20 vt.default_utf8=0"
timeout = 50
vga = 773
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-22.214.171.124
append = "root=UUID=77e2cc1c-c66d-445e-8173-84335fd02ae3 rootflags=subvol=system"
initrd = /boot/initrd.gz
label = Slackware
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
Thanks in advance.