· 9 years ago · Nov 18, 2016, 08:24 PM
1iso=/path/to/isoimage #e.g. iso=~/Downloads/ubuntu-16.04-desktop-amd64.iso
2
3s=/mnt/isoimage #Source mount point for ISO files (via loop file system)
4t=/media/USBRoot #Target mount point for USB files in partition #1
5
6dev=/dev/sd? #set the "?" to your USB drive letter, e.g. /dev/sdb
7
8sudo dd if=/dev/zero of=$dev #bs=2048 is optional and doesn't seem to matter
9
10dd: writing to ‘/dev/sdb’: No space left on device
1130326785+0 records in
1230326784+0 records out
1315527313408 bytes (16 GB) copied, 4099.2 s, 3.8 MB/s
14
15sudo umount ${dev}1
16sudo umount ${dev}2
17
18sudo fdisk $dev
19o [create partition map], and then
20
21n (p) (1) (2048) 27343750 [new partition #1]
22t c [change partition type to type c, or W95 FAT32], and
23
24n (p) (2) (default) (default) [new partition #2]
25t 2 83 [type 83 or linux], then
26a (2) [set [toggle] the bootable flag], and
27
28p [check new table], and finally
29
30Disk /dev/sdb: 14.5 GiB, 15527313408 bytes, 30326784 sectors
31Units: sectors of 1 * 512 = 512 bytes
32Sector size (logical/physical): 512 bytes / 512 bytes
33I/O size (minimum/optimal): 512 bytes / 512 bytes
34Disklabel type: dos
35Disk identifier: 0xa42995f9
36
37Device Boot Start End Sectors Size Id Type
38/dev/sdb1 2048 27343750 27341703 13G c W95 FAT32 (LBA)
39/dev/sdb2 * 27344896 30326783 2981888 1.4G 83 Linux
40
41w [write the partition table to the usb drive]
42
43The partition table has been altered.
44Calling ioctl() to re-read partition table.
45Syncing disks.
46
47The partition table has been altered.
48Calling ioctl() to re-read partition table.
49Re-reading the partition table failed.: Device or resource busy
50
51The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
52
53sudo dd if=$iso of=${dev}2
54
55sudo mkfs.vfat -F 32 -c ${dev}1 # for vFAT32 file system
56
57sudo mkdir -p $t
58sudo mount ${dev}1 $t
59
60sudo grub-install --no-floppy --root-directory=$t $dev
61
62sudo mkdir -p $s
63sudo mount -o loop $iso $s
64sudo cp $s/casper/{vmlinuz.efi,initrd.lz} $t/boot/
65
66sudo dd if=/dev/zero of=$t/casper-rw bs=1M count=1024
67sudo mkfs.ext3 -F $t/casper-rw #takes a long time
68
69sudo nano $t/boot/grub/grub.cfg
70
71echo LOADING USB DRIVE
72echo
73echo To continue press any key
74echo To abort press ^-alt-delete
75echo
76read
77echo Proceeding...
78
79set default=0
80set timeout=10
81set title="Ubuntu (Live)"
82set root=(hd0,msdos1)
83
84linux /boot/vmlinuz.efi boot=casper file=/preseed/ubuntu.seed persistent ro splash quiet
85echo vmlinuz.efi loaded
86
87initrd /boot/initrd.lz
88echo initrd.lz loaded
89echo
90echo Grub done. Booting...
91boot
92
93sync
94
95sudo umount $s; sudo rmdir $s
96sudo umount $t; sudo rmdir $t
97
98#!/bin/bash
99
100#Usage:
101#
102# mybackup - show list of current backups
103# myrestore - ''
104#
105# mybackup <machine> <BackupFolderName> - machine: love2d or sharon-pc
106# myrestore <machine> <BackupFolderName> - by convention name is 'nn-descriptiveName' (so it sorts by date)
107
108
109#################################################################
110#################################################################
111
112### PARTITIONS ######################
113#Partition labels (also used for mount point folder names):
114# Note: use labels rather than UUID as they might be more controllable.
115BackupDrive='Linux backup' # USB backup drive (I removed space from 'name' & it removed it from 'label')
116 BackupBase="$BackupDrive/Backups" # Backup base folder directory & name
117 SubDir="files"
118
119
120### PARTITIONS LABEL HELP:
121#lsblk -o +label gives (note older method was blkid, but this suggests we use lsblk):
122#NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT LABEL
123#sda 8:0 0 465.8G 0 disk
124#├─sda1 8:1 0 199M 0 part SYSTEM
125#├─sda2 8:2 0 288.1G 0 part
126#├─sda3 8:3 0 1K 0 part
127#├─sda4 8:4 0 29.3G 0 part Shared
128#├─sda5 8:5 0 23.3G 0 part d8root
129#├─sda6 8:6 0 119.5G 0 part d8home
130#└─sda7 8:7 0 5.4G 0 part [SWAP]
131
132#sdc 8:32 0 3.7T 0 disk
133#├─sdc1 8:33 0 128M 0 part
134#├─sdc2 8:34 0 2.7T 0 part /media/ubuntu/Seagate Backup Plus Drive Seagate Backup Plus Drive
135#└─sdc3 8:35 0 976.6G 0 part Linux backup
136
137
138
139### MOUNTING 1of2 ######################
140 sudo umount "/mnt/$BackupDrive">& /dev/null # --- cleanup from prior failed attempt:
141 sudo mkdir "/mnt/$BackupDrive">& /dev/null; sudo mount -L "$BackupDrive" "/mnt/$BackupDrive" -o defaults,suid >& /dev/null #Allow to set user owner of files
142
143
144
145
146########################################################################
147### FUNCTIONS #################################################################
148
149####################
150function usage { echo; echo "Usage: ${0##*/} [machine name: Love2d|Sharon-pc] [BackupFolderName]";echo;}
151
152####################
153
154####################
155#If parameter just show dirs for that machine, else show for both
156function myls {
157 echo -n "'$1' existing backups:"
158 if [ -d "$2" ]; then echo; ls -lFgG "$2" |grep -v ^total |grep ' [0-9][0-9]-' |sed 's/..................//'; else echo ' (none)'; fi;
159}
160
161##################
162function currentbackups {
163 if [ "$1" ]; then
164 myls "$1" "/mnt/$BackupBase/$1/$SubDir"
165 else
166 myls 'Love2d' "/mnt/$BackupBase/Love2d/$SubDir"
167 echo
168 myls 'Sharon-pc' "/mnt/$BackupBase/Sharon-pc/$SubDir"
169 echo
170 fi
171}
172
173###################
174function badmachine { echo "Machine type '$1' is invalid.";}
175
176###################
177function cleanup {
178 # echo "--- cleaning up --------------------------------------"
179 sudo umount "/mnt/$BackupDrive"
180}
181
182########################################################################
183########################################################################
184
185
186### CHECK INPUTS #######################################################
187#Check if backup name paramter exists:
188if [ $# = 0 ]; then usage; cleanup; exit; fi
189
190if [ $# = 1 ]; then if [ "$1" != "Love2d" -a "$1" != "Sharon-pc" ]; then badmachine "$1"; usage; else usage; currentbackups "$1"; fi; cleanup; exit; fi
191
192if [ $# = 2 ]; then if [ "$1" != "Love2d" -a "$1" != "Sharon-pc" ]; then badmachine "$1"; usage; cleanup; exit; fi; fi
193
194
195### MOUNTING 2of2 ######################
196if [ "$1" = 'Love2d' ]; then
197 MyHome='d8home' # Love2 Debian /home partition name
198 MyRoot='d8root' # Love2 Debian / (root) partition name
199 MyShared='Shared' # Love2 Debian Shared partition name
200
201 sudo umount "/mnt/$MyRoot" >& /dev/null # --- cleanup from prior failed attempt:
202 sudo umount "/mnt/$MyHome" >& /dev/null #
203 sudo umount "/mnt/$MyShared" >& /dev/null #
204
205 sudo mkdir "/mnt/$MyRoot" >& /dev/null; sudo mount -L "$MyRoot" "/mnt/$MyRoot" >& /dev/null
206 sudo mkdir "/mnt/$MyHome" >& /dev/null; sudo mount -L "$MyHome" "/mnt/$MyHome" >& /dev/null
207 sudo mkdir "/mnt/$MyShared" >& /dev/null; sudo mount -L "$MyShared" "/mnt/$MyShared" >& /dev/null
208
209else
210# MyHome='uhome' # Love2 Ubuntu /home partition name
211# MyRoot='uroot' # Love2 Ubuntu / (root) partition name
212
213 MyHome='a41eaa3e-bd31-4ebc-86d4-cf8ed5f3e779' # Love2 Ubuntu /home partition name
214 MyRoot='f3b7424c-0144-42a6-8488-62fbee94d245' # Love2 Ubuntu / (root) partition name
215
216
217 sudo umount "/mnt/$MyRoot" >& /dev/null # --- cleanup from prior failed attempt:
218 sudo umount "/mnt/$MyHome" >& /dev/null #
219
220#sudo mkdir "/mnt/$MyRoot" >& /dev/null; sudo mount -L "$MyRoot" "/mnt/$MyRoot" >& /dev/null
221#sudo mkdir "/mnt/$MyHome" >& /dev/null; sudo mount -L "$MyHome" "/mnt/$MyHome" >& /dev/null
222
223 sudo mkdir "/mnt/$MyRoot" >& /dev/null; sudo mount -U "$MyRoot" "/mnt/$MyRoot" >& /dev/null
224 sudo mkdir "/mnt/$MyHome" >& /dev/null; sudo mount -U "$MyHome" "/mnt/$MyHome" >& /dev/null
225fi
226
227
228#=================================================================
229BackupDir="$BackupBase/$1/$SubDir/$2" # /dir/BackupFolderName
230
231
232#rSync stuff:
233MyRsync="sudo rsync -aAXv --delete"
234RootExclude=" --exclude={"/dev/*","/lost+found","/media/*","/mnt/*","/proc/*","/run/*","/sys/*","/tmp/*"}"
235HomeExclude=" --exclude='*cache*'" #this does not work
236
237if [ "${0##*/}" = "mybackup" ]; then
238echo backing up...
239 sudo mkdir -p "/mnt/$BackupDir/root" # Making directories to save backup to
240 sudo mkdir -p "/mnt/$BackupDir/home"
241
242 echo "--- Backing up: / -----------------------------------"
243 $MyRsync $RootExclude "/mnt/$MyRoot/" "/mnt/$BackupDir/root/"
244 echo "--- Backing up: /home -------------------------------"
245
246 $MyRsync $HomeExclude "/mnt/$MyHome/" "/mnt/$BackupDir/home/"
247
248 if [ "$MyShared" ]; then #no shared partion on Sharon's machine
249 sudo mkdir -p "/mnt/$BackupDir/shared"
250 echo "--- Backing up: Shared ------------------------------"
251 $MyRsync "/mnt/$MyShared/" "/mnt/$BackupDir/shared/"
252 fi
253
254else
255
256 # Confirm
257 read -p "YOU ARE ABOUT TO OVERWRITE YOUR PARTITIONS - CONFIRM (y/N)?" -n 1 -r; echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then echo "Aborting.";exit; fi
258 echo;
259 read -p "DANGER! Really overwrite your hard disk partitions? (y/N)?" -n 1 -r; echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then echo "Aborting.";exit; fi
260
261 echo "--- Restoring: / -----------------------------------"
262 $MyRsync "/mnt/$BackupDir/root/" "/mnt/$MyRoot"
263 echo "--- Restoring: /home -------------------------------"
264 $MyRsync "/mnt/$BackupDir/home/" "/mnt/$MyHome"
265
266 if [ "$MyShared" ]; then #no shared partion on Sharon's machine
267 echo "--- Restoring: Shared ------------------------------"
268 $MyRsync "/mnt/$BackupDir/shared/" "/mnt/$MyShared"
269 fi
270
271fi
272
273cleanup
274 sudo umount "/mnt/$MyRoot" ;sudo rmdir "/mnt/$MyRoot"
275 sudo umount "/mnt/$MyHome" ;sudo rmdir "/mnt/$MyHome"
276
277if [ "$MyShared" ]; then #no shared partion on Sharon's machine
278 sudo umount "/mnt/$MyShared" ;sudo rmdir "/mnt/$MyShared"
279fi
280
281 echo "=== DONE. ============================================"
282
283exit 0
284
285$ ssh sudodus@my_server
286sudodus@my_server's password:
287Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-45-generic i686)
288
289 * Documentation: https://help.ubuntu.com
290 * Management: https://landscape.canonical.com
291 * Support: https://ubuntu.com/advantage
292
2930 paket kan uppdateras.
2940 uppdateringar är säkerhetsuppdateringar.
295
296*** /dev/sda8 will be checked for errors at next reboot ***
297
298sudodus@xenial32 ~ $ cd /media/multimed-2/test/mkmkusb/dus
299sudodus@xenial32 /media/multimed-2/test/mkmkusb/dus $ dus lubuntu-16.04.1-desktop-amd64.iso
300 dus 0.0.0
301[sudo] password for sudodus:
302dus wants the program(s)
303mkusb-common 'to make a persistent live drive and to get a good GUI experience'
304usb-pack-efi 'only to make a persistent live drive'
305 Please install the corresponding package(s)
306Press Enter to continue, or wait 8 seconds
307
308 dus 0.0.0 - Cloning, live linux, windows / Persistent live
309 ──────────────────────────────────────────────────────────────────────────────
310
311
312 ┌──────Move between items with the arrow keys────────â”
313 │ - Do USB Stuff - │
314 │ Welcome and Notice about Overwriting │
315 │ The target device will be completely overwritten │
316 │ ┌────────────────────────────────────────────────┠│
317 │ │c Cloning iso file, [compressed] image file or │ │
318 │ │l 'Live-only' or linux installer from iso file │ │
319 │ │p 'Persistent live' - only Debian and Ubuntu │ │
320 │ │w extracting Windows installer │ │
321 │ │q Quit │ │
322 │ └────────────────────────────────────────────────┘ │
323 │ │
324 │ │
325 │ │
326 │ │
327 ├────────────────────────────────────────────────────┤
328 │ < OK > <Avbryt> │
329 └────────────────────────────────────────────────────┘
330
331## oops - I have dialog installed - so I had better use the option -t ##
332## to make a demo with the plain text interface ##
333
334clean if necessary and return
335sudodus@xenial32 /media/multimed-2/test/mkmkusb/dus $ dus -t lubuntu-16.04.1-desktop-amd64.iso
336 dus 0.0.0
337dus wants the program(s)
338mkusb-common 'to make a persistent live drive and to get a good GUI experience'
339usb-pack-efi 'only to make a persistent live drive'
340 Please install the corresponding package(s)
341Press Enter to continue, or wait 8 seconds
342+------------------------ Do USB Stuff -------------------------+
343| Welcome and Notice about Overwriting |
344| The target device will be completely overwritten |
345+------------------------ quit with (q) ------------------------+
346Cloning,live-only,windows / Persistent-live / Quit (c/l/p/w/q) p
347Drive that contains source file: /dev/sdc
348Live drive, that is booted from: /dev/sda
349-------------------------------------------------------------------------------
350Available drives (mass storage devices)
351Dev Target name/model Size Bus Kind of device
352sdd SanDisk_Cruzer 15G usb USB or memory card
353Example: add 'sdx': /dev/sdx
354Select target device /dev/sdd
355p_target: target=/dev/sdd
356Select 'MSDOS' partition table - default GPT? (y/N)
357Select 'usb-pack-efi' - default grub from iso file? (y/N)
358Select 'download and install' security update - default NO? (y/N)
359Enter 'percentage' for persistence - default 50 (enter: 1 - 100) 75
360settings=
361percent=75
362Prepare persistent live system from
363'lubuntu-16.04.1-desktop-amd64.iso'
364to the target device (drive) '/dev/sdd'
365MODEL NAME FSTYPE LABEL SIZE
366Cruzer sdd 15G
367 ├─sdd1 ntfs usbdata 3,5G
368 ├─sdd2 1M
369 ├─sdd3 vfat lub1604164 122M
370 ├─sdd4 iso9660 Lubuntu 16.04.1 LTS amd64 874M
371 └─sdd5 ext4 casper-rw 10,5G
372 Final checkpoint, go ahead? (g/N) g
373lubuntu-16.04.1-desktop-amd64.iso
374/dev/sdd
37575
376settings=
377-----
378live system or temporary superuser permissions
379lubuntu-16.04.1-desktop-amd64.iso
380/dev/sdd
38175
382settings=
383source=lubuntu-16.04.1-desktop-amd64.iso
384target=/dev/sdd
385percent=75
386msdos=false
387upefi=false
388dni=false
389source=lubuntu-16.04.1-desktop-amd64.iso
390ls -l lubuntu-16.04.1-desktop-amd64.iso
391lrwxrwxrwx 1 olle olle 67 okt 22 21:44 lubuntu-16.04.1-desktop-amd64.iso -> /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-desktop-amd64.iso
392---------------------------------------------------------------------------
393start [dus-persistent 0.0.0] @ 2016-11-17 19:15:23
394---------------------------------------------------------------------------
395Making a USB boot drive or memory card ..........................
396ubuntu
397grub_n_iso "$source" "$target" "$result"
398grub_n_iso lubuntu-16.04.1-desktop-amd64.iso /dev/sdd
399***** tu=/dev/sdd ****************************************************
400selected target partition table: 'gpt'
401mount: /dev/loop0 is write-protected, mounting read-only
402 Lubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64
403mount: /dev/loop0 is write-protected, mounting read-only
404select_boot_system: usb-pack_efi is available
405select_boot_system: usb-pack_efi: using variable 'upefi=false'
406'lubuntu-16.04.1-desktop-amd64.iso' is identified as the source ISO file
407<pre>
408MODEL NAME FSTYPE LABEL MOUNTPOINT SIZE
409Cruzer sdd 15G
410 |-sdd1 ntfs usbdata 3,5G
411 |-sdd2 1M
412 |-sdd3 vfat lub1604164 122M
413 |-sdd4 iso9660 Lubuntu 16.04.1 LTS amd64 874M
414 `-sdd5 ext4 casper-rw 10,5G
415</pre>
416Using the file '/usr/share/mkusb/grub.cfg'
417Clean for a GUID partition table
418GPT fdisk (gdisk) version 1.0.1
419
420Partition table scan:
421 MBR: protective
422 BSD: not present
423 APM: not present
424 GPT: present
425
426Found valid GPT with protective MBR; using GPT.
427
428Command (? for help): This option deletes all partitions and creates a new protective MBR.
429Proceed? (Y/N):
430Command (? for help):
431Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
432PARTITIONS!!
433
434Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdd.
435The operation has completed successfully.
436Wipe the first megabyte (mibibyte) to get a clean boot area
4371024+0 records in
4381024+0 records out
4391048576 bytes (1,0 MB, 1,0 MiB) copied, 0,00227566 s, 461 MB/s
440Wait 5 seconds and a little more ...
441---------------------------------------------------------------------------
442 Selected percentage of remaining space for persistence = 75
443---------------------------------------------------------------------------
444
445preparing /dev/sdd3 ------------------------------------------------
4461024+0 records in
4471024+0 records out
4481048576 bytes (1,0 MB, 1,0 MiB) copied, 0,290228 s, 3,6 MB/s
449umount: /dev/sdd3: not mounted
450mkfs.fat 3.0.28 (2015-05-16)
451/dev/sdd3 has 64 heads and 32 sectors per track,
452hidden sectors 0x1000;
453logical sector size is 512,
454using 0xf8 media descriptor, with 249856 sectors;
455drive number 0x80;
456filesystem has 2 32-bit FATs and 1 sector per cluster.
457FAT size is 1922 sectors, and provides 245980 clusters.
458There are 32 reserved sectors.
459Volume ID is 3cfbdfa9, no volume label.
460
461preparing /dev/sdd1 ------------------------------------------------
4621024+0 records in
4631024+0 records out
4641048576 bytes (1,0 MB, 1,0 MiB) copied, 0,317438 s, 3,3 MB/s
465umount: /dev/sdd1: not mounted
466Cluster size has been automatically set to 4096 bytes.
467Creating NTFS volume structures.
468Creating root directory (mft record 5)
469Creating $MFT (mft record 0)
470Creating $MFTMirr (mft record 1)
471Creating $LogFile (mft record 2)
472Creating $AttrDef (mft record 4)
473Creating $Bitmap (mft record 6)
474Creating $Boot (mft record 7)
475Creating backup boot sector.
476Creating $Volume (mft record 3)
477Creating $BadClus (mft record 8)
478Creating $Secure (mft record 9)
479Creating $UpCase (mft record 0xa)
480Creating $Extend (mft record 11)
481Creating system file (mft record 0xc)
482Creating system file (mft record 0xd)
483Creating system file (mft record 0xe)
484Creating system file (mft record 0xf)
485Creating $Quota (mft record 24)
486Creating $ObjId (mft record 25)
487Creating $Reparse (mft record 26)
488Syncing root directory index record.
489Syncing $Bitmap.
490Syncing $MFT.
491Updating $MFTMirr.
492Syncing device.
493mkntfs completed successfully. Have a nice day.
494preparing /dev/sdd5 ------------------------------------------------
4951024+0 records in
4961024+0 records out
4971048576 bytes (1,0 MB, 1,0 MiB) copied, 1,7128 s, 612 kB/s
498umount: /dev/sdd5: not mounted
499mke2fs 1.42.13 (17-May-2015)
500Creating filesystem with 2743296 4k blocks and 686784 inodes
501Filesystem UUID: 3c0ee31f-b5f2-4b21-8ac8-bb8941c39697
502Superblock backups stored on blocks:
503 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
504
505Allocating group tables: done
506Writing inode tables: done
507Creating journal (32768 blocks): done
508Writing superblocks and filesystem accounting information: done
509
510mount: /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-desktop-amd64.iso is already mounted
511fatlabel: warning - lowercase labels might not work properly with DOS or Windows
512tune2fs 1.42.13 (17-May-2015)
513---------------------------------------------------------------------------
514source=lubuntu-16.04.1-desktop-amd64.iso
515---------------------------------------------------------------------------
516item 60
517umount: /dev/sdd3: not mounted
518mount /dev/sdd3 /tmp/dus.KMlnQuCB3J
519/dev/sdd3 121M 512 121M 1% /tmp/dus.KMlnQuCB3J
520item 65
521umount: /dev/sdd1: not mounted
522/dev/sdd1 3,5G 19M 3,5G 1% /tmp/dus.FkiHYIJh2I
523 BIOS Bootloader: Installing for i386-pc platform.
524Installation finished. No error reported.
525 64-bit bootloader: copy the boot files from the iso file
526looper=/tmp/dus.zAxhAauNxN
527targ1=/tmp/dus.KMlnQuCB3J
528rsync: symlink "/tmp/dus.KMlnQuCB3J/ubuntu" -> "." failed: Operation not permitted (1)
529rsync: symlink "/tmp/dus.KMlnQuCB3J/dists/stable" -> "xenial" failed: Operation not permitted (1)
530rsync: symlink "/tmp/dus.KMlnQuCB3J/dists/unstable" -> "xenial" failed: Operation not permitted (1)
531rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
532rsync: don't worry, symlink errors are *expected*
533because of the target file system.
534Using the file '/tmp/dus.KMlnQuCB3J/boot/grub/grub.cfg'
535 set security upgrade action to 'Display immediately'
536umount: /dev/sdd4: not mounted
537 Please wait while copying and syncing until 'Done' is written ...
538< "lubuntu-16.04.1-desktop-amd64.iso" pv | dd of=/dev/sdd4 bs=4096
539 855MiB 0:02:15 [6,33MiB/s] [================================>] 100%
540218880+0 records in
541218880+0 records out
542896532480 bytes (897 MB, 855 MiB) copied, 148,466 s, 6,0 MB/s
543Syncing the target device ...
544Wait 5 seconds and a little more ...
545<pre>
546parted -s "/dev/sdd" print
547Model: SanDisk Cruzer (scsi)
548Disk /dev/sdd: 16,0GB
549Sector size (logical/physical): 512B/512B
550Partition Table: gpt
551Disk Flags:
552
553Number Start End Size File system Name Flags
554 2 1049kB 2097kB 1049kB primary bios_grub
555 3 2097kB 130MB 128MB fat32 primary boot, esp
556 4 130MB 1046MB 916MB primary
557 5 1046MB 12,3GB 11,2GB ext2 primary
558 1 12,3GB 16,0GB 3746MB ntfs primary msftdata
559
560lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdd"
561MODEL NAME FSTYPE LABEL MOUNTPOINT SIZE
562Cruzer sdd 15G
563 |-sdd1 ntfs usbdata 3,5G
564 |-sdd2 1M
565 |-sdd3 vfat lub1604164 122M
566 |-sdd4 iso9660 Lubuntu 16.04.1 LTS amd64 874M
567 `-sdd5 ext4 casper-rw 10,5G
568</pre>
569 Done :-)
570The target device is ready to use.
571'lubuntu-16.04.1-desktop-amd64.iso'
572was installed
573Cleanup after dus-persistent finished :-)
574Cleanup after dus-persistent finished :-)
575---------------------------------------------------------------------------
576Total time used [by dus-persistent] = 276 s; 00:04:36
577
578
579Check the result (scroll if possible), press Enter to finish
580p_clean:
581live system or temporary superuser permissions
582Cloning,live-only,windows / Persistent-live / Quit (c/l/p/w/q) q
583clean if necessary and return
584sudodus@xenial32 /media/multimed-2/test/mkmkusb/dus $