3

I'm trying to create a .iso file using mkisofs.

I have the following folders:

my OS
|
|--src
|--bin

I used the following command:

mkisofs -R -input-charset utf8 -b bin/boot.bin -no-emul-boot -boot-load-size 4 -o os.iso bin

the command was run from the parent directory (my OS) and I got the following error:

genisoimage: Uh oh, I can't find the boot image 'bin/boot.bin' !

I checked, and the file bin/boot.bin does exists. I tried writing ./ before the directory, and using real paths, but no good.

Can any one help me?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
elyashiv
  • 757
  • 2
  • 10
  • 20

1 Answers1

6

If you are creating an image of the bin directory, either put your boot image in bin/bin/boot.bin or specify it as boot.bin. The boot image path is relative to the source path (bin).

angus
  • 12,131
  • 3
  • 44
  • 40
  • I'm not creating a image of the hull directory, just the file thats in the `bin` directory. the file is called `boot.bin`. any way, I trued full paths (`/home/` etc) and it didn't help, so it's not a directory problem. – elyashiv Nov 18 '12 at 12:44
  • @elyashiv You are creating an image of the `bin` directory: `mkisofs ... bin`. Your boot image path is relative to that directory. If it is right there in `bin`, you just say `-b boot.bin`. Do you get it? – angus Nov 18 '12 at 13:05