Issues during booting: slackware on external usb hd with btrfs
Hi All,
I have installed slackware on my external usb harddisk with btrfs as root filesystem. I referred mainly to the following articles: 1. http://www.yodaconditions.com/?p=14 2. http://snarfu.com/slackware/slackware-btrfs-encryption/ 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: Code:
mount: mounting /dev/sdb3 on /mnt failed: No such file or directory. Code:
mount -t btrfs -o subvol=system /dev/sdb3 /mnt During boot I get another error message as: Code:
Testing root filesystem status: read-write filesystem 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/sdb2 /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: Code:
mkinitrd -c -k 2.6.37.6 -f btrfs -r /dev/sdb3 -m usb-storage:ehci-hcd:usbhid:btrfs -u -o /boot/initrd.gz Code:
# LILO configuration file |
You need to pass the wait (-w10) option to the mkinitrd command, and don't forget to rerun lilo. This will give the usb subsystem time to initialize.
|
Thanks XGizzmo. I will try your suggestion as soon as I get to work on my laptop. But isn't "rootdelay=20" in 'append' part of lilo.conf doing the same? Also is that 10 millisecond? I have 'wait-for-root' set to 1 under initrd-tree. Is that millisecond or second?
|
rootdelay does not work with an initrd, to the kernel the initrd is mounted on /. The time is in seconds.
|
Hi,
I tried your suggestion. The problem persists. I actually put wait value 20 so that I can make out that delay. The system waits but then again drops me to shell. As before, it does not mount the root to /mnt and I have to manually do the mount. I have installed Ubuntu 12.04 on this drive with btrfs and the following is the snippet from grub.cfg Code:
linux /@/boot/vmlinuz-3.2.0-24-generic root=/dev/sdb5 ro rootflags=subvol=@ quiet splash $vt_handoff Code:
image = /system/boot/vmlinuz-generic-2.6.37.6 |
I found this thread here in this forum. The problem is same as my first problem. The solution provided makes sense although is a little hack. But changing
Code:
mount -o ro -t $ROOTFS $ROOTDEV /mnt Code:
mount -o ro,subvol=system -t $ROOTFS $ROOTDEV /mnt |
You may need to hack the init script a bit to pass the -o subvol=system option to mount.
look for a line like: Code:
mount -o ro -t $ROOTFS $ROOTDEV /mnt Code:
mount -o ro,subvol=system -t $ROOTFS $ROOTDEV /mnt **EDIT: I see you found that same info while I was posting. |
All times are GMT -5. The time now is 09:20 AM. |