| Version 20 (modified by gezakovacs, 4 years ago) |
|---|
UNetbootin Command Line Options
Commands can optionally be used to pre-specify options, and/or automate installations with UNetbootin. They are available only from version 372 onwards. These are primarily of usage to people writing scripts that invoke unetbootin; average users can just use the GUI instead.
The general format of each command is: unetbootin "option="value"
The quotes are unneeded when there are no spaces; for example:
unetbootin distribution=Ubuntu
Works fine, but for Parted Magic, you'd need:
unetbootin distribution="Parted Magic"
Multiple commands should be specified one after another, like:
unetbootin lang=es distribution="Parted Magic" version=2.1_Live installtype=HDD autoinstall=yes
List of Commands
The order of commands does matter, as they are evaluated in order from first to last. They should be specified in the following order:
lang
Specifies language to show interface in. If not provided, this is determined based on locale.
Possible values: es, fr, zh_CN, zh_TW, etc
Examples:
unetbootin lang=es
rootcheck
Specifies whether or not to check and prompt for root privileges if needed.
Possible values: yes, no
Examples
unetbootin rootcheck=no
method
method=distribution checks the radio button for the download and install option, method=diskimage checks the radio button for the suppy your own disk image option, while method=custom checks the radio for the maually specify your kernel, initrd, and options.
Possible values: distribution, diskimage, custom
Examples:
unetbootin method=custom
distribution
This pre-sets the distribution to download and install. Should be used together with "method=distribution".
Possible values: Ubuntu, Fedora, "Arch Linux", "Parted Magic", etc
Examples:
unetbootin distribution=Ubuntu unetbootin method=distribution distribution="Arch Linux"
version
When used with "method=distribution" and "distribution", this pre-sets the particular version of the distribution to download and install.
Possible values: depends on what distribution was specified for Ubuntu: 9.04_Live, 9.04_Live_x64, 9.04_Netinstall, 9.04_Netinstall_x64
Examples:
unetbootin method=distribution distribution=Ubuntu version=9.04_Live_x64
isofile
Specifies a path (file or http/ftp url) to an CD image file (.iso) to install from. Needs to be nested with quotations if the path has spaces. Also use "method=diskimage" if you want to have the diskimage option be selected by default.
Examples:
unetbootin method=diskimage isofile="/home/geza/Ubuntu 9.04.iso" unetbootin method=diskimage isofile="http://mirror.switch.ch/ftp/mirror/slitaz/iso/cooking/slitaz-cooking.iso"
imgfile
Specifies a path (file or http/ftp url) to an floppy disk image file (.img) to install from. Needs to be nested with quotations if the path has spaces. Also use "method=diskimage" if you want to have the diskimage option be selected by default.
Examples:
unetbootin method=diskimage imgfile="/home/geza/Super Grub Disk.img"
kernelfile
Specifies the path (file or http/ftp url) to a kernel file to load; should be used with the "method=custom" option. You'll probably also need to specify "initrdfile" unless your kernel doesn't need an initrd.
Examples:
unetbootin method=custom kernelfile="vmlinuz"
initrdfile
Specifies the path (file or http/ftp url) to an initrd file to load; should be used with the "method=custom" option. You'll also need to specify the kernel file with "kernelfile".
Examples:
unetbootin method=custom kernelfile="/home/geza/vmlinuz" initrdfile="/home/geza/initrd.img"
kernelopts
Specifies parameters to be passed to the kernel. Should be used with "method=custom", "kernelfile", and "initrdfile".
Examples:
unetbootin method=custom kernelfile="/home/geza/vmlinuz" kernelfile="/home/geza/initrd.img" kernelopts="ro splash quiet noapic"
cfgfile
Serves the same purpose as kernelopts, but instead you specify a path to a syslinux.cfg or grub menu.lst file which it will read options out of.
Examples:
unetbootin method=custom kernelfile="/home/geza/vmlinuz" kernelfile="/home/geza/initrd.img" cfgfile="/home/geza/syslinux.cfg"
installtype
Specifies which type of device you are installing to; HDD if you want to chainload off your existing OS bootloader (that is, have a UNetbootin entry be added to your Windows/GRUB boot menu), or USB if you're installing to an external device. If you want to make your external USB hard drive bootable, use USB, not HDD.
Possible values: HDD or USB
Examples:
unetbootin installtype=HDD
targetdrive
Specifies the target device to install to. This option must be specified after installtype if you specified installtype as well.
Possible values: varies depending on OS: on Linux: /dev/sdc1, /dev/sdb on Windows: D:, E:, F:
Examples:
unetbootin installtype=USB targetdrive=/dev/sdc1
nocustom
If y, hides the custom option (where the kernel, initrd, and parameters can be manually specified).
Possible values: y, n
Examples:
unetbootin nocustom=y
nodistro
If y, hides the distribution selector.
Possible values: y, n
Examples:
unetbootin nodistro=y
message
Replaces the introductory message with some html text.
Examples:
unetbootin message="<b>hello world</b><br/><p>Welcome to UNetbootin</p>"
autoinstall
If y, automatically starts installation without prompting, as though you had immediately pressed the OK button. If specified, should be the very last option in the arguments list. Dangerous option; use with care.
Possible values: yes, no
Examples:
unetbootin method=distribution distribution=Ubuntu version=9.04_Live installtype=USB autoinstall=yes unetbootin method=diskimage isofile="http://mirror.switch.ch/ftp/mirror/slitaz/iso/cooking/slitaz-cooking.iso" autoinstall=yes