User Tools

Site Tools


namespace:q4os

Differences

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

Link to this comparison view

Next revision
Previous revision
namespace:q4os [2025/10/26 07:56] – created jonamespace:q4os [2025/10/27 07:00] (current) jo
Line 1: Line 1:
-sudo tee /etc/initramfs-tools/scripts/init-bottom/ntfs-mount <<'EOF' +<code> 
-#!/bin/sh +sudo chmod +x /etc/initramfs-tools/scripts/init-bottom/ntfs-mount
-# Called at the end of the initramfs boot sequence+
  
-PREREQ="" +    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.
-prereqs() { echo "$PREREQ";+
-case "$1" in +
-    prereqs) prereqs; exit 0 ;; +
-esac+
  
-# Mount the Windows NTFS system partition (usually /dev/sda1) +4. Re‑build the initramfs
-mkdir -p /mnt/ntfs +
-mount -t ntfs-3g -o ro /dev/sda1 /mnt/ntfs || exit 1+
  
-# The Q4OS installer files are in the folder "q4os-installer" on that partition+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: 
-mkdir -p /cdrom + 
-mount --bind /mnt/ntfs/q4os-installer /cdrom+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 EOF
 +
 +
 +</code>
  
namespace/q4os.1761465393.txt.gz · Last modified: by jo