Linux – How to write ISO image to usb memory stick from linux command-line

disk-imageisolinuxUbuntuusb-flash-drive

I'm having trouble figuring out how I would write an ISO disk image to a USB flash memory device from the command line in Ubuntu. I have the Startup Disk Creator utility, but I need to be able to script this job.

I found the usb-creator package, but there doesn't seem to be any documentation and python -m usbcreator gives usbcreator is a package and cannot be directly executed.

I looked at unetbootin, but it seems like another GUI-only utility.

Is there some obvious solution which I'm overlooking?

Best Answer

I know you can do this in UNetbootin gui. I haven't tried it myself, but it looks like you can do it by command-line, as well:

http://sourceforge.net/apps/trac/unetbootin/wiki/commands

unetbootin method=diskimage isofile="my.iso" installtype=USB targetdrive=/dev/sdc1

Related Topic