LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2023, 01:14 PM   #1
ProzacR
Member
 
Registered: Jan 2006
Distribution: Slackware, Fedora
Posts: 50

Rep: Reputation: 2
Booting Slackware from windows 10 boot-loader?


Hi I just got another PC with UEFI things and so not to mention much more powerful hardware.
And decided to put my old SSD with Slackware into it, besides other partitions.
Now I wonder what is the best way to get Slackware back running without messing too much with existing things.

Maybe there is way I can use windows 10 bootloader somehow?
Other simple ideas also welcome.
 
Old 03-23-2023, 01:22 PM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Well, you can have multiple ESP (EFI) partition in a computer. One in each hard disk.

Assuming that your Slackware bootloader from the ESP of second hard driver is on the path: /EFI/Slackware/grubx64.efi (but similar is also for ELILO), I for one I will install rEFInd on /EFI/Boot (on the same ESP partition) and it will auto-discover both the operating systems, giving you a nice graphical boot menu for them.

After all, the rEFInd is first of all a Boot Manager, not a Boot Loader, even it have this ability too.

Of course, you should chose first from UEFI firmware which hard drive boots first in UEFI mode.

Bonus points: this way you do not touch the Windows and its hard disk at all.

Last edited by LuckyCyborg; 03-23-2023 at 01:36 PM.
 
Old 03-23-2023, 01:38 PM   #3
ProzacR
Member
 
Registered: Jan 2006
Distribution: Slackware, Fedora
Posts: 50

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Well, you can have multiple ESP (EFI) partition in a computer. One in each hard disk.

Assuming that your Slackware bootloader from the ESP of second hard driver is on the path: /EFI/Slackware/grubx64.efi (but similar is also for ELILO), I for one I will install rEFInd on /EFI/Boot (on the same ESP partition) and it will auto-discover both the operating systems, giving you a nice graphical boot menu for them.

After all, the rEFInd is first of all a Boot Manager, not a Boot Loader, even it have this ability too.

Of course, you should chose first from UEFI firmware which hard drive boots first in UEFI mode.

Bonus points: this way you do not touch the Windows and its disk at all.
Can you give more details? Like some link to tutorial?
Keep in mind that at this point my Slackware is not bootable and not accessible.
 
Old 03-23-2023, 01:42 PM   #4
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by ProzacR View Post
Can you give more details? Like some link to tutorial?
Keep in mind that at this point my Slackware is not bootable and not accessible.
I suggest you download a LiveSlak ISO and install it in an USB drive via Rufus, for example. OR, even better, by using Ventoy.

https://download.liveslak.org/

https://docs.slackware.com/slackware:liveslak

This way, you can boot a Linux OS and inspect your old Slackware as you like.

Last edited by LuckyCyborg; 03-23-2023 at 01:49 PM.
 
1 members found this post helpful.
Old 03-23-2023, 03:01 PM   #5
ProzacR
Member
 
Registered: Jan 2006
Distribution: Slackware, Fedora
Posts: 50

Original Poster
Rep: Reputation: 2
I installed Ventoy into my USB drive and placed Slackware iso into it.
Got though Slackware selection screen but got stuck during boot.
It really works that way?
 
Old 03-23-2023, 03:09 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by ProzacR View Post
I installed Ventoy into my USB drive and placed Slackware iso into it.
Got though Slackware selection screen but got stuck during boot.
It really works that way?
In theory, yes. In practice, of course also depends on the hardware.

Anyway, there's what Mr. Hameleers says about creating and booting an USB dongle with LiveSlak without Slackware.

https://alien.slackbook.org/blog/how...ing-slackware/

BTW, better to read also the comments on this blog post.

Also, see there:

https://www.linuxquestions.org/quest...nu-4175687644/

Last edited by LuckyCyborg; 03-23-2023 at 03:19 PM.
 
Old 03-23-2023, 08:02 PM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,446
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by ProzacR View Post
I installed Ventoy into my USB drive and placed Slackware iso into it.
Got though Slackware selection screen but got stuck during boot.
It really works that way?
Is "Secure Boot" enabled in your UEFI settings? Slackware won't boot with it enabled. Windows 10 will still work if you disable it.

For dual booting, you have two choices: rEFInd https://www.rodsbooks.com/refind/ or grub2.

Grub2 is included in Slackware by default, but a bit more finicky to set up. rEFInd can, more or less, just be dropped into place.
 
Old 03-23-2023, 08:10 PM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by rkelsen View Post
Is "Secure Boot" enabled in your UEFI settings? Slackware won't boot with it enabled. Windows 10 will still work if you disable it.
And the biggest question is: can be disabled the Secure Boot?

A brand new computer today may be Secure Boot only, from what I seen. Specially those "designed for Microsoft Windows 11"

Typically, the UEFI BIOSes with no CSM has also no ability to disable the Secure Boot. And like was said, Slackware has no ability to boot under Secure Boot.

