how to boot Slackware on the second disk if on the first is windows10
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.
interestingly Windows has put its own boot stuff into the EFI partition on disk2, and disk1 has no EFI partition.
this was done automagically by the Windows setup.
now the question is, how can I add Windows to the elilo entry and boot to the elilo menu per default, or better, get grub working since this can remember the last booted OS what is a nice feature ?
I have a booting windows, on disk0 , EFI on disk1/1 and Slackware on disk1/2, Windows10 and a Slackware install USB to boot from
there is a Slackware in the boot menu list but when I boot it it says there is no sdbX
The problem is that the boot menu entry is pointing to sdb, but your second disk is a NVMe SSD which is identified by nvme0. So you going to need to edit the boot menu entry to change the path from sdb to nvme0. Assuming that you can boot Slackware or a Slackware live you can do this with efibootmgr using the following command:
Code:
efibootmgr -c -d /dev/nvme0nX -p Z -L Slackware -l \\EFI\\Slackware\\elilo.efi
Where the X needs to be changed to the the appropriate disk number which is your case is most likely 1 and the Z need to be changed to the appropriate partition, which again is most likely 1. You can get this information by reviewing the output of lsblk.
Quote:
Originally Posted by a4z
the problem with some of the tips here is, they assume I already in Linux, but I am not :-) :-(
need to see how this thing looks from MS,
The problem is that the boot menu entry is pointing to sdb, but your second disk is a NVMe SSD which is identified by nvme0. So you going to need to edit the boot menu entry to change the path from sdb to nvme0. Assuming that you can boot Slackware or a Slackware live you can do this with efibootmgr using the following command:
Code:
efibootmgr -c -d /dev/nvme0nX -p Z -L Slackware -l \\EFI\\Slackware\\elilo.efi
Where the X needs to be changed to the the appropriate disk number which is your case is most likely 1 and the Z need to be changed to the appropriate partition, which again is most likely 1. You can get this information by reviewing the output of lsblk.
it worked with sdb before, not sure if this is the problem, or that the computer changes the hardisks order now when I select Slackware boot entry
Are you sure that you were using the UEFI's boot men entry to boot you Slackware install or was it using grub? grub nor rEFInd use the boot menu entry to boot, they both can detect boot loaders and boot without using the boot menu entries.
Quote:
Originally Posted by a4z
or that the computer changes the hardisks order now when I select Slackware boot entry
This is a possibility, in fact it just happened to me last night as a result of creating a partition in the middle of my disk in Windows. When I tried to reboot none of my two installations (Slint, Salix) would boot. Found out out as a result of adding the new partition my disk partitions got reordered. Ended up needing to edit the appropriate fstabs and elilo.conf files using a Salix Live disk.
Are you sure that you were using the UEFI's boot men entry to boot you Slackware install or was it using grub? grub nor rEFInd use the boot menu entry to boot, they both can detect boot loaders and boot without using the boot menu entries.
well, it booted .... this t430s has quite some history, I have forgotten what all I had installed in which combinations, quite a lot, I think this NB has every year or so an new config, but the Slackware installation lives now on it a bit longer (since 14.2 came out) and I want to keep it if possible.
before I installed windows 10 it was grub2 from Ubuntu what booted what was written into elilo, this is how far my goldfish memory goes back for this
What bloody Windows did is put its bootloader on /dev/sdb1 and bump out your good old GRUB. Now, what you have to do is simple, well I hope so: reinstall GRUB on EFI partition /dev/sdb1.
Firstly, you need a bootable live USB/CD/DVD. A Slackware DVD/USB will be great. Boot into it, chroot into Slackware root filesystem on /dev/sdb and grub-install. After you boot into the live media:
Code:
# Mount Slackware root filesystem
mount -t ext4 /dev/sdb2 /mnt
# Mount EFI partition
mount -t vfat /dev/sdb1 /mnt/boot/efi
# Mount some useful temp filesystems
mount -t proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev
mount --rbind /run /mnt/run
# Chroot into your Slackware
chroot /mnt env -i HOME=/root PATH=/usr/bin:/usr/sbin:/bin:/sbin bash --login +h
# Proceed to install grub-efi
modprobe efivars
modprobe dm-mod
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --recheck --debug
# Just make sure grub has all the necessary files before running mkconfig
mkdir -p /boot/grub/locale
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# Finally generate the grub config file with all the necessary entries
grub-mkconfig -o /boot/grub/grub.cfg
Two important things here:
(1.) the grub-install command gives a lot of output. If you read the last 10 lines or so carefully, you will see it calls efibootmgr. Any error will be reported. If there are errors, post them here and we will advise further.
(2.) If grub-mkconfig complains that it cannot add an entry for Windows 10, you will have to add the entry manually in /boot/grub/grub.cfg. You can do that after your Slackware is successfully booted, of course.
Code:
menuentry 'Windows 10' {
set root='hd1,gpt1'
chainloader /EFI/Windows/Boot/bootmgfw.efi
}
You can modify the line for chainloading Windows bootloader if the path is different for your system.
All the best.
Last edited by aragorn2101; 10-17-2017 at 07:22 AM.
I have no idea why the entry with the generic kernel and the initrd stopped working, it worked before the windows installation, at least, this was my elilo conf
or, something else was going on I don't understand, however, important is that I have my Slackware back!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.