LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-22-2023, 03:38 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,418

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601

Disable secure-boot, disable csm/legacy boot. What is the name of the slackware iso you are using?
 
Old 05-23-2023, 10:18 AM   #17
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Question

Quote:
Originally Posted by LuckyCyborg View Post
Just stop playing with this CSM - leave everything as default excluding the Secure Boot.

LiveSlak can work under Secure Boot, BUT the installed Slackware itself will NOT work - even today it has no support for Secure Boot.

Please consider that for Windows 10 this Secure Boot is a security feature which Microsoft strongly recommends to use and for Windows 11 it's mandatory.

You should decide IF it's acceptable for you to put the Windows security at risk for the sake of Slackware, OR you will chose another Linux distribution capable to tag along on Secure Boot mode - practically any other major Linux distribution can do this trick, i.e. that Fedora which you tagged this thread.

I tell you those things solely for you to make an informed choice.
I was having odd issues with my USB because it was formatted, reformated, taken out of the port randomly and effected by ethcher, fedora media writer, Rufus, windows drive editor and UNetbootin but just now I created a bootable USB in Rufus w/ Ubuntu live .iso,Rufus formatted the USB stick to FAT32 as is custom, then I reset the BIOS to defaults, disabled secure boot and enabled Legacy. I restarted the PC, clicked esc. Then entered the boot menu and I still don't see an option for booting into the USB.
 
Old 05-23-2023, 10:25 AM   #18
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Red face

Quote:
Originally Posted by colorpurple21859 View Post
Disable secure-boot, disable csm/legacy boot. What is the name of the slackware iso you are using?
I disabled Secure boot and disabled legacy but didn't find an option for the csm settings. I still don't see the option to boot into my USB. I'm now using a fedoralive .iso USB because I just want to get the USB to boot in general.
 
Old 05-23-2023, 10:35 AM   #19
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,418

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
Does the fedora live iso boot?
 
Old 05-23-2023, 10:37 AM   #20
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Thumbs down

Quote:
Originally Posted by LuckyCyborg View Post
Excuse me? Permit me to believe that only thing which "literally holds your computer hostage" is only your own knowledge.

Anyway, there's what Mr. Hameleers (the author of LiveSlak) says about creating a LiveSlak USB dongle from Windows:

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

BTW, that link also can be easily found by almighty Google using the keywords: "liveslak windows"

Even simpler, there's also dd for Windows, which can help you on transferring an ISO file to an USB dongle:

http://www.chrysocome.net/dd
https://serverspace.io/support/help/...indows-backup/

Honestly, I for one I would prefer another way:

I will install VirtualBox in the Windows 10, then to create a small VM, with a hard drive of 10GB and using the LiveSlak ISO as boot media in that VM. Once booted in that WM, I will create a EXT4FS partition on whole hard drive, to use as storage, then I will download again (within VM) the ISO to that storage partition mounted on /mnt/tmp or similar. Finally, at this stage I can create a LiveSlak USB dongle as I like - after all I can associate an USB device with a VM.

BTW, the fact that you tagged also this thread as "fedora" makes me to believe that you are still undecided what path you will follow? Fedora or Slackware? So, again I will strongly recommend you to use virtual machines to play with both of these Linux distributions at your hearth content - they are vastly different anyway, so what we discuss in this thread probably would not be so useful also on handling Fedora.
I think I am stupid(I hope) or the company prior that put a bit defender lock/freeze on my PC is smarter than us and they also could edotied the BIOS/CMOS to not allow USB boot or/and to initial the bit defender block/freeze:
I called them and the IT help desk sad they only serve in-network machines. I am on my own.
What is CSM? Is it that same thing as legacy boot?
My problem ATM isn't creating the USB dongle I think. So I ask can I use the VM method to install the OS on the computer and have it result in a duel boot situation IRL? If not then the USB option is useless to me. None the less I will try to use your dd method to I install Slackware live on my USB but it appears that not even fedora is booting up via USB.
 
Old 05-23-2023, 10:38 AM   #21
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Unhappy

Quote:
Originally Posted by colorpurple21859 View Post
Does the fedora live iso boot?
It doesn't get the boot options for USB but only files, network and SSD on board:
https://ibb.co/yhdjmBc
https://ibb.co/NWRmTPp
 
