Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
I have 2 identical NVMe drives with GPT partitioning and a ext4 Slackware64-15.0 root partition on nvme0n1p1. I'm using the stock huge kernel and lilo. Occasionally the kernel will fail to find the root filesystem because it's looking on the wrong drive (I know this because I tried putting another root partition with a different hostname on nvme1n1p1).
I've tried configuring lilo with standard device names, by-id names, filesystem labels, and GPT partition labels but still get the same behavior. About every 5th boot it looks on the wrong drive.
Thanks for the suggestion. I've already tried the same things in fstab which I tried in lilo.conf. I also changed some fstab lines in the root partition on nvme1n1p1 so I could see which root partition was being used. That showed the kernel was loading the wrong root so I'm pretty sure the problem is with the kernel (5.15.63) or lilo (24.2) or even the BIOS or hardware (Asrock X570M-Pro4, BIOS 3.70, Ryzen 7 5800X).
I have 2 identical NVMe drives with GPT partitioning and a ext4 Slackware64-15.0 root partition on nvme0n1p1. I'm using the stock huge kernel and lilo. Occasionally the kernel will fail to find the root filesystem because it's looking on the wrong drive (I know this because I tried putting another root partition with a different hostname on nvme1n1p1).
I've tried configuring lilo with standard device names, by-id names, filesystem labels, and GPT partition labels but still get the same behavior. About every 5th boot it looks on the wrong drive.
Please advise on what I'm doing wrong.
Just make sure the IDs used to distinguish the filesystems or partitions are different, and the initrd waited long enough for the disk devices to appear.
I've been using PARTUUID to find the root filesystem for years on a machine with two NVMe disks and it always worked no matter how the device names change.
Just make sure the IDs used to distinguish the filesystems or partitions are different, and the initrd waited long enough for the disk devices to appear.
I've been using PARTUUID to find the root filesystem for years on a machine with two NVMe disks and it always worked no matter how the device names change.
Thanks for the info. Is an initrd required? I've been using the huge kernel with no initrd. And if required, how do I ensure the initrd waits long enough?
Thanks for the info. Is an initrd required? I've been using the huge kernel with no initrd. And if required, how do I ensure the initrd waits long enough?
]]
There is /etc/mkinitrd.conf
Code:
man mkinitrd.conf
man mkinitrd
Code:
sh /usr/share/mkinitrd/mkinitrd_command_generator.sh
will give a starting point of what modules are needed in the mkinitrd.conf
Last edited by colorpurple21859; 11-14-2022 at 05:33 AM.
Thanks to everyone who replied. I settled for the workaround, not really fix, of removing the second NVMe drive and using an external USB gen 2x2 drive instead. That setup is working fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.