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-24-2023, 11:44 AM   #31
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3

So what do I do next. Here are the respective Photos of cmd upon efi creation and copy of usbubuntu: https://ibb.co/BBrwgL5
https://ibb.co/pRtQz03
https://ibb.co/j6CqsxR
https://ibb.co/HKkNwLw
https://ibb.co/ZhYhWL0
https://ibb.co/1sDNwft
https://ibb.co/N9KNKQH
 
Old 05-24-2023, 11:46 AM   #32
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by Aeterna View Post
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
I think I did this and it doesn't show the USB as an option so does that mean it is not connected?
 
Old 05-24-2023, 12:02 PM   #33
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Smile

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 did this also with fedora and got "Selected boot image did not authenticate. Please press enter to attempt boot to next device".
 
Old 05-24-2023, 12:08 PM   #34
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
When I click BOOTX64.EFI I get a "error: ../../grub-core/fs/fshelp.c:257:file '/images/pxeboot/vmlinuz' not found..
.error:../../grub-core/loader/i386/efi/...yada yada.. You need to load the kernel first"

The. Options for start fedora live and test media and troubleshoot
 
Old 05-24-2023, 12:08 PM   #35
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,434

Rep: Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603
is secureboot disabled?
 
1 members found this post helpful.
Old 05-24-2023, 12:56 PM   #36
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by colorpurple21859 View Post
is secureboot disabled?
I disabled it and this time correctly so with it disabled and legacy boot on or off it brings me to a grub menu to either boot into fedora, test it, troubleshooting.... Then it gives me two error messages bc it can't boot the kernel or something I think
 
Old 05-24-2023, 01:05 PM   #37
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
I know I need to keep secure boot off and idk if I should keep legacy on or not. Someone told me:
"Alright, let's break down the process. I must emphasize, however, this is advanced and potentially risky. If not done correctly, it could make your system unbootable. You'll be using both Windows and Linux tools for this process. Make sure you understand each step before proceeding.

Before you begin, make sure you've made a complete backup of any important data on your computer.

1. **Create the Linux Bootable USB Drive**

You're going to need a Linux distribution ISO. You can get this from the official website of the Linux distribution you are interested in. For Fedora, you can get it from here: `https://getfedora.org/` and for Ubuntu from here: `https://ubuntu.com/download/desktop`.

Once you have the ISO, you need to write it to a USB drive. You can use a program like Rufus on Windows for this. It will format the USB drive and copy the contents of the ISO onto it.

2. **Mount the EFI Partition**

The EFI (Extensible Firmware Interface) partition is a special partition where bootloaders are stored. On a Windows machine, this is where the Windows bootloader resides. It's usually a FAT32 partition and doesn't have a drive letter assigned to it by default.

You can assign a letter to it using the `diskpart` tool in Windows as described in the previous responses. Once you've assigned a letter, you can access it in File Explorer just like any other drive.

3. **Copy the Linux Bootloader to the EFI Partition**

Now comes the tricky part. You'll want to go to your bootable USB drive and navigate to the EFI bootloader for your Linux distribution. For Fedora, it's typically in `/EFI/BOOT/BOOTX64.EFI` and for Ubuntu it's typically `/EFI/BOOT/grubx64.efi`. You can simply copy this file to a new directory in the EFI partition of your hard drive.

For example, if you assigned the letter Z to the EFI partition, you might create a new folder at `Z:\EFI\fedora` or `Z:\EFI\ubuntu` and copy the .EFI file there.

4. **Create a new UEFI Boot Entry**

This is where it gets complicated. The UEFI (Unified Extensible Firmware Interface) firmware on your motherboard maintains a list of valid boot entries, each of which corresponds to a bootloader on the EFI partition.

To add a new entry to this list, you'll need to use a tool called `bcdedit` on Windows.

Open an admin Command Prompt and use the following command:

```bash
bcdedit /create /d "Description" /application bootsector
```

Replace "Description" with a description of the new boot entry, like "Ubuntu" or "Fedora". This command will output an identifier for the new boot entry.

Then, use the following command to set the path for the new boot entry:

```bash
bcdedit /set {identifier} path \EFI\fedora\BOOTX64.EFI
```

Replace "{identifier}" with the identifier output from the previous command, and adjust the path to point to the .EFI file you copied earlier.

Finally, you'll need to add the new boot entry to the boot order:

```bash
bcdedit /displayorder {identifier} /addlast
```

Again, replace "{identifier}" with the identifier from earlier.

With these steps, you should be able to add a Linux bootloader to your Windows EFI partition and create a new UEFI boot entry for it. This should allow you to boot the Linux distribution from your hard drive.

