OS : Xubuntu 16.04.1

Flash card : SanDisk Cruser Facet 16GB

Original image : xubuntu-16.04.1-desktop-amd64.iso


At first I tried using Startup Disk Creator ( usb-creator-gtk ) - a bootable read-only flash drive is created.

Then I tried using cp - a bootable USB flash drive is created only for reading.

Then I tried using dd - a bootable USB flash drive is created only for reading.


How to make a bootable USB flash drive from the xubuntu-16.04.1-desktop-amd64.iso image on Xubuntu 16.04.1 so that it can create directories and copy files to these directories?

It tried:

 sudo hdparm -r0 /dev/sdb 

When I booted the same flash drive on Ubuntu 14.04 using the same Startup Disk Creator, then everything worked fine.

3 answers 3

You can do this with UNetbootin :

 sudo add-apt-repository ppa:gezakovacs/ppa sudo apt-get update sudo apt-get install unetbootin 

Be sure to add the repository: sudo add-apt-repository ppa:gezakovacs/ppa ; Otherwise, it’s not the latest version that may work incorrectly.

UNetbootin on Xubuntu

In the program, you can choose two options for obtaining an ISO image:

  • select a distribution from the drop-down list and it will download it;
  • select already downloaded distribution.

Before creating a bootable flash drive, it is better to fully format it in FAT32 .


For advanced users.

  • I tried through UNetbootin, now just try again. - Roman Grinyov
  • The first time I did not add, apparently, the repository. - Roman Grinyov
  • Hmm .. A "Ubuntu only" with a mine like, come up? - Qwertiy ♦

How to make a bootable USB flash drive from the xubuntu-16.04.1-desktop-amd64.iso image on Xubuntu 16.04.1 so that it can create directories and copy files to these directories?

since the files inside this file are stored in the iso9660 file system, they cannot be changed on the fly: this file system is designed specifically for reading only.

therefore it is necessary:

  1. or create a “regular” file system on the partition of this block device (even some fat will do), copy the iso-file mentioned there, and ensure that the system is loaded from this file (i.e., make a so-called multiboot). example for grub bootloader .

    You will be able to create / change files / directories "next" to this iso-file (but, of course, not "inside" it).

  2. or install the system fully on the block device. for example, write this iso-file to dvd or another block device, boot from it, and install the system on the target block device .

    later, having booted from this block device (or having mounted a partition from it in the working system), you can create / change any files / directories.

    Roman, did I understand you correctly? Do you need a bootable flash drive, with the ability to save the settings of the current session, and the ability to install the distribution kit on the computer?

    To do this, you need to include "persistence", the ability to save files and changes during the session.

    1. Write the image to a USB drive using the dd utility in Linux, or win32diskimager in Windows.

    2. Boot from USB drive

    3. Create a partition on the USB drive in unused space, the label of the partition is persistence, this is mandatory.

    4. Mount the section

      mkdir / mnt / usb

      mount / dev / sdb2 / mnt / usb

    5. echo "/ union" >> /mnt/usb/persistence.conf

    6. umount / mnt / usb

    7. Is done.

    8. Now when booting from a USB drive, press the tab key. This will allow you to change the boot options. Add the word “persistence” at the end of the boot options line each time you want to mount your persistent device.

    • The question was resolved . - Roman Grinyov
    • I think we need to add a couple more steps so that we don’t have to call the boot with options every time? - Qwertiy ♦
    • I agree, you can simply add an additional item to the grub2 menu, I don’t know how in ubuntu, I use kali myself. It already has such an item. - Evgeny Golub
    • Earlier in ubuntu there was a usb-creator-gtk utility, it performs the same functions as help.ubuntu.ru/wiki/usb-creator-gtk , now it’s not up to date, if you have, you can use it. - Evgeny Golub