mkusb 10.3 tested with a 4 TB hard disk drive
I verified that mkusb can create a persistent live system that uses a 4 TB hard disk drive with a huge usbdata partition with NTFS ( > 3 TB ).
It works like it should with a new 'external box' with eSATA and USB 3. See the attached picture and the following code box with the mkusb console output, mkusb.log. In this extreme example, 184 Gibibytes are allocated for persistence, and 174 Gibibytes are actually available for files (program packages, tweaks and personal data files). The size of the usbdata partition is 3.5 Tibibytes.
(An older box with eSATA and USB 2 could manage more than 2 TB only via eSATA. The persistent live system could boot also via USB, but the huge usbdata partition with NTFS was not available.)
Code:
The mkusb console window displays,
or the file ~/mkusb.log contains:
output from the engine behind the zenity curtain.
---------------------------------------------------------------------------
start [mkusb 10.3] @ 2015-10-08 04:13:45 PM
---------------------------------------------------------------------------
Current directory=/home/lubuntu
main: usbonly=true
main: liveonly=true
No input file specified yet
main: source=''
TERM=unknown
ubuntu
---------------------------------------------------------------------------
menu_shell:
select_source: imagefile=/home/lubuntu/Hämtningar/ubuntu-wily-desktop-amd64.iso
---------------------------------------------------------------------------
menu_shell:
---------------------------------------------------------------------------
menu_shell:
imagefile=/home/lubuntu/Hämtningar/ubuntu-wily-desktop-amd64.iso
Booted from: /dev/sdg
/dev/sdg is busy; cannot be unmounted. Close any program that is using
this device if you want to select and use it as a target for mkusb (maybe
change directory if a terminal window is using the partition)!
ans=u
/dev/sdg is busy; cannot be unmounted. Close any program that is using
this device if you want to select and use it as a target for mkusb (maybe
change directory if a terminal window is using the partition)!
ans=2
mount: /dev/loop1 is write-protected, mounting read-only
Ubuntu 15.10 "Wily Werewolf" - Alpha amd64
'/home/lubuntu/Hämtningar/ubuntu-wily-desktop-amd64.iso' is identified as the source ISO file
<pre>
MODEL NAME FSTYPE LABEL MOUNTPOINT SIZE
WDC WD40EFRX-68W sdb 3.7T
</pre>
Using the file '/usr/share/mkusb/grub.cfg'
Using the file '/usr/share/mkusb/usb-pack_efi.tar.gz'
Clean for a GUID partition table
GPT fdisk (gdisk) version 1.0.0
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
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/sdb.
The operation has completed successfully.
Wipe the first megabyte (mibibyte) to get a clean boot area
1024+0 poster in
1024+0 poster ut
1048576 byte (1.0 MB) kopierade, 0.0359203 s, 29.2 MB/s
---------------------------------------------------------------------------
Selected percentage of remaining space for persistence = 5
---------------------------------------------------------------------------
preparing /dev/sdb3 ------------------------------------------------
1024+0 poster in
1024+0 poster ut
1048576 byte (1.0 MB) kopierade, 0.0409623 s, 25.6 MB/s
mkfs.fat 3.0.28 (2015-05-16)
/dev/sdb3 has 255 heads and 63 sectors per track,
hidden sectors 0x1000;
logical sector size is 512,
using 0xf8 media descriptor, with 124928 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 1 sector per cluster.
FAT size is 961 sectors, and provides 122974 clusters.
There are 32 reserved sectors.
Volume ID is 6d04e803, no volume label.
preparing /dev/sdb1 ------------------------------------------------
1024+0 poster in
1024+0 poster ut
1048576 byte (1.0 MB) kopierade, 0.0390653 s, 26.8 MB/s
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/sdb5 ------------------------------------------------
1024+0 poster in
1024+0 poster ut
1048576 byte (1.0 MB) kopierade, 0.0385398 s, 27.2 MB/s
mke2fs 1.42.12 (29-Aug-2014)
Skapar ett filsystem med 48820992 4 k-block och 12206080 inoder
Filsystems-UUID: bd3cb6a8-fac7-48d1-9566-2c40ac3e1423
Superblockkopior lagrade på block:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allokerar grupptabeller: 0/1490 klar
Skriver inodstabeller: 0/1490 klar
Skapar journal (32768 block): klar
Skriver superblock och filsystemsbokföringsinformation: 0/1490 26/1490 klar
mount: /dev/loop1 is write-protected, mounting read-only
tune2fs 1.42.12 (29-Aug-2014)
---------------------------------------------------------------------------
source=/home/lubuntu/Hämtningar/ubuntu-wily-desktop-amd64.iso
---------------------------------------------------------------------------
mount /dev/sdb3 /tmp/tmp.WRMqyweanq
/dev/sdb3 61M 512 61M 1% /tmp/tmp.WRMqyweanq
UEFI Bootloader: Installerar för i386-pc-plattformar.
Installation avslutad. Inga fel rapporterades.
BIOS Bootloader: Installerar för i386-pc-plattformar.
Installation avslutad. Inga fel rapporterades.
./
./boot/
./boot/grub/
./boot/memtest/
./boot/memtest/memtest86+-5.01.bin
./boot/memtest/memtest.bin
./EFI/
./EFI/BOOT/
./EFI/BOOT/bootx64.efi
./EFI/BOOT/bootia32.efi
---------------------------------------------------------------------------
do_n_show:
< "/home/lubuntu/Hämtningar/ubuntu-wily-desktop-amd64.iso" pv -n | dd of=/dev/sdb4 bs=4096
( < "/home/lubuntu/Hämtningar/ubuntu-wily-desktop-amd64.iso" pv -n | dd of=/dev/sdb4 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'
2
5
8
10
13
16
18
21
24
26
29
32
34
37
40
42
45
48
50
53
56
58
61
64
67
69
72
75
77
80
83
85
88
91
93
96
99
100
307200+0 poster in
307200+0 poster ut
1258291200 byte (1.3 GB) kopierade, 37.8401 s, 33.3 MB/s
Done
do_n_show: Work done
---------------------------------------------------------------------------
Syncing the target device ...
<pre>
parted -s "/dev/sdb" print
Modell: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sdb: 4001GB
Sektorstorlek (logisk/fysisk): 512B/4096B
Partitionstabell: gpt
Disk Flags:
Nummer Början **** Storlek Filsystem Namn Flaggor
2 1049kB 2097kB 1049kB primary bios_grub
3 2097kB 66.1MB 64.0MB fat32 primary startbar, esp
4 66.1MB 1374MB 1308MB primary
5 1374MB 201GB 200GB ext2 primary
1 201GB 4001GB 3799GB ntfs primary msftdata
lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdb"
MODEL NAME FSTYPE LABEL MOUNTPOINT SIZE
WDC WD40EFRX-68W sdb 3.7T
├─sdb1 ntfs usbdata 3.5T
├─sdb2 1M
├─sdb3 vfat ubuwily64 61M
├─sdb4 iso9660 Ubuntu 15.10 amd64 1.2G
└─sdb5 ext4 casper-rw 186.2G
</pre>
Done :-)
The target device is ready to use.
'/home/lubuntu/Hämtningar/ubuntu-wily-desktop-amd64.iso' was installed
Cleanup after mkusb finished :-)
Zenity error log-file 'zerrlog'=/tmp/tmp.2cxDS9uk7w
Cleanup after mkusb finished :-)
---------------------------------------------------------------------------
Total time used [by mkusb] = 244 s; 00:04:04
Bookmarks