Benutzer-Werkzeuge

Webseiten-Werkzeuge


usb_boot_stick

Dies ist eine alte Version des Dokuments!


Its a simple process.

Format the usb to fat32 (I've heard ntfs works too, but I've never tested it myself, so for this tutorial I'm using fat32)
Mount the usb somewhere, for example /media//
Install grub to the usb using:

grub-install --force --no-floppy --boot-directory=/media///boot /dev/sdX (Install to the disk; not partition!)

Extract the contents of the iso onto the root of the usb stick; I personally use 7z for this:

7z x /path/to/win.iso (Note that the Win7 iso has a boot dir; you will need to 'overlap' the boot dir created with grub with the contents of the iso. ) You should end up with something like this

├── autorun.inf
├── boot
│   └── grub
├── bootmgr
├── efi
├── setup.exe
├── sources
├── support
└── upgrade
Edit/create boot/grub/grub.cfg so it contains the following menuentry:

menuentry 'Windows 7 AIO Installerr' --class windows --class os {
  set root=(hd0,1)
  insmod part_msdos
  insmod fat
  insmod ntldr
  ntldr /bootmgr
}
Enjoy your bootable stick.
It may be a bit of a runaround, but this lets you add addtional resources as needed via edits to the grub.cfg file. I personally have a Windows 7 All In one (9 editions of win7) installer, Mini Windows XP (from hirens), DOS 6.22, memtest, and gparted live on one usb stick this way.

Anleitung von: http://askubuntu.com/questions/116885/can-i-use-ubuntu-to-write-a-windows-7-iso-to-usb

usb_boot_stick.1399303184.txt.gz · Zuletzt geändert: 2014/05/05 17:19 von karl