Old 05-23-2023, 11:50 AM   #22
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,024

Rep: Reputation: Disabled
Just do web search:
https://wiki.debian.org/InstallingDe...ook%20840%20G3
and
https://h30434.www3.hp.com/t5/Notebo...p/td-p/7644966

Disable secure boot and if option available: turn off TPM.

Anyway it was done so you should be able to install linux on your box without much trouble.
 
1 members found this post helpful.
Old 05-23-2023, 12:13 PM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,418

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
How many drives does this system have? With the boot from file option, did you go down into each one to find a grubx64.efi or bootx64.efi file to boot?

Last edited by colorpurple21859; 05-23-2023 at 12:18 PM.
 
1 members found this post helpful.
Old 05-23-2023, 01:45 PM   #24
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Aeterna View Post
Just do web search:
https://wiki.debian.org/InstallingDe...ook%20840%20G3
and
https://h30434.www3.hp.com/t5/Notebo...p/td-p/7644966

Disable secure boot and if option available: turn off TPM.

Anyway it was done so you should be able to install linux on your box without much trouble.
I reset factory settings, disabled secure boy, clears secure boot keys which disables it too and enabled Legacy Boot and I don't see the option to boot into USB via boot menu.
 
Old 05-23-2023, 01:49 PM   #25
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Smile

Quote:
Originally Posted by colorpurple21859 View Post
How many drives does this system have? With the boot from file option, did you go down into each one to find a grubx64.efi or bootx64.efi file to boot?
Windows has 3 partitions. When I click on the second one it freezes. When I click on the third one it freezes. IDk how long I should wait. When I click on the first one of boot from files I get file map: EFI or System volume information, in efi I get boot -> bootx64.efi or Microsoft -> boot or recovery option. Recovery leads to .. and Microsoft to several of files.
 
Old 05-23-2023, 02:10 PM   #26
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,418

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
This may be the problem:
Quote:
I never had a problem like this also the left USB port does not work and I heard that you need the left USB port to boot into the USB.
I think I may have a work around once I work out the details, but it goes something like this:
open cmd in administrative mode, use diskpart to assign letter to efi partition, exit dispart, This should allow access to the efi partition from cmd so you can create a EFI/fedora or slackware directory and copy the efi boot files from the usb. Power off, plug in the usb, select boot from file and navigate to the linux boot files place on the efi partition of the hard drive.

Last edited by colorpurple21859; 05-23-2023 at 02:12 PM.
 
1 members found this post helpful.
Old 05-23-2023, 06:00 PM   #27
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,418

Rep: Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601Reputation: 1601
I think this will work:

insert the fedora usb or mount the fedora iso

open cmd with administrative privilege
Code:
diskpart
list vol  
sel vol <number of efi partition>
assign letter S
exit

mkdir S:\EFI\usbfedora
copy ?:\EFI\BOOT\* S:\EFI\usbfedora\
exit cmd
reboot with the usb plugged in and use the bios "boot from file" menu to navigate to efi\usbfedora\grubx64.efi


Notes:
"list vol" is for determing the vol number of the efi partition it will be one that isn't assigned a letter
assign a different letter if S is already used
The ? will be the drive letter of the fedora iso/usb

Last edited by colorpurple21859; 05-24-2023 at 05:17 AM.
 
1 members found this post helpful.
Old 05-23-2023, 10:49 PM   #28
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,024

Rep: Reputation: Disabled
Quote:
Originally Posted by naarter View Post
I reset factory settings, disabled secure boy, clears secure boot keys which disables it too and enabled Legacy Boot and I don't see the option to boot into USB via boot menu.
Pretty simple, this is how you boot Elitebook 840 G3 from usb key:

1) first insert Slackware bootable USB key into USB slot
2) while USB key is plugged in reboot/boot and enter BIOS
3) now you will see USB key as bootable device

A lot of notebooks will show only devices that are attached, otherwise you will not see them.

I had some time ago similar setup

Last edited by Aeterna; 05-24-2023 at 07:52 AM.
 
1 members found this post helpful.
Old 05-24-2023, 11:04 AM   #29
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Lightbulb

Quote:
Originally Posted by colorpurple21859 View Post
This may be the problem:


I think I may have a work around once I work out the details, but it goes something like this:
open cmd in administrative mode, use diskpart to assign letter to efi partition, exit dispart, This should allow access to the efi partition from cmd so you can create a EFI/fedora or slackware directory and copy the efi boot files from the usb. Power off, plug in the usb, select boot from file and navigate to the linux boot files place on the efi partition of the hard drive.
I opened disk part gui and it doesn't allow me to edit/preform actions on the windows efi partition and then I opened cmd as admin and put in diskpart and did the following:
Code:
 "In order to assign a letter to the EFI partition on Windows 10 using Command Prompt (CMD), you'll first need to open CMD in admin mode. Here are the steps:

1. Open Command Prompt with administrative privileges: Click on the Start button, type `cmd`, then right-click on "Command Prompt" and select "Run as administrator."

2. After opening the command prompt, you'll be using `diskpart`, a command-line utility provided by Windows for disk partitioning. Enter `diskpart` and hit `Enter`.

3. To list all disks available, type `list disk` and press `Enter`. You should see a list of all your active disks. 

4. Identify the disk that contains the EFI partition (usually Disk 0). To select the disk, type `select disk 0` (replace 0 with the actual disk number) and hit `Enter`.

5. Now type `list partition` and hit `Enter` to display all partitions on the selected disk.

6. Identify the EFI partition (usually around 100 MB). To select the partition, type `select partition 1` (replace 1 with the actual partition number) and press `Enter`.

7. Now, assign a letter to the EFI partition. To do so, type `assign letter=Z:` (replace Z with your preferred letter that is not in use) and press `Enter`. This assigns the letter Z to the EFI partition.

After these steps, you should now have an assigned letter to your EFI partition. Be cautious when using the DiskPart utility as incorrect usage can lead to data loss.

**Note:** The EFI partition is a special partition that contains important boot files for your system. Changing, deleting, or modifying files within this partition could prevent your computer from booting. Unless you have a specific reason for doing so, it's best not to make changes to this partition."
IT WORKED. How do I "create a EFI/fedora or slackware directory and copy the efi boot files from the usb. "? This is risky stuff and I don't want to break my PC. I followed your second post/cmd advice abiuf copying the two efis from usb to windows efi. What do I do next?

Last edited by naarter; 05-24-2023 at 11:12 AM. Reason: Correct update
 
Old 05-24-2023, 11:18 AM   #30
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Question

Quote:
Originally Posted by colorpurple21859 View Post
I think this will work:

insert the fedora usb or mount the fedora iso

open cmd with administrative privilege
Code:
diskpart
list vol  
sel vol <number of efi partition>
assign letter S
exit

mkdir S:\EFI\usbfedora
copy ?:\EFI\BOOT\* S:\EFI\usbfedora\
exit cmd
reboot with the usb plugged in and use the bios "boot from file" menu to navigate to efi\usbfedora\grubx64.efi


Notes:
"list vol" is for determing the vol number of the efi partition it will be one that isn't assigned a letter
assign a different letter if S is already used
The ? will be the drive letter of the fedora iso/usb
I have 3 options in usbubuntu with two leading to failed boot and the grub leading to grub loading and error.
 
  


Reply

Tags
bios, fedora, legacy, slackware, uefi



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
[SOLVED] Will this laptop work well with Linux: HP Elitebook 840 g9 Knightron Linux - Laptop and Netbook 14 11-12-2022 11:49 PM
Slackware on HP EliteBook 840 G7 Kowalczyk Slackware 7 08-14-2021 06:30 PM
HP Elitebook G5 - installing linux / pxe booting blackRonin Linux - Laptop and Netbook 2 12-21-2018 04:04 PM
[SOLVED] Puppy Linux Tahrpup 6.05 wireless not working on Laptop HP EliteBook 840 angelayala Linux - Wireless Networking 6 01-03-2016 05:36 AM
Slackware on HP EliteBook 2540p SqdnGuns Slackware 4 06-10-2012 01:44 AM

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

All times are GMT -5. The time now is 04:07 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