Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an IMG file that I'd like to copy into an empty USB and boot from it, how do I go about doing it?

share|improve this question
up vote 1 down vote accepted

Format the usb as vfat, or if you want a persistant partition let me know and I'll add those instructions too later:

fdisk /dev/sdb #if the usb is listed as sdb
mkfs.vfat /dev/sdb1
mkdir /mnt/temp; mount /dev/sdb1 /mnt/temp
mkdir /mnt/temp2; mount -o loop /path/to/the/ISO.iso

Copy everything over:

rsync -avhP /mnt/temp2/* /mnt/temp

Install grub:

grub-install --no-floppy --root-directory=/mnt/temp /dev/sdb

Then just make your grub.cfg. Shouldn't be too difficult. Or you just just leave it blank and boot with grub commands if you want. Each time you try to boot it though it'll take something along the lines of:

linux /boot/vmlinuz
initrd /boot/initrd.img boot=casper cdrom-detect/try-usb=true
share|improve this answer
What do you mean persistent partition? I just want an .img file that can be modified be made bootable using GRUB. And is it not possible with any other format? – Oxwivi Aug 19 '11 at 9:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.