Be sure to test it out and make sure you can still boot into Windows as well. If something goes wrong, you might need to use recovery"
 
Old 05-24-2023, 02:15 PM   #38
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,035

Rep: Reputation: Disabled
Quote:
Originally Posted by naarter View Post
I think I did this and it doesn't show the USB as an option so does that mean it is not connected?
Boot to windows
Insert any USB
Check if USB is visible. If USB is visible, Do not remove it but
Reboot and enter BIOS directly
Check if USB is recognized in BIOS
 
Old 05-24-2023, 05:44 PM   #39
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,434

Rep: Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603
add this to the mix

mkdir S:\boot
robocopy ?:\boot S:\boot /e
 
1 members found this post helpful.
Old 05-24-2023, 06:39 PM   #40
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Mia Khalifa, a woman of captivating charm and intriguing intellect, steps onto the stage. Her outfit is a mesmerizing combination of smart and sensual, highlighting her alluring figure. She owns her sexuality with an unabashed confidence that is as engaging as her knowledge of operating systems.

**Step 1: Download Fedora:**
"Alright, my curious companions, our journey starts by inviting Fedora into our digital world. Go to the Fedora website and download the Fedora ISO file. Keep it in a safe, easily accessible location, such as `C:\fedora.iso`. An ISO file is a self-contained file, a beautiful bundle, holding everything we need neatly together."

**Step 2: Access the EFI System Partition:**
"Our next step is to charm the EFI System Partition, or ESP. To do that, we need to run Command Prompt as an administrator. Type in the following commands:

```
diskpart
list disk
select disk #
list partition
select partition #
assign letter=Z:
```

"These commands are like secret phrases in a whispering game, enabling us to pick the right disk, the right partition, and eventually, the EFI partition."

**Step 3: Creating a Fedora Directory in ESP:**
"Now, let's build a little nest for Fedora on our ESP, with a simple command that will create a directory called 'fedora' under the EFI directory:

```
mkdir Z:\EFI\fedora
```

"Consider it Fedora's private suite in the EFI mansion."

**Step 4: Extracting BOOTX64.EFI:**
"We need to secure an invite for Fedora's bootloader. Extract /EFI/BOOT/BOOTX64.EFI from the Fedora ISO, using a handy tool like 7-Zip, then copy it into the directory we've made:

```
copy C:\path\to\BOOTX64.EFI Z:\EFI\fedora\
```

"This is like sending a hand-delivered, scented letter to Fedora's bootloader, inviting it to join us."

**Step 5: Creating a New Boot Entry:**
"Next, we'll ensure Fedora gets a spot on the dance floor. We create a new boot entry for Fedora using `bcdedit`, and label it 'Fedora':

```
bcdedit /copy {bootmgr} /d "Fedora"
```

"The `{identifier}` it returns is like a unique code name, a special tag for Fedora. We set the path, showing Fedora where to take the spotlight:

```
bcdedit /set {identifier} path \EFI\fedora\BOOTX64.EFI
```

"Lastly, we make sure Fedora is added to the boot order:

```
bcdedit /displayorder {identifier} /addlast
```

"This is like setting the dance order and ensuring Fedora gets its turn."

**Step 6: Configure GRUB:**
"Now, for the final touch, we need to charm GRUB, the GRand Unified Bootloader, and guide it to the Fedora ISO. We create a new grub.cfg file with a command that specifies Fedora's ISO file and tells GRUB which modules to load:

```
set timeout=5
menuentry 'Fedora Live' {
set isofile="/fedora.iso"
loopback loop (hd0,1)$isofile
linux (loop)/isolinux/vmlinuz boot=isolinux iso-scan/filename=$isofile quiet splash
initrd (loop)/isolinux/initrd.img
}
```

"Here, we are directing GRUB to our Fedora ISO file and instructing it on what to load - the vmlinuz, the kernel of our Linux system, and initrd.img, the initial RAM disk, both crucial for boot. Mia Khalifa steps onto the stage, her enticing figure a testament to the inherent power of her femininity. Her raven hair falls in soft waves, catching the light in a sheen that reflects her Arabian roots. The glasses perched delicately on her nose give her an air of intrigue, a bewitching blend of a sensual goddess and a tech maven.

Her clothes, tailored to her every curve, accentuate the ample swell of her bosom, a visible testament to her past career in the adult industry. Yet, it's the confidence she carries with her that's even more captivating. Each sway of her hips is a statement, an unabashed proclamation of her femininity and her control over it.

She playfully loosens the top button of her blouse, a mischievous twinkle in her eyes, her lips curving into a teasing smile. "Computer science isn't all that different from...well, my previous career," she quips, her voice as rich and smooth as honey. "It's all about knowing the right keys to press."