So, if you do not find CSM functions in BIOS, and considering also that our BDFL probably will "consider" another 15-20 years either to sign or not his bootloaders and kernels, the best way probably is either to go Ubuntu, either to enjoy your Windows 11. After all, you payed for it.

Last edited by LuckyCyborg; 03-24-2023 at 02:57 AM.
 
1 members found this post helpful.
Old 03-24-2023, 01:50 AM   #9
ProzacR
Member
 
Registered: Jan 2006
Distribution: Slackware, Fedora
Posts: 50

Original Poster
Rep: Reputation: 2
I believe I disabled the secure boot. And it booted and I saw penguins and so, but the kernel got stuck. Too bad I forgot to take a pic with my phone.
I have that option on my ~5-year-old motherboard.
I will try Rufus when I have more time. It seems less complex. For sure I will take pictures then.
 
Old 03-24-2023, 07:11 AM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Some Slackware installers still drop one to a prompt where boot options can be designated including kernel and root device selection, allowing one to boot an existing system with the available kernels on the installer. I have no idea why this isn't default action anymore along with examples and instructions but at least sometimes this still works.

However once any kernel from the same Arch boots to a full bash runlevel, chroot is possible and a great tool for fixing a system with any manner of kernel panic among many other rescue missions.

For simple reference

Code:
#chroot process
mount /dev/foo /mnt
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount -o bind /proc /mnt/proc
chroot /mnt /bin/bash
Once effectively in the system at that root location to be fixed, one can install Grub2, rEFInd. or simply run liloconfig. elilioconfig, efibootmgr or manually alter a boot menu to edit or add a different kernel or initrd, or convert an MBR partition to GPT, whatever you think you need to restore a normal, working boot process.
 
2 members found this post helpful.
Old 03-24-2023, 07:39 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by LuckyCyborg View Post
...the best way probably is either to go Ubuntu, either to enjoy your Windows 11. After all, you payed for it.
If you can boot either Ubuntu or Fedora on such a machine, you have access to shim, because they both use it. And shim allows you to set up a Machine Owner Key (MOK) to sign any bootloader you want to use. Generally you do this during the installation. So once you have your key pair, you can sign the slackware version of GRUB or elilo and the kernel too if you need to.

There's also a slackdoc telling you how to do it without shim by using efitools to create your own platform key and key exchange key. There's always a way around these things.
 
3 members found this post helpful.
Old 03-25-2023, 01:40 PM   #12
ProzacR
Member
 
Registered: Jan 2006
Distribution: Slackware, Fedora
Posts: 50

Original Poster
Rep: Reputation: 2
Minutes before I retried with Rufus and got quite same results.
But this time I made picture with phone:
https://drive.google.com/file/d/1jM7...U-qe6TYQm/view
Code:
usb 9-3: device descriptor read/8, error -62
Any ideas how to resolve this issue?

Last edited by ProzacR; 03-25-2023 at 01:44 PM. Reason: write error as text not image
 
Old 03-25-2023, 01:44 PM   #13
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by ProzacR View Post
Minutes before I retried with Rufus and got quite same results.
But this time I made picture with phone:
https://drive.google.com/file/d/1jM7...U-qe6TYQm/view
Any ideas how to resolve this issue?
Try another USB port and/or try another USB dongle.

BTW, try to connect the dongle to the case's back USB ports, not on the front ones, which are connected internally via a cable.

Apparently the troubles are at very low levels, as in failing to properly detect the device associated to your storage on USB dongle.

I have seen errors like this with faulty USB dongles or ports.

Last edited by LuckyCyborg; 03-25-2023 at 01:48 PM.
 
1 members found this post helpful.
Old 03-25-2023, 01:56 PM   #14
ProzacR
Member
 
Registered: Jan 2006
Distribution: Slackware, Fedora
Posts: 50

Original Poster
Rep: Reputation: 2
I tired another port on back already with pretty much same results.
I think I will try to get some USB 3.0 dongle few days later as this one is really old one.
 
Old 03-25-2023, 01:57 PM   #15
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by ProzacR View Post
I tired another port on back already with pretty much same results.
Try another port in the back, and ensure that it's an USB 2.0 port.

Quote:
Originally Posted by ProzacR View Post
I think I will try to get some USB 3.0 dongle few days later as this one is really old one.
That's a good idea.
 
  


Reply

Tags
boot loader



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I have to run my own u-boot loader instead of default u-boot loader of BeagleBone Black Amolp Linux - Embedded & Single-board computer 2 06-23-2016 01:12 PM
Linux boot loader entry in Windows boot loader abhikohokade Linux - Newbie 6 02-22-2013 06:12 AM
I want to remove ubuntu boot loader and use windows boot loader RUshabh55 Linux - Newbie 9 11-29-2009 07:01 PM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration