User Tools

Site Tools


namespace:q4os

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
namespace:q4os [2025/10/26 08:02] jonamespace:q4os [2025/10/27 07:00] (current) jo
Line 1: Line 1:
-`Your unformatted text`+<code> 
 +sudo chmod +x /etc/initramfs-tools/scripts/init-bottom/ntfs-mount 
 + 
 +    If the Windows partition is not /dev/sda1 (you can check with cat /proc/partitions after the VM boots once), replace sda1 with the correct device name. 
 + 
 +4. Re‑build the initramfs 
 + 
 +First, make sure you are using an i686 kernel (the Omnibook’s CPU is 32‑bit). If you are on an amd64 kernel, install the 32‑bit one: 
 + 
 +bash 
 + 
 +sudo apt-get install -y linux-image-686 
 +sudo reboot 
 + 
 +After the VM boots the 32‑bit kernel, rebuild the initramfs: 
 + 
 +bash 
 + 
 +sudo update-initramfs -u -k all 
 + 
 +The new initramfs will be written as /boot/initrd.img-$(uname -r). 
 +5. Export the kernel and the freshly built initramfs 
 + 
 +bash 
 + 
 +# Find the exact kernel name (should be something‑686) 
 +KERNEL=$(basename /boot/vmlinuz-*) 
 + 
 +mkdir -p ~/export 
 +cp /boot/$KERNEL ~/export/vmlinuz 
 +cp /boot/initrd.img-$(uname -r) ~/export/initrd.img 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 +sudo tee /etc/initramfs-tools/modules <<'EOF' 
 +ata_piix 
 +ahci 
 +pata_acpi 
 +sd_mod 
 +libata 
 +ntfs 
 +ntfs3 
 +ext4 
 +vfat 
 +loop 
 +squashfs 
 +iso9660 
 +EOF 
 + 
 + 
 +</code>
  
namespace/q4os.1761465724.txt.gz · Last modified: by jo