Create Ubuntu USB Stick

ISO-9660 / MBR / GPT

“CD-Rs normally use the ISO-9660 filesystem directly, without partitions.”
Do ISO’s contain partition tables as well as a backup of the data?
How to understand partition table on hybrid ISO image?
In Ubuntu ISO MBR, why does a GPT partition overlap the boot partition, and make MBR uneditable?

mkusb


dus – a revamped interface of mkusb and mkusb-nox
mkusb versions with GUI
mkusb – tool to create boot drives

$ sudo add-apt-repository ppa:mkusb/unstable
$ sudo apt-get update
$ sudo apt-get install mkusb

$ guidus

Zenity, erlaubt, GTK-Dialoge von der Kommandozeile oder von Shell-Skripten aus zu starten

Von Hand

How to create a bootable Ubuntu USB flash drive from terminal?

sudo umount /dev/sdb
sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=1M

How do you monitor the progress of dd?

$ sudo dd if=/dev/urandom of=/dev/null status=progress
or
$ sudo apt-get install pv
$ dd if=/path/to/ubuntu.iso | pv | dd of=/dev/sdb
sudo mkdir /media/iso/
sudo mount -o loop /path/to/ubuntu.iso /media/iso

# add fat32 partition (with gparted)

cp -a /media/iso/. /media/xxx/

sudo apt-get install syslinux mtools
sudo syslinux -s /dev/sdd1

=== NOT FINISHED !!! ===

$ pkg install syslinux
New packages to be INSTALLED:
        syslinux: 6.03
        mtools: 4.0.10_4
[...]
[1/2] Installing mtools-4.0.10_4...
[1/2] Extracting mtools-4.0.10_4: 100%
[2/2] Installing syslinux-6.03...
[2/2] Extracting syslinux-6.03: 100%
Message from mtools-4.0.10_4:
************************************************************
Please verify /usr/local/etc/mtools.conf for your machine.
************************************************************

Delete MBR
$ dd if=/dev/zero of=/dev/da1 bs=2m count=1

Create MBR with one FAT32 partition
$ fdisk -i /dev/da0

Format the partition
$ newfs_msdos -F32 /dev/da1s1

Mount partition
$ mount_msdosfs /dev/da1s1 /mnt

Create a memory disk:
-a        = attach
-t vnode  = backing store "file"
-f <file> = filename to use
-u 0      = create /dev/md0
$ mdconfig -a -t vnode -f ubuntu-15.10-server-amd64.iso -u 0

Mount the memory disk
$  mount -t cd9660 /dev/md0 /media/iso

Copy files from ISO to USB Stick
$ cp -a /media/iso/. /mnt

$ find /mnt -name syslinux.cfg
/mnt/install/netboot/ubuntu-installer/amd64/boot-screens/syslinux.cfg

=== NOT FINISHED !!! ===

Format USB Stick with FAT32 on FreeBSD

Leave a Reply

Your email address will not be published. Required fields are marked *