How to create a bootable Ubuntu USB flash drive from terminal?
Why do guys here use umount
first? I assume USB flash drive should be formatted first, so does umount
format the disk, or just detach mounted device so it can be safely removed if another process isn't using it?
umount
un-mounts file systems.This is needed here because it would be bad if you overwrote the partition while it is still mounted and possibly accessed by any application. You'd get errors.
See
man umount
for more information about the command.Please correct me if I do not use the most appropriate terms here.
Within Linux/Ubuntu all devices are represented as files under the directory
/dev
. In the first answer of the linked questionumount
is used to detach certain device from the file-system in use, thus you can manipulate the entire device as pure file (/dev/sd?
) without limitations. Then the commanddd
is used to copy the content of the input fileimage.iso
file as content of the output file/dev/sd?
.Here I found a better explanation provided by Colin Ian King: