Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 8 '13 at 19:43

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

2 Answers 2

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.

share|improve this answer

Your Answer

 
discard

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.