~ $ sudo -H mkusb --------------------------------------------------------------------- Usage: mkusb [input-file] # optional parameter --------------------------------------------------------------------- d: dus , guidus, mkusb-dus - New, easy to use e: Eleven, sudo -H mkusb-11 - Classic user interface n: NoX, sudo mkusb-nox - original text mode b: Bas, sudo mkusb-bas - basic text mode for old/basic linux q: Quit --------------------------------------------------------------------- Select version of mkusb (d/e/n/b/q) d dus 12.2.9 Drive that contains source file: /dev/sda Live drive, that is booted from: /dev/sda cands=1 sdf Kingston_DataTraveler_3.0 57.8G usb USB or memory card p_target: target=/dev/sdf settings=msdos percent=90 Prepare persistent live system from '/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso' to the target device (drive) '/dev/sdf' MODEL NAME FSTYPE LABEL SIZE DataTraveler 3.0 sdf 57.8G └─sdf1 vfat FFat 57.8G /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso /dev/sdf 90 settings=msdos ----- /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso /dev/sdf 90 settings=msdos source=/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso target=/dev/sdf percent=90 msdos=true upefi=false dni=false source=/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso ls -l /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso -rw-r--r-- 1 mint16 mint17 1875378176 May 26 2017 /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso --------------------------------------------------------------------------- start [dus-persistent 12.2.9] @ 2017-12-08 12:12:37 AM --------------------------------------------------------------------------- Making a USB boot drive or memory card .......................... grep: /etc/upstream-release: Is a directory running operating system: ubuntu grub_n_iso "$source" "$target" "$result" grub_n_iso /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso /dev/sdf ***** tu=/dev/sdf **************************************************** selected target partition table: 'msdos' dus-persistent wants the program 'usb-pack-efi': wanted in order to install 'persistent live'. dus-persistent 12.2.9 wants usb-pack-efi but it is not installed. wanted in order to install 'persistent live'. mount: block device /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso is write-protected, mounting read-only Linux Mint 18.1 "Serena" - Release amd64 --------------------------------------------------------------------------- mount: block device /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso is write-protected, mounting read-only select_boot_system: usb-pack_efi not available select_boot_system: usb-pack_efi: using variable 'upefi=false' item 00 '/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso' is identified as the source ISO file
MODEL            NAME   FSTYPE LABEL MOUNTPOINT   SIZE
DataTraveler 3.0 sdf                             57.8G
                 `-sdf1 vfat   FFat              57.8G
Using the file '/usr/share/mkusb/grub.cfg' item 10 Clean for a GUID partition table GPT fdisk (gdisk) version 0.8.8 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: not present *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if you don't want to convert your MBR partitions to GPT format! *************************************************************** Warning! Secondary partition table overlaps the last partition by 33 blocks! You will need to delete this partition or resize it in another utility. Command (? for help): This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): Command (? for help): Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!! Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdf. The operation has completed successfully. Wipe the first megabyte (mibibyte) to get a clean boot area 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB) copied, 0.2374 s, 4.4 MB/s Wait 5 seconds and a little more ... item 20 --------------------------------------------------------------------------- Selected percentage of remaining space for persistence = 90 --------------------------------------------------------------------------- partition 1 - ntfs 'usbdata' partition 2 - extended container for casper-rw partition 3 - fat32 boot,efi partition 4 - iso9660 - cloned system partition 5 - ext4 - 'casper-rw' item 30 preparing /dev/sdf3 ------------------------------------------------ 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB) copied, 0.12647 s, 8.3 MB/s umount: /dev/sdf3: not mounted mkfs.fat 3.0.26 (2014-03-07) /dev/sdf3 has 64 heads and 32 sectors per track, hidden sectors 0x1000; logical sector size is 512, using 0xf8 media descriptor, with 499712 sectors; drive number 0x80; filesystem has 2 32-bit FATs and 1 sector per cluster. FAT size is 3844 sectors, and provides 491992 clusters. There are 32 reserved sectors. Volume ID is f70704da, no volume label. item 40 preparing /dev/sdf1 ------------------------------------------------ 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB) copied, 0.102614 s, 10.2 MB/s umount: /dev/sdf1: not mounted Cluster size has been automatically set to 4096 bytes. Creating NTFS volume structures. Creating root directory (mft record 5) Creating $MFT (mft record 0) Creating $MFTMirr (mft record 1) Creating $LogFile (mft record 2) Creating $AttrDef (mft record 4) Creating $Bitmap (mft record 6) Creating $Boot (mft record 7) Creating backup boot sector. Creating $Volume (mft record 3) Creating $BadClus (mft record 8) Creating $Secure (mft record 9) Creating $UpCase (mft record 0xa) Creating $Extend (mft record 11) Creating system file (mft record 0xc) Creating system file (mft record 0xd) Creating system file (mft record 0xe) Creating system file (mft record 0xf) Creating $Quota (mft record 24) Creating $ObjId (mft record 25) Creating $Reparse (mft record 26) Syncing root directory index record. Syncing $Bitmap. Syncing $MFT. Updating $MFTMirr. Syncing device. mkntfs completed successfully. Have a nice day. preparing /dev/sdf5 ------------------------------------------------ 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB) copied, 0.0994999 s, 10.5 MB/s umount: /dev/sdf5: not mounted mke2fs 1.42.9 (4-Feb-2014) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 3293184 inodes, 13151744 blocks 657587 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 402 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done item 50 mount: according to mtab /media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso is already mounted on /tmp/dus.fakrOtv165 as loop fatlabel: warning - lowercase labels might not work properly with DOS or Windows tune2fs 1.42.9 (4-Feb-2014) --------------------------------------------------------------------------- source=/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso --------------------------------------------------------------------------- item 60 umount: /dev/sdf3: not mounted mount /dev/sdf3 /tmp/dus.M46ifocnbc /dev/sdf3 241M 512 241M 1% /tmp/dus.M46ifocnbc item 65 umount: /dev/sdf1: not mounted /dev/sdf1 5.6G 30M 5.6G 1% /tmp/dus.PmaAHnE4Q9 item 70 UEFI Bootloader: Installing for i386-pc platform. Installation finished. No error reported. item 80 64-bit bootloader: copy the boot files from the iso file looper=/tmp/dus.fakrOtv165 targ1=/tmp/dus.M46ifocnbc rsync: don't worry, symlink errors are *expected* because of the target file system. Using the file '/tmp/dus.M46ifocnbc/boot/grub/grub.cfg' set security upgrade action to 'Display immediately' umount: /tmp/dus.M46ifocnbc: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /dev/sdf4: not mounted --------------------------------------------------------------------------- do_n_show: < "/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso" pv -ni2 | dd of=/dev/sdf4 bs=4096 ( < "/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso" pv -ni2 | dd of=/dev/sdf4 bs=4096 && echo 'Done' > /dev/stderr ) 2>&1 || ( echo '# failed';sleep 1 ) Please wait for sync (flushing file system buffers to the device) until 'Done' is written ... 'pv %'; 'dd final output' 3 3 5 6 8 10 11 13 15 16 18 20 22 24 25 27 29 30 32 34 35 37 39 40 42 44 46 48 50 51 53 55 56 58 60 61 63 65 66 69 70 72 74 75 77 79 80 82 84 85 88 89 91 93 94 96 98 99 100 457856+0 records in 457856+0 records out 1875378176 bytes (1.9 GB) copied, 116.316 s, 16.1 MB/s Done do_n_show: Work done --------------------------------------------------------------------------- mount: /dev/sdf3 already mounted or /tmp/dus.M46ifocnbc busy mount: according to mtab, /dev/sdf3 is already mounted on /tmp/dus.M46ifocnbc Syncing the target device ... item 90 Wait 5 seconds and a little more ...
parted -s "/dev/sdf" print
Model: Kingston DataTraveler 3.0 (scsi)
Disk /dev/sdf: 62.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 3      2097kB  258MB   256MB   primary   fat32        boot
 4      258MB   2153MB  1895MB  primary
 2      2153MB  56.0GB  53.9GB  extended               lba
 5      2154MB  56.0GB  53.9GB  logical   ext4
 1      56.0GB  62.0GB  5985MB  primary   ntfs

lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdf"
MODEL            NAME   FSTYPE  LABEL                       MOUNTPOINT   SIZE
DataTraveler 3.0 sdf                                                    57.8G
                 |-sdf1 ntfs    usbdata                                  5.6G
                 |-sdf2                                                    1K
                 |-sdf3 vfat    usbboot                                  244M
                 |-sdf4 iso9660 Linux Mint 18.1 MATE 64-bit              1.8G
                 `-sdf5 ext4    casper-rw                               50.2G
Done :-) The target device is ready to use. '/media/mint16/FAT32-1/LinuxMint_18-1/linuxmint-18.1-mate-64bit.iso' was installed item 100 Cleanup after dus-persistent finished :-) Cleanup after dus-persistent finished :-) --------------------------------------------------------------------------- Total time used [by dus-persistent] = 231 s; 00:03:51 p_clean: clean if necessary and return clean if necessary and quit