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.
maybe it - it seeing something that is calling for it to be mounted on /mnt but it is not within the fstab file so it fails to mount then is giving you that message.
Does initrd mount the filesystem to /mnt and the chroot it?
If you speak about the installer, the initrd does mount / (of the target system) as /mnt but it doesn't need /etc/fstab as it does that on behalf of root, so there is no need for /etc/fstab. But that should not be your context anyway, as the installer ships only a huge kernel, so I assume that you already installed 14.2 and try to boot it, and that you built the initrd that loads the needed drivers beyond what's buit in the generic kernel. Is that right?
Even in that case I do not understand that message, as I don't see a reason to mount /mnt in the startup process, and if it was the case it would be done as root anyway so you shouldn't get that message, only displayed in case or a non root user.
Elaborating on your context and situation could help understand your issue. I don't understand what you mean with "grub as a virtual guest on KVM", as your Slackware could be a virtual guest, not the boot manager. At the very least we need more information like your grub.cfg and your KVM setting, and the command used to built the initrd.
Last edited by Didier Spaier; 05-31-2017 at 04:58 AM.
Even in that case I do not understand that message, as I don't see a reason to mount /mnt in the startup process, and if it was the case it would be done as root anyway so you shouldn't get that message, only displayed in case or a non root user.
Just a stab in the dark, because I'm not all that familiar with the initrd process beyond running mkinitrd_command_generator.sh, but if someone were to build an initrd from the installer without using a chroot (if it's even possible), could that lead to the initrd trying to mimic the same conditions (ie, having the root partition mounted to /mnt/)?
.... I assume that you already installed 14.2 and try to boot it, and that you built the initrd that loads the needed drivers beyond what's buit in the generic kernel. Is that right?
That is correct.
Quote:
Originally Posted by Didier Spaier
Elaborating on your context and situation could help understand your issue. I don't understand what you mean with "grub as a virtual guest on KVM", as your Slackware could be a virtual guest, not the boot manager. At the very least we need more information like your grub.cfg and your KVM setting, and the command used to built the initrd.
I can see how that sounds confusing. I was just trying to explain the setup, which is non-typical as slackware is installed on a kvm virtual guest and I have installed the grub boot loader rather than the default lilo.
I can post the grub.cfg tonight. Initrd was built using:
So a few more things.
I recognized the line following the mount error from the init script.
Code:
mount: can't find /mnt in /etc/fstab
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when things are done.
From the init script:
Code:
mount -o ro,$ROOTFLAGS -t $ROOTFS $ROOTDEV /mnt
if [ ! -r /mnt/sbin/init ]; then
echo "ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead."
echo "You can try to fix it. Type 'exit' when things are done."
So I mounted the filesystem manually and exited
Code:
mount -o ro,subvol=system -t btrfs /dev/sda1 /mnt
exit
and the system continued to boot up fine. I thought maybe I screwed up when I patched the init script to use the rootflags boot option so I hardcoded that into the init script
Code:
mount -o re,subvol=system -t $ROOTFS $ROOTDEV /mnt
rebuilt the initrd, and rebooted. The issue was still there so I went back in and hard coded the entire mount line in the script
Code:
mount -o ro,subvol=system -t btrfs /dev/sda1 /mnt
rebuilt, and rebooted. All booted up fine?! I checked the contents of rootfs and rootdev in /boot/initrd-tree/ and they had all the correct info.
change to generic kernel, won't boot. have to
mount /dev/sda1 /mnt
then exit
to continue booting.
had to follow rbn14's tip
hardcoded into init script
mount -o ro -t btrfs /dev/sda1 /mnt
I DO NO THINK Piggy backing is allowed in here. you might want to create your own post for your own problem. 2) include detailed steps you took to swap kernels - including output from same steps - links you might have created too match the new kernel to the fileName that lilo or grub looks at to use to boot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.