I understand, the question was discussed repeatedly. But!

1) In the latest versions of the UnetBootin system requires launching under root, and under it the program does not work, giving errors to the console

2) LiveUSB Creator is kind of dead

3) dd In principle, this is the only thing that works, but truncates the flash drive to the size of the image. It is impossible to upload other files. Those. then use a flash drive for transfer / storage is not possible.

What else can you use?

  • 2
    And what prevents after dd to run fdisk and create another partition for the whole place until it stops? - 0andriy
  • @ 0andriy is not knowing that this can be done. - matz
  • Well I do not know. Gparted displays information that the block size is incorrectly specified. 512/4096 Creating a partition in free space is impossible. Error "You can not create more than two primary partitions" - Yuchimenko Igor
  • Purely for example, I’ve stuck a Debian installation image (on a USB stick), fdisk works great: /dev/sdc1 * ... 290M /dev/sdc2 ... 416K EFI (FAT-12/16/32) /dev/sdc3 ... 3.5G (I just added the last one and even read it back). You have something wrong initially in the image or in the way you write it or in gparted . - 0andriy

2 answers 2

Grub2 has long been able to load a disk image directly. Those. it is enough to install grub2 on the USB flash drive (how to do this full of articles on the Internet) and tell it which disk image to download.

Here's an article to get you started: https://habrahabr.ru/post/135637/

Here are more detailed information: https://wiki.archlinux.org/index.php/GRUB_(English)

The advantage of this method is that the boot flash drive does not lose its function and can be used in parallel to store and transfer its files.

Example:

 sudo grub-install --no-floppy --root-directory=/media/my_flash /dev/sdb 

Install grub on the device (flash drive) / dev / sdb, which is mounted on / media / my_flash. As a result, the bootloader code will be registered in the MBR, and the boot directory will appear in the root of the device.

An example of the /boot/grub/grub.cfg file:

 insmod part_msdos insmod part_gpt insmod ext2 insmod iso9660 search --no-floppy --fs-uuid --set=root 2F8F-02E9 menuentry " run runtu"{ set iso_path="/boot/runtu-lite-14.04.1_20140914.iso" loopback loop ${iso_path} linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=${iso_path} initrd (loop)/casper/initrd.lz } menuentry " run debian hd-media"{ linux /boot/hdmedia/vmlinuz initrd /boot/hdmedia/initrd.gz } #EOF 

Where "--set = root 2F8F-02E9" is the uuid of your flash drive (learn blkid).

I will not show examples for RFR, but I think with due diligence you will find it yourself.

  • Give a more detailed answer. - 0xdb
  • Although the link can find the answer to the question, it is better to point out the most important thing here, and give the link as a source. If the page to which the link leads will be changed, the response link may become invalid. - From the queue of checks - aleksandr barakin
  • @ 0xdb is now deployed - Nick Volynkin
  • @alexanderbarakin ready - Nick Volynkin

In Fedora tags:

 ~$ sudo dnf install mediawriter 
  • mediawriter crashes after a few seconds of work. (I understand it should be run under the root) - Yuchimenko Igor