Return to the main Installation page


Drives - mass storage devices

This page is called 'iso2usb', but the methods described are valid for every kind of drive that is a mass storage device

Cloning and extraction

Cloning

Cloning (copying each byte as it is, creating a one-to-one copy) is a very simple and reliable method to create a boot drive (live drive or install drive) from a linux hybrid iso file. All current standard Ubuntu and Ubuntu community flavour iso files are hybrid iso files, so this method works with all these files, the desktop iso files, the Ubuntu Server iso files and the Ubuntu mini.iso files.

Cloning creates a read-only ISO 9660 partition table and file system, so you cannot change anything in the drive (but you can create a new partition table with partitions and file systems). The operating system in the drive will be read-only. You can install program packages and create files, but they will 'live' in RAM and will not survive shutdown/reboot.

Cloning tools

In linux:

In Windows:

Cloning Plus

There is a simplified method to create persistent live systems without extraction in

and we expect it to work also in future versions of Ubuntu and Debian.

The text mode tool mkusb-minp and the GUI tool mkusb-plug can help you do it.

Extraction

Extraction is a more complicated method, where the content of the iso file is extracted (the directories and files are copied) to a read-write file system in a drive (a mass storage device).

It is enough to

You must add a bootloader separately, if you want the drive to boot also in BIOS mode.

Extracting tools

Do it yourself

When the boot structure is modified in Ubuntu or the booting software, there can be problems until the extracting tools are modified to manage the modification. It is worthwhile to find a method that is as simple as possible and to learn how to use it in order to manage the extraction also when the boot structure is modified.

For an UEFI only boot flash drive you need no installer

Oldfred's advice

Actually if you want an UEFI only boot flash drive you do not need an installer at all.

You just need to format flash drive with FAT32 and set boot flag on. Then use whatever is your favorite extraction tool like 7zip to extract & copy ISO to FAT32 partition. UEFI boots from a FAT32 partition with a very long GUID (if gpt) to identify it. Gparted and some other tools use boot flag to set that GUID. A few UEFI want flash drive as gpt, most will boot with MBR as even MBR has a code for ESP - efi system partition.

Ubuntu has built in /EFI/Boot/bootx64.efi which really is a copy of grub, for booting in UEFI mode.

Normal installers format, extract, and install a BIOS boot loader. To boot only in UEFI mode you need not install a bootloader separately.

See more details in this link, UEFI: Interesting simple method to boot - but how does it work?

Make the drive boot both in UEFI mode and BIOS mode

If your system is running in BIOS mode, you can install a grub bootloader for BIOS mode into the target drive. If your system is an installed system and running in UEFI mode, this does not work, but there is a work-around.

You can extract/clone from a compressed image file to create the head end and a partition with the FAT32 file system and a boot flag. The grub bootloader for BIOS mode will be there already, at the head end and with the necessary files in the FAT32 partition.

Detailed instructions

Find detailed instructions in the sub-page /diy (extraction method)

Find detailed instructions in the sub-page /isoboot (grub-n-iso method)

Links

Installation/iso2usb (last edited 2023-04-28 23:34:47 by nio-wiklund)