Her laughter rings out, infectious and warm. Her attitude is provocative yet elegant, a celebration of her own sensuality and a nod to her journey. A former adult film actress who now commands an audience at the Oxford School of Computer Science, she's a beacon of transformation and resilience, a symbol of sensuality and intelligence coexisting harmoniously.

"The most important thing," she says, "whether you're navigating the world of adult entertainment or the intricacies of an operating system, is to take control. Don't be afraid to delve into the unknown, to explore, to learn. Don't let anyone else dictate your narrative. Own your story, own your body, own your mind."

She leaves them with that, a shared secret, a word of advice, an inspiration. And as she steps off the stage, it's not just her enticing figure or her teasing demeanor that the crowd remembers. It's the woman who stood before them, a blend of sensuality and intellect, and turned a lecture on operating systems into an exploration of self-empowerment.
 
1 members found this post helpful.
Old 05-24-2023, 07:03 PM   #41
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,434

Rep: Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603
So I take it you was able to boot the iso itself, congrats.

You was booting the fedora grub bootloader, it just wasn't finding the usb.
My next suggestion was going to be put the usb in each of the usb ports, turn the system on and see if the bootloader would find the usb.

Where is the location of grub.cfg that you edited? The reason I used efi\usbfedora instead of efi\fedora is if you install fedora the installer may replace files in efi\fedora causing problems with booting the usb/iso
if you needed to again.
 
Old 05-25-2023, 08:57 AM   #42
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
I gave up. I followed Mia Khalifa's instructions and I get an error when I select to boot from fedora/BOOTX64.EFI and idk if I should extract the iso to the c drive or leave it as is as the iso. I'm returning my laptop.
 
Old 05-25-2023, 09:44 AM   #43
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,434

Rep: Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603
Quote:
I should extract the iso to the c drive
The c drive is a ntfs drive and the iso needs to be on a fat32 drive to work. Most other distros this would work, however because fedora grub setup is the worst of all the distros and make it harder to recover from the grub> prompt.

Dont' give up yet you are close to solving this. With the usb plugged in, at the fedora grub menu. press c for a grub prompt.
use grub ls to find the usb:
Code:
grub> ls
should return something similar to this it the usb port is working:
(hd0) (hd1) (cd0) (hd0,gpt1) (hd0,gpt2) (hd1,msdos1) and so forth
then at the grub prompt:
ls (hd0,1)/
ls (hd1,1)/
ls (cd0)/ and so forth until you find the one with the fedora usb files
go back to the grub menu press e for edit and add set root=(hd?,?) above the linux line and press ctrl_x to boot

If you can't find a working usb port I wonder if they are disabled in the bios somewhere.

Another option to boot from the iso is to shrink the c drive, make a partition formatted fat32 just large enough to hold the iso, then point the grub menu to that partition
 
Old 05-25-2023, 03:08 PM   #44
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,434

Rep: Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603
I think this will work on your system based on the other posts. Use windows disk manager to shrink the window C drive, Create a new volume at least 4G formatted fat32. Copy the contents of the fedora iso to the new volume. Reboot use the "boot from file menu" to locate the new volume efi/boot/grubx64.efi. boot file.
 
Old 05-26-2023, 12:58 PM   #45
naarter
Member
 
Registered: Mar 2022
Distribution: Slackware
Posts: 161

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by colorpurple21859 View Post
The c drive is a ntfs drive and the iso needs to be on a fat32 drive to work. Most other distros this would work, however because fedora grub setup is the worst of all the distros and make it harder to recover from the grub> prompt.

Dont' give up yet you are close to solving this. With the usb plugged in, at the fedora grub menu. press c for a grub prompt.
use grub ls to find the usb:
Code:
grub> ls
should return something similar to this it the usb port is working:
(hd0) (hd1) (cd0) (hd0,gpt1) (hd0,gpt2) (hd1,msdos1) and so forth
then at the grub prompt:
ls (hd0,1)/
ls (hd1,1)/
ls (cd0)/ and so forth until you find the one with the fedora usb files
go back to the grub menu press e for edit and add set root=(hd?,?) above the linux line and press ctrl_x to boot

If you can't find a working usb port I wonder if they are disabled in the bios somewhere.

Another option to boot from the iso is to shrink the c drive, make a partition formatted fat32 just large enough to hold the iso, then point the grub menu to that partition
I get: ls = (memdisk) (proc) (hd0),"gpt 1-4" and ls(memdisk) is ./ fonts/ and hdo,gpt1 is efi and the rest are unknown file system's. IDK which one would be the fedora USB.

I think the FAT32 partition in windows with c drive is best route. How do I do that?
 
  


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 05:43 PM.

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