My experiences writing an ISO to USB stick.
I'm sorry this is so long. I've endeavored to be complete (verbose).
Especially see '<<--' lines (there's 5 of them).
I use 'gparted' to format '/dev/sdb' to fat32.
'gparted' reports:
==================
Device Information
------------------
Model: USB Flash Memory
Serial: none
Size: 14.45 GiB
Path: /dev/sdb
Partition table: msdos <<-- NOTE: MSDOS part-table
Heads: 255
Sectors/track: 63
Cylinders: 1885
Total sectors: 30297216
Sector size: 512 <<-- NOTE sector size (can't be changed)
============
Partition #1
------------
File system: fat32
Label: USB Stick
UUID: 9142-EF76
Status: Mounted on /media/mark/9142-EF76
Used: 14.45 MiB
Unused: 14.42 GiB
Size: 14.45 GiB
Path: /dev/sdb1
Name:
Flags: boot
First sector: 2048
Last sector: 30281727
Total sectors: 30279680
===========
Unallocated
-----------
File system: unallocated
Size: 7.56 MiB
Path: unallocated
First sector: 30281728
Last sector: 30297215
Total sectors: 15488
I write 'linuxmint-18-cinnamon-64bit.iso' to the USB stick using 'mintstick -m iso'
I launch 'gparted'. When the scanner gets to '/dev/sdb', it complains:
"Libparted Warning
The driver descriptor says the physical block size is 2018 bytes, but Linux says it is 512 bytes.
[Cancel] [Ignore]"
I click [Ignore] button.
'gparted' reports:
==================
Device Information
------------------
Model: USB Flash Memory
Serial: none
Size: 57.79 GiB
Path: /dev/sdb
Partition table: mac <<-- NOTE: is this 'mac' as in 'macintosh'?
Heads: 255
Sectors/track: 63
Cylinders: 1885
Total sectors: 30297216
Sector size: 2048 <<-- NOTE sector size
============
Partition #1
------------
File system: unknown
Label: Linux Mint 18 Cinnamon 64-bit
UUID: 2016-06-28-12-50-06-00
Status: not mounted
Size: 4.00 KiB
Path: /dev/sdb1
Name:
Flags:
First sector: 1
Last sector: 2
Total sectors: 2
Warning:
Unable to detect file system! Possible reasons are:
- The file system is damaged
- The file system is unknown to GParted
- There is no file system available (unformatted)
- The device entry /dev/sdb1 is missing
===========
Unallocated
-----------
File system: unallocated
Size: 42.55 MiB
Path: unallocated
First sector: 3
Last sector: 21787
Total sectors: 21785
============
Partition #2
------------
File system: fat16
Label:
UUID: B1F5-0A13
Status: not mounted
Used: 2.30 MiB (100%)
Unused: 8.00 KiB (0%)
Size: 2.31 MiB
Path: /dev/sdb2
Name:
Flags:
First sector: 21788
Last sector: 22971
Total sectors: 1184
===========
Unallocated
-----------
File system: unallocated
Size: 57.74 GiB <<-- This is 4x what it should be (...4x==2048/512, the sector size is causing this?)
Path: unallocated
First sector: 22972
Last sector: 30297215
Total sectors: 30274244
Hmmm... NOTE the '-m' in 'mintstick -m iso' (above). Does that mean 'mac'? Should a different command line be used?
In 'terminal', I submit: 'mintstick --help'. I see:
mark@mark-Lenovo-V570 ~ $ mintstick --help
/usr/lib/mintstick/mintstick.py:10: PyGIWarning: Polkit was imported without specifying a version first. Use gi.require_version('Polkit', '1.0') before import to ensure that the right version gets loaded.
from gi.repository import GObject, Gio, Polkit, Gtk, GLib, UDisks
/usr/lib/mintstick/mintstick.py:10: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import GObject, Gio, Polkit, Gtk, GLib, UDisks
/usr/lib/mintstick/mintstick.py:10: PyGIWarning: UDisks was imported without specifying a version first. Use gi.require_version('UDisks', '2.0') before import to ensure that the right version gets loaded.
from gi.repository import GObject, Gio, Polkit, Gtk, GLib, UDisks
Usage: mintstick [--debug] -m [format|iso] : mode (format usb stick or burn iso image)
mintstick [--debug] -m iso [-i|--iso] iso_path
mintstick [--debug] -m format [-u|--usb] usb_device
[-f|--filesystem] filesystem
mark@mark-Lenovo-V570 ~ $
Hmmm... They all have '-m'. In 'terminal', I submit: 'man mintstick'. I read:
"SEE ALSO
"The full documentation for mintstick is maintained at http://github.com/linuxmint/mintstick
"Go to the project page to get access to the complete documentation."
I go to 'http://github.com/linuxmint/mintstick'. I can't find documentation. I can't find a project page.
I reboot so that the automounter will find the USB stick.
Rebooted, I launch 'gparted'. When the scanner gets to '/dev/sdb', again it complains:
"Libparted Warning
The driver descriptor says the physical block size is 2018 bytes, but Linux says it is 512 bytes.
[Cancel] [Ignore]"
I click [Ignore] button. Immediately, I see:
"Libparted Error
Partition(s) 1 on /dev/sdb have been written, but we have been
unable to inform the kernel of the change, probably because it/
they are in use. As a result, the old partition(s) will remain in
use. You should reboot now before making further changes.
[Cancel] [Ignore]"
I quit 'gparted' and reboot again. The sequence above repeats.
Nemo shows device 'Linux Mint 18 Cinnamon 64-bit' is mounted, and, when I browse into it, the file listing looks correct.
/media/mark/Linux Mint 18 Cinnamon 64-bit/boot/
/media/mark/Linux Mint 18 Cinnamon 64-bit/casper/
/media/mark/Linux Mint 18 Cinnamon 64-bit/dists/
/media/mark/Linux Mint 18 Cinnamon 64-bit/isolinux/
/media/mark/Linux Mint 18 Cinnamon 64-bit/pool/
/media/mark/Linux Mint 18 Cinnamon 64-bit/preseed/
/media/mark/Linux Mint 18 Cinnamon 64-bit/.disk/
/media/mark/Linux Mint 18 Cinnamon 64-bit/MD5SUMS
/media/mark/Linux Mint 18 Cinnamon 64-bit/README.diskdefines
If I boot to USB, boot fails with this message: "Error: File name '/boot/' not found."
I'm left with a black screen and no boot. When I reboot and allow it, Linux Mint launches normally.
Issues:
The resulting USB doesn't appear to be bootable ('Flags:' != 'boot').
Is the USB using 'grub'?
What's with the 'mac' ID for the new Partition table? Is this a problem with the Linux Mint ISO or with 'mintstick'?
Help is needed and appreciated. Cheers!