The ms-sys
command is important. With the -7
option it creates a Windows 7 compatible boot sector on your flash drive.
You can't use dd because ISO's use an ISO Filesystem such as UDF or ISO9660, where-as your USB drive only properly supports disk file systems such as ext3, FAT32, or NTFS
Would be better use rsync instead of cp -r ?
Not really. cp -r
works perfectly fine. Just realize that NTFS handles permissions differently to Linux, so using rsync to keep everything intact doesn't matter too much. All that really matters is that the files from the ISO are on the USB and that the boot sector is formatted correctly using ms-sys -7
You can do all the steps as root if you want. The only 2 steps that really require root are mkfs
and the 2 mount
's
If you're getting permission problems even as root, you may need to mount your USB using ntfs-3g /dev/sdb1
as some Linux Distributions only supply a Read-Only driver for NTFS.
You could solve your problem by following these steps :
Find out which devices are available by typing ls
Set to the correct value :
set prefix=(hd0,1)/grub
set root=(hd0,1)
insmod normal
normal
The above commands will get you out of the rescue mode to the normal terminal mode.
After the above commands you can go ahead and start the rest of the settings.
insmod linux
linux /vmlinuz root=/dev/sdXY ro
If the above command doesnt work try this :
linux /boot/vmlinuz-3.2.0-14-generic root=/dev/sda1 ro
boot
Additionally dont forget to update your grub
Update the GRUB config file.:
sudo update-grub
Reinstallation of Grub on the device:
sudo grub-install /dev/sdX
hope it helps
Best Answer
You could also try with
if you are not sure that the image is an hybrid one you could also try this before copying