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.
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?
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".
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
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
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:
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:
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"
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,035
Rep:
Quote:
Originally Posted by naarter
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
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:
"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:
"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.
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.
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.
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 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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.