Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Is it possible to use the dd command to create a bootable ISO image? I use the following command to do it:

dd if=/dev/sda of=/mnt/sdb/my.iso

I am able to create ISO, however I am not able to boot with it. When I try to boot, I get this error:

Operating System not found.

/dev/sda lists 4 partitions and in partition 1, grub is installed: filesystem is ext3.

share|improve this question

migrated from Jan 8 '13 at 19:43

This question came from our site for professional and enthusiast programmers.

filesystem is ext3

This says it all, as a CD has an ISO9660 file system, and dd won't convert one to the other.

share|improve this answer
Well, I understand it, but my question is related to is there some way to create a bootable ISO image from hard disk on linux (i dont hv desktop environment like gnome or kde etc), or what are exact steps to create ISO image from an installed OS, so let say i can share it with someone else and he can just use that ISO or whatever format to create a system which is exact copy of what i got... – Saqlain Jan 5 '13 at 15:02
If your hard disk is small enough to fit on one CD then you might be able to use a live CD to give you enough Linux to restore the CD you created above to the new hard disk. – Neil Jan 6 '13 at 0:12

You can't boot a HDD as a DVD or CD, due to different filesystems. You could possibly copy all the files with rsync and burn a DVD/CD with all the files, but you can't just dd a HDD image onto a DVD. You could use dd to copy one hard disk to another, and the second hard disk would be bootable, though.

On the other hand, you can try genisoimage (cdrkit, of the debian project) or mkisofs (cdrtools, which is what debian forked). I've used genisoimage to make bootable discs before, like when I copied all the files from a debian disc, changed a few, and remade a .ISO. It might not work for windows and some other OSes, but it's worth a shot.

I did my bootable CD following this page:

share|improve this answer
Then is it possible to boot the .ISO from VmWare/VirtualBox? – Pacerier May 3 '15 at 14:15
no... probably not. However, if you instead made it a hard disk image, it would work. I'm going to update it with a possible link for something that may be helpful. – Wyatt8740 May 3 '15 at 23:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .