Problems with making a lilo configured bootable Slackware usb stick
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.
Problems with making a lilo configured bootable Slackware usb stick
Hi,
I recently considered finding a way to install new Slackware-current (14.2 beta1) on a usb stick as on my laptop there are problems with the sound with the new current switch to pulseaudio - I do not know yet how to fix it and I hope it will be fixed in the future...
So, I followed the instructions that I found on several sources on Internet for setting up the usb stick after Slackware install, with lilo afterwards, also I also tried first syslinux, with relatively similar results, meaning all I got was either fail to mount the /dev/sdb1 ext4 root partition on /mnt error and dropping me to a prompt, or sometimes (strange because it down't seem to replicate again) kernel panic - not syncing - VFS unable to mount root fs on unknown block (8,17). What is to be mentioned is that in the first case, if I ls /dev on that prompt, I can see /dev/sda partitions (1,2,3,4) but not the /dev/sdb, /dev/sdb1 and /dev/sdb2 devices, also they are certainly present into the initrd-tree.
Here are the steps that I followed, please help me in this direction:
Code:
# mount /dev/sdb1 /mnt/memory
# mount --bind /dev /mnt/memory/dev
# mount --bind /dev/pts /mnt/memory/dev/pts
# mount --bind /sys /mnt/memory/sys
# mount --bind /proc /mnt/memory/proc
I then chroot into the partition mount point and generate initrd with (I included as many kernel modules as I knew) - I am trying here on a 14.1 install:
However, if you do want to proceed:
IIRC there are some comments on his blog regarding USB delay, which may be relevant to your problem above. You'd also be advised to use UUIDs (eg /dev/disk/by-uuid/whatever) in your LILO config, rather than explicitly stating /dev/sdb, as devices could be detected in any order and it allows for additions drives to be added without breakage.
Hi MarcT and thanks for the answer. I'll try, of course, Eric's image, in fact that was what inspired me to try building one.
Now, if I try to set lilo with uuid, I manage to see again that VFS error, if I set the 'boot' field to the uuid corresponding of /dev/sdb1 (root sector), and lilo refuses to install if I set it to 'id' ones. I know that it was mentioned in the lilo.conf-example that with newer kernels it should work with setting it to 'id'. So, my next try would be to install the Slackware-current newer 4.4.0 (if I'm not wrong) kernels and test it with it.
Did this recently using Grub2 instead of lilo, and disk/by-label instead of uuid for the root parameter. Install Slackware as usual by booting
with the install media then attach the USB, format it and label it (I used ext2, Slak1 for label).
After installation, edit fstab to mount / using the label above:
I'll try this method right after another try with lilo and without -u flag to mkinitrd. I've already tested the 4.4.0 kernels without success. Actually I didn't ever used grub on Slackware, only on Debian without much understanding of it's power, but it's nice to learn it on Slackware. Thanks.
BTW, also thanks to colorpurple21859, I used his indication but also without any result. It just doesn't see the /dev/sdb1 device, that's why I thought about removing the -u flag, maybe somehow udev removes it. I really don't understand why and how there are moments when I get that VFS - 8,17 error, telling me that at that moment it has seen the device, but couldn't verify it.
I've tried, doesn't work. I am giving up with lilo. With two consecutive similar installs I've got two different results: install was with 'boot = /dev/sdb1' (changed from /dev/sdb) and got the kernel prompt with "could not find /mnt in fstab" (so not a missing /dev/sdb1 this time) and after a second similar lilo install got the frequently "could not mount /dev/sdb1 on /mnt" (mising /dev/sdb1).
I really don't understand what's the cause of this differences.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.