- Create a NTFS boot partition in the beginning of the drive and set the hidden flag.
- Mount the boot partition.
sudo mount /dev/sdX1 /mnt - Install GRUB2 on the external drive with the root-directory on the NTFS boot partition (needs to be under the 1024 cylinder boundary).
sudo grub-install --root-directory=/mnt --no-floppy /dev/sdX - Edit the grub configuration file.
gedit /mnt/boot/grub/grub.cfg
And insert the following Contents:
menuentry "Ubuntu Live 10.04 32bit"
{
loopback loop /ubuntu-10.04-desktop-i386.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-10.04-desktop-i386.iso noeject noprompt quiet splash -- debian-installer/language=de console-setup/layoutcode?=de
initrd (loop)/casper/initrd.lz
}
menuentry "Windows 7 x86 Deutsch Setup"
{
insmod chain
chainloader +1
} - Copy the Ubuntu ISO.
cp [...]/ubuntu-10.04-desktop-i386.iso /mnt - Mount the Windows 7 ISO (make sure, there is no cd in the drive).
sudo mount [...]/de_windows_7_professional_x86_dvd_x15-65812.iso /media/cdrom -o loop - Copy the Windows 7 ISO contents.
cp -r /media/cdrom/* /mnt - Umount the ISO and boot partition.
sudo umount /media/cdrom
sudo umount /mnt - Finished. You can now boot from the external drive or test it with QEMU.
sudo qemu -m 256 -hda /dev/sdX
Freitag, 6. August 2010
Create a GRUB2 bootable external harddrive with Ubuntu and Windows 7 setup
Abonnieren
Kommentare zum Post (Atom)
Keine Kommentare:
Kommentar veröffentlichen