Hi, give me solution in windows uefi to install qubes os linux iso from internal ssd, my laptop have damaged usb ports, so i cant burn it to usb then install from usb, i tried to boot from iso by add boot enry to bootloader, afterthat iso loaded but my iso boot with error dracut-initqueue timeout... easybcd dont work in uefi... qubes os use xen, part of grub.cfg in qubes os iso is:
search --no-floppy --set=root -l 'QUBES-R4-2-2-X86-64'
menuentry 'Install Qubes OS R4.2.2' --class qubes --class gnu-linux --class gnu --class os {
multiboot2 /images/pxeboot/xen.gz console=none
module2 /images/pxeboot/vmlinuz inst.repo=hd:LABEL=QUBES-R4-2-2-X86-64 plymouth.ignore-serial-consoles quiet
module2 /images/pxeboot/initrd.img
}
Assistant
Hi,
I understand that you're trying to install Qubes OS R4.2.2 on your laptop without using USB ports, as they are damaged. You've attempted to boot the ISO from your internal SSD by adding a boot entry to the bootloader, but you're encountering a "dracut-initqueue timeout" error. Additionally, EasyBCD doesn't work with UEFI, and you're looking for a solution to install Qubes OS from your internal SSD in a UEFI environment.
Problem Explanation:
The "dracut-initqueue timeout" error typically occurs when the installer cannot find the installation media or the repository containing the necessary installation files. This happens because, while the bootloader can load the kernel and initial RAM filesystem (initrd), once the Linux kernel starts, it doesn't know where to find the rest of the installation files, especially if they are on a filesystem or partition that it cannot access.
Solution Overview:
To resolve this, we need to:
Prepare a Partition with the ISO Contents:
Create a new partition on your SSD.
Format it with a filesystem that the Qubes installer can recognize (e.g., FAT32 or ext4).
Extract the contents of the Qubes OS ISO to this partition.
Configure UEFI Bootloader:
Add a UEFI boot entry that points to the Qubes OS installer on the new partition.
Modify the boot parameters to correctly locate the installation media.
Detailed Steps:
Step 1: Backup Important Data
Before proceeding, back up any important data on your laptop. Manipulating partitions and boot configurations can lead to data loss if not done correctly.
Step 2: Create a New Partition on the SSD
2.1 Shrink an Existing Partition
Open Disk Management:
Press Windows Key + X and select Disk Management.
Shrink Volume:
Right-click on an existing partition with enough free space (e.g., your Windows partition) and select Shrink Volume.
Enter the amount of space to shrink (e.g., 8 GB or 8192 MB).
Create New Partition:
Right-click on the unallocated space and select New Simple Volume.
Follow the wizard to create a new partition.
Format as FAT32 (recommended) and assign a drive letter (e.g., E:).
Set the Volume Label as QUBES-R4-2-2-X86-64 (to match the label expected by the installer).
Note: If FAT32 is not available due to partition size constraints (FAT32 has a maximum size of 32 GB in Windows), you can use third-party tools like Rufus or MiniTool Partition Wizard to format larger partitions as FAT32.
Step 3: Extract Qubes OS ISO Contents to the New Partition
Download 7-Zip:
If you don't have it already, download and install 7-Zip.
Extract ISO Contents:
Right-click on the Qubes OS ISO file.
Select 7-Zip > Extract files...
Choose the root of the new partition you created (e.g., E:\) as the extraction destination.
Verify Extraction:
Ensure all files and folders are extracted properly.
The root of the partition should contain folders like EFI, images, etc.
Step 4: Add a UEFI Boot Entry for the Qubes Installer
Select EFI System Partition: Choose the new partition (e.g., E:\).
File Path: Browse to \EFI\BOOT\BOOTX64.EFI on the new partition.
Parameters: Leave blank or add any specific kernel parameters if needed.
Save and Apply:
Click OK to save the new boot entry.
Ensure the new entry is added to the boot order. You can adjust the boot order in EasyUEFI if necessary.
Option B: Using bcdedit (Limited Functionality in UEFI)
Note:bcdedit is primarily designed for Windows boot entries and may not work as expected for non-Windows OSes in UEFI mode. It's recommended to use EasyUEFI for UEFI boot management.
Step 5: Modify Boot Parameters (If Necessary)
Even after setting up the boot entry, the installer might still fail to locate the installation media. We need to adjust the boot parameters to point the installer to the correct location.
Boot into the Qubes OS Installer:
Restart your laptop.
From the UEFI boot menu, select Qubes OS Installer.
Access GRUB Menu:
When the GRUB menu appears, highlight the Install Qubes OS R4.2.2 entry.
Ensure that the inst.repo parameter matches the label of your new partition.
Since we labeled the partition as QUBES-R4-2-2-X86-64, it should match.
If you used a different label, update it accordingly:
code
inst.repo=hd:LABEL=YourPartitionLabel
Double-check the label by opening Command Prompt in Windows and running LABEL E: (replace E: with your partition letter).
Boot the Installer:
Press Ctrl + X or F10 to boot with the modified parameters.
Step 6: Proceed with Installation
Follow the on-screen instructions to install Qubes OS.
When selecting the installation destination, ensure that you're not overwriting the partition containing your installation media unless you no longer need it.
Additional Considerations
Disable Secure Boot: Some Linux distributions, including Qubes OS, may not boot with Secure Boot enabled. Enter your UEFI firmware settings and disable Secure Boot if it's enabled.
UEFI vs. Legacy Boot: Ensure that your system is booting in UEFI mode and not falling back to Legacy/CSM mode.
Check File System Compatibility: The Qubes OS installer must be able to read the filesystem of the partition containing the installation files. FAT32 is widely supported.
Verify Partition Label: The inst.repo parameter relies on the partition label. Any mismatch will cause the installer to fail to find the installation media.
Alternative Method: Using Loopback Method
If the above method doesn't work, you can try the loopback method, booting the ISO directly:
Copy the ISO to a Partition:
Place the Qubes OS ISO file on a partition that GRUB can access (e.g., the same FAT32 partition or another accessible partition).
Configure GRUB to Boot from ISO:
Edit the GRUB configuration to include a loopback boot of the ISO.
Example GRUB Entry:
code
menuentry "Qubes OS Installer ISO" {
set isofile="/path/to/Qubes-R4.2.2-x86_64.iso"
loopback loop (hdX,Y)$isofile
linux (loop)/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=QUBES-R4-2-2-X86-64 quiet
initrd (loop)/images/pxeboot/initrd.img
}
Replace (hdX,Y) with the correct drive and partition number, and ensure isofile points to the ISO file's location.
Note: This method can be complex and may require a Linux environment to set up properly.
Troubleshooting
Dracut Timeout Persists:
Ensure the partition label matches exactly.
Try using the device UUID instead:
Find the UUID of the partition (from within Linux or using Windows tools).
Modify inst.repo=hd:UUID=your-partition-uuid.
Installer Can't Find Root Filesystem:
Verify that the filesystem type is supported by the installer.
FAT32 is generally safe; NTFS may not be recognized.
Access to Shell for Debugging:
When the installer drops to the dracut shell, you can use commands like ls, blkid, and mount to inspect available devices and filesystems.
Final Notes
Persistence of Boot Entry: After installing Qubes OS, you may want to remove the temporary boot entry and the installation partition to reclaim space.
Re-enable Secure Boot (If Desired): After installation, you can attempt to re-enable Secure Boot if necessary, though it may require additional steps for Qubes OS.
I hope this helps you install Qubes OS from your internal SSD. If you have any questions or run into any issues during the process, feel free to ask, and I'll be happy to assist further.