Article 6QGMC mkisofs creating bootable windows iso ubuntu

mkisofs creating bootable windows iso ubuntu

by
theyikes
from LinuxQuestions.org on (#6QGMC)
Hi guy's I'm desperately trying to create a virtualBox iso. I can create the iso file but when i run it in virtualbox or qemu i just get a blank screen:

Here's what i've tried so far

Quote:
mkdir ~/iso_mount
sudo mount -o loop /path/to/windows.iso ~/iso_mount

mkdir ~/iso_extract
cp -r ~/iso_mount/* ~/iso_extract/

mkdir ~/iso_extract
cp -r ~/iso_mount/* ~/iso_extract/

mkdir ~/iso_extract
cp -r ~/iso_mount/* ~/iso_extract/

sudo mkisofs -o /path/to/new_bootable_windows.iso \
-b boot/etfsboot.com -no-emul-boot -boot-load-size 8 -boot-info-table \
-iso-level 4 -udf -J -l -D -N -joliet-long \
~/iso_extract/

this creates an .iso file but i can't boot from it

i did some research and it seems like the -no-emul-boot may be the issue.
However when i omit the -no-emul-boot i get this error:

Quote:
root@yikes-a320ms2h:~/iso_extract# sudo mkisofs -o /home/yikes/Desktop/new_bootable_windows.iso \
-b boot/etfsboot.com -boot-load-size 8 -boot-info-table \
-iso-level 4 -udf -J -l -D -N -joliet-long \
~/iso_extract/
Warning: creating filesystem that does not conform to ISO-9660.
Warning: Creating ISO-9660:1999 (version 2) filesystem.
Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the OS.
Warning: creating filesystem with Joliet extensions but without Rock Ridge
extensions. It is highly recommended to add Rock Ridge.
Size of boot image is 8 sectors -> genisoimage: Error - boot image '/root/iso_extract/boot/etfsboot.com' has not an allowable size.
root@yikes-a320ms2h:~/iso_extract#
Obviously i'm doing something wrong, anyone have any clue as to how i can resolve this issue?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments