[SOLVED] dual boot with lilo on btrfs - slackware 13.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I just did a fresh install of slack 13.1 on a separate drive to the one I was previously using. I've been having trouble getting lilo to work, so that I can choose between either drive. Lilo is currently installed to /dev/sda, with the old system on /dev/sda1 and the new installation on /dev/sdb1. I keep getting errors like these:
Code:
Fatal: Trying to map files from unnamed device 0x0011 (NFS/RAID mirror down ?)
I managed to install lilo from the old system by copying the kernel image from the new system into the /boot/ directory and running lilo. I am now on the new system and trying the same thing in reverse but it isn't working.
I have searched around a bit and there's a lot of talk of chroot-ing into the other partition to run lilo. I don't understand why the process isn't working both ways though. I can't run lilo on my new installation even with the two kernel images in the local /boot/ folder. Is this something to do with btrfs or am I missing something to do with lilo?
This is my lilo.conf file. I am trying to run lilo using this file from my new installation on /dev/sdb1 and getting the error given above.
I'm not sure exactly what you mean by this. The drives are both SATA, /dev/sda is the first channel, /dev/sdb is the second. They're in this order in the bios too. Where do I get these numbers from, or was the one in your example the right one?
I have a partition I want to be able to boot on /dev/sda1 and /dev/sdb1. I want lilo to be installed to the MBR of the first drive, /dev/sda. Doesn't my current configuration match that?
To run lilo from your new installation on /dev/sdb1, you will need to have the old installation mounted in your new installation e.g. 'mount /dev/sda1 /mnt/tmp'
Then 'lilo -r /mnt/tmp' should work.
Note that this command causes lilo to do a 'chroot' to the installation on /dev/sda1, so the lilo.conf in /etc on /dev/sda1 will be used.
To run lilo from your new installation on /dev/sdb1, you will need to have the old installation mounted in your new installation e.g. 'mount /dev/sda1 /mnt/tmp'
Then 'lilo -r /mnt/tmp' should work.
Note that this command causes lilo to do a 'chroot' to the installation on /dev/sda1, so the lilo.conf in /etc on /dev/sda1 will be used.
At the moment I'm on my /dev/sda1 partition but if I want to install lilo from the other installation I'll use the chroot method. I didn't realise that it was a problem to run lilo from /dev/sdb if I wanted to install to the MBR of /dev/sda. This explains one thing, thanks.
However, I still can't run lilo if my images are like this
This is with /dev/sdb1 mounted on /mnt/hd, with an entry in fstab just like the one you suggested Drakeo.
I get
Code:
root@darkstar:/home/tom# lilo
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Added Slackware64 *
Fatal: Trying to map files from unnamed device 0x000e (NFS/RAID mirror down ?)
This is the bit I still don't get! Surely this should work! Is this possibly related to my quite stripped down kernel, and/or the fact I'm using btrfs? I haven't got any of the "multiple devices" section of the kernel compiled in. Is this required?
What happens when you have a copy of vmlinuz-huge-smp-2.6.33.4-smp in the boot of /dev/sda1 and change to 'image = /boot/vmlinuz-huge-smp-2.6.33.4-smp' in lilo.conf in /etc of /dev/sda1?
If this causes an error, then I suspect that the problem is occurring outside lilo.
Right, I have just put my SSD in my new eee 1005ha. There is only one installation on /dev/sda1 and I'm trying to install lilo to /dev/sda (the only disk in the system). Even so I get the following:
Code:
Fatal: Trying to map files from unnamed device 0x0011 (NFS/RAID mirror down?)
I went onto the btrfs IRC channel and spoke to someone, they said that Lilo is currently incompatible with btrfs, so you can't install it if the /boot folder is in a btrfs partition. I didn't realise Lilo had these sorts of problems but apparently it does. They also told me that GRUB wouldn't work any better at the moment.
I made myself a little ext2 partition for /boot and now it all works fine. I guess in a future release Lilo might support btrfs. Will mark this as solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.