2 %
\93\8c\8b\9e ReportLab Generated PDF document http://www.reportlab.com
5 /F1 2 0 R /F2 3 0 R /F3 4 0 R /F4 5 0 R /F5 7 0 R /F6 8 0 R
10 /BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
15 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding /Name /F2 /Subtype /Type1 /Type /Font
20 /BaseFont /Courier-Bold /Encoding /WinAnsiEncoding /Name /F3 /Subtype /Type1 /Type /Font
25 /BaseFont /Courier /Encoding /WinAnsiEncoding /Name /F4 /Subtype /Type1 /Type /Font
30 /Contents 22 0 R /MediaBox [ 0 0 595.2756 841.8898 ] /Parent 21 0 R /Resources <<
31 /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
32 >> /Rotate 0 /Trans <<
40 /BaseFont /ZapfDingbats /Name /F5 /Subtype /Type1 /Type /Font
45 /BaseFont /Helvetica-Oblique /Encoding /WinAnsiEncoding /Name /F6 /Subtype /Type1 /Type /Font
50 /Contents 23 0 R /MediaBox [ 0 0 595.2756 841.8898 ] /Parent 21 0 R /Resources <<
51 /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
52 >> /Rotate 0 /Trans <<
60 /Contents 24 0 R /MediaBox [ 0 0 595.2756 841.8898 ] /Parent 21 0 R /Resources <<
61 /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
62 >> /Rotate 0 /Trans <<
70 /Outlines 13 0 R /PageLabels 25 0 R /PageMode /UseNone /Pages 21 0 R /Type /Catalog
75 /Author () /CreationDate (D:20190712143033+00'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20190712143033+00'00') /Producer (ReportLab PDF Library - www.reportlab.com)
76 /Subject (\(unspecified\)) /Title (Simple script to create persistent Live USB drive) /Trapped /False
81 /Count 9 /First 14 0 R /Last 20 0 R /Type /Outlines
86 /Count 1 /Dest [ 6 0 R /XYZ 62.69291 707.0236 0 ] /First 15 0 R /Last 15 0 R /Next 16 0 R /Parent 13 0 R
92 /Dest [ 6 0 R /XYZ 62.69291 656.0236 0 ] /Parent 14 0 R /Title (Dependencies)
97 /Count 2 /Dest [ 6 0 R /XYZ 62.69291 400.8236 0 ] /First 17 0 R /Last 18 0 R /Next 19 0 R /Parent 13 0 R
98 /Prev 14 0 R /Title (Usage)
103 /Dest [ 6 0 R /XYZ 62.69291 367.8236 0 ] /Next 18 0 R /Parent 16 0 R /Title (Identify USB device)
108 /Dest [ 9 0 R /XYZ 62.69291 390.6236 0 ] /Parent 16 0 R /Prev 17 0 R /Title (Linux install image)
113 /Dest [ 9 0 R /XYZ 62.69291 294.6236 0 ] /Next 20 0 R /Parent 13 0 R /Prev 16 0 R /Title (Running disk_creator)
118 /Dest [ 10 0 R /XYZ 62.69291 765.0236 0 ] /Parent 13 0 R /Prev 19 0 R /Title (Testing it worked)
123 /Count 3 /Kids [ 6 0 R 9 0 R 10 0 R ] /Type /Pages
131 1 0 0 1 0 0 cm BT /F1 12 Tf 14.4 TL ET
133 1 0 0 1 62.69291 741.0236 cm
136 BT 1 0 0 1 0 4 Tm /F2 20 Tf 24 TL 3.754882 0 Td (Simple script to create persistent Live USB drive) Tj T* -3.754882 0 Td ET
140 1 0 0 1 62.69291 719.0236 cm
142 BT 1 0 0 1 0 2 Tm 12 TL /F1 10 Tf 0 0 0 rg (Will create a live usb drive with persistence and a mass storage area useable by windows OSs.) Tj T* ET
146 1 0 0 1 62.69291 686.0236 cm
148 BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (Installation) Tj T* ET
152 1 0 0 1 62.69291 668.0236 cm
155 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Clone this repository, or download the 'disk_creator.sh' file.) Tj T* ET
159 1 0 0 1 62.69291 638.0236 cm
161 BT 1 0 0 1 0 3 Tm 18 TL /F2 15 Tf 0 0 0 rg (Dependencies) Tj T* ET
165 1 0 0 1 62.69291 626.0236 cm
168 1 0 0 1 62.69291 626.0236 cm
171 1 0 0 1 62.69291 614.0236 cm
173 BT /F1 10 Tf 12 TL ET
178 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
185 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (bash) Tj T* ET
192 1 0 0 1 62.69291 608.0236 cm
195 1 0 0 1 62.69291 596.0236 cm
197 BT /F1 10 Tf 12 TL ET
202 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
209 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (sfdisk) Tj T* ET
216 1 0 0 1 62.69291 590.0236 cm
219 1 0 0 1 62.69291 578.0236 cm
221 BT /F1 10 Tf 12 TL ET
226 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
233 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (losetup) Tj T* ET
240 1 0 0 1 62.69291 572.0236 cm
243 1 0 0 1 62.69291 560.0236 cm
245 BT /F1 10 Tf 12 TL ET
250 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
257 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (ntfs3g) Tj T* ET
264 1 0 0 1 62.69291 554.0236 cm
267 1 0 0 1 62.69291 542.0236 cm
269 BT /F1 10 Tf 12 TL ET
274 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
281 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (dosfstools) Tj T* ET
288 1 0 0 1 62.69291 536.0236 cm
291 1 0 0 1 62.69291 524.0236 cm
293 BT /F1 10 Tf 12 TL ET
298 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
305 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (awk) Tj T* ET
312 1 0 0 1 62.69291 518.0236 cm
315 1 0 0 1 62.69291 506.0236 cm
317 BT /F1 10 Tf 12 TL ET
322 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
329 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (bc) Tj T* ET
336 1 0 0 1 62.69291 506.0236 cm
339 1 0 0 1 62.69291 488.0236 cm
342 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (The linux kernel must be compiled with support for iso9660 file systems.) Tj T* ET
346 1 0 0 1 62.69291 458.0236 cm
349 BT 1 0 0 1 0 14 Tm /F1 10 Tf 12 TL 1.124987 Tw (On debian based distributions most of these will be installed already, just in case here is how to install) Tj T* 0 Tw (them:) Tj T* ET
353 1 0 0 1 62.69291 412.8236 cm
360 .662745 .662745 .662745 RG
362 .960784 .960784 .862745 rg
363 n -6 -6 468.6898 36 re B*
366 .960784 .960784 .862745 rg
368 .960784 .960784 .862745 rg
370 BT 1 0 0 1 0 14 Tm 12 TL /F3 10 Tf 0 0 .501961 rg ($) Tj /F4 10 Tf 0 0 0 rg ( sudo apt update) Tj T* /F3 10 Tf 0 0 .501961 rg ($) Tj /F4 10 Tf 0 0 0 rg ( sudo apt install ntfs-3g util-linux dosfstools bash gawk bc) Tj T* ET
377 1 0 0 1 62.69291 379.8236 cm
379 BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (Usage) Tj T* ET
383 1 0 0 1 62.69291 349.8236 cm
385 BT 1 0 0 1 0 3 Tm 18 TL /F2 15 Tf 0 0 0 rg (Identify USB device) Tj T* ET
389 1 0 0 1 62.69291 331.8236 cm
392 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (List all currently plugged in block devices, you might see something like this:) Tj T* ET
396 1 0 0 1 62.69291 82.62362 cm
403 .662745 .662745 .662745 RG
405 .960784 .960784 .862745 rg
406 n -6 -6 468.6898 240 re B*
409 .960784 .960784 .862745 rg
411 .960784 .960784 .862745 rg
413 .960784 .960784 .862745 rg
415 .960784 .960784 .862745 rg
417 .960784 .960784 .862745 rg
419 .960784 .960784 .862745 rg
421 .960784 .960784 .862745 rg
423 .960784 .960784 .862745 rg
425 .960784 .960784 .862745 rg
427 .960784 .960784 .862745 rg
429 .960784 .960784 .862745 rg
431 .960784 .960784 .862745 rg
433 .960784 .960784 .862745 rg
435 .960784 .960784 .862745 rg
437 .960784 .960784 .862745 rg
439 .960784 .960784 .862745 rg
441 .960784 .960784 .862745 rg
443 .960784 .960784 .862745 rg
445 .960784 .960784 .862745 rg
447 BT 1 0 0 1 0 218 Tm 12 TL /F3 10 Tf 0 0 .501961 rg ($) Tj /F4 10 Tf 0 0 0 rg ( lsblk) Tj T* .501961 .501961 .501961 rg (loop0 7:0 0 54.4M 1 loop /snap/core18/1055) Tj T* (loop1 7:1 0 4M 1 loop /snap/gnome-calculator/352) Tj T* (loop2 7:2 0 1008K 1 loop /snap/gnome-logs/57) Tj T* (loop3 7:3 0 140.7M 1 loop /snap/gnome-3-26-1604/90) Tj T* (loop4 7:4 0 35.3M 1 loop /snap/gtk-common-themes/1198) Tj T* (loop5 7:5 0 14.8M 1 loop /snap/gnome-characters/292) Tj T* (loop6 7:6 0 88.4M 1 loop /snap/core/7169) Tj T* (loop7 7:7 0 54.4M 1 loop /snap/core18/1049) Tj T* (loop8 7:8 0 149.9M 1 loop /snap/gnome-3-28-1804/67) Tj T* (loop9 7:9 0 149.9M 1 loop /snap/gnome-3-28-1804/63) Tj T* (loop10 7:10 0 3.7M 1 loop /snap/gnome-system-monitor/100) Tj T* (loop11 7:11 0 14.8M 1 loop /snap/gnome-characters/296) Tj T* (loop12 7:12 0 3.7M 1 loop /snap/gnome-system-monitor/95) Tj T* (loop13 7:13 0 2.3M 1 loop /snap/gnome-calculator/260) Tj T* (loop14 7:14 0 1008K 1 loop /snap/gnome-logs/61) Tj T* (loop15 7:15 0 88.5M 1 loop /snap/core/7270) Tj T* (loop16 7:16 0 14.5M 1 loop /snap/gnome-logs/45) Tj T* (loop17 7:17 0 4M 1 loop /snap/gnome-calculator/406) Tj T* ET
461 1 0 0 1 0 0 cm BT /F1 12 Tf 14.4 TL ET
463 1 0 0 1 62.69291 571.8236 cm
470 .662745 .662745 .662745 RG
472 .960784 .960784 .862745 rg
473 n -6 -6 468.6898 192 re B*
476 .960784 .960784 .862745 rg
478 .960784 .960784 .862745 rg
480 .960784 .960784 .862745 rg
482 .960784 .960784 .862745 rg
483 n 0 132 255.22 12 re f*
484 .960784 .960784 .862745 rg
485 n 0 120 255.22 12 re f*
486 .960784 .960784 .862745 rg
488 .960784 .960784 .862745 rg
489 n 0 96 255.22 12 re f*
490 .960784 .960784 .862745 rg
491 n 0 84 297.22 12 re f*
492 .960784 .960784 .862745 rg
493 n 0 72 363.22 12 re f*
494 .960784 .960784 .862745 rg
496 .960784 .960784 .862745 rg
497 n 0 48 255.22 12 re f*
498 .960784 .960784 .862745 rg
499 n 0 36 363.22 12 re f*
500 .960784 .960784 .862745 rg
502 .960784 .960784 .862745 rg
503 n 0 12 315.22 12 re f*
504 .960784 .960784 .862745 rg
505 n 0 0 267.22 12 re f*
506 BT 1 0 0 1 0 170 Tm 12 TL /F4 10 Tf .501961 .501961 .501961 rg (loop18 7:18 0 42.8M 1 loop /snap/gtk-common-themes/1313) Tj T* (loop19 7:19 0 140.7M 1 loop /snap/gnome-3-26-1604/88) Tj T* (sda 8:0 0 7.3T 0 disk) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (sda1 8:1 0 128M 0 part) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (sda2 8:2 0 7.3T 0 part) Tj T* (sdb 8:16 0 9.1T 0 disk) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (sdb1 8:17 0 9.1T 0 part) Tj T* ( ) Tj /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (mass-swap 253:0 0 128G 0 lvm [SWAP]) Tj T* ( ) Tj /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (mass-storage 253:1 0 8T 0 lvm /mnt/mass/storage) Tj T* (sdc 8:32 0 9.1T 0 disk) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (sdc1 8:33 0 9.1T 0 part) Tj T* ( ) Tj /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (mass-scratch 253:2 0 2T 0 lvm /mnt/mass/scratch) Tj T* (nvme0n1 259:0 0 238.5G 0 disk) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (nvme0n1p1 259:1 0 512M 0 part /boot/efi) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (nvme0n1p2 259:2 0 238G 0 part /) Tj T* ET
513 1 0 0 1 62.69291 551.8236 cm
516 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Plug in your usb drive and list all block devices again:) Tj T* ET
520 1 0 0 1 62.69291 434.6236 cm
527 .662745 .662745 .662745 RG
529 .960784 .960784 .862745 rg
530 n -6 -6 468.6898 108 re B*
533 .960784 .960784 .862745 rg
535 .960784 .960784 .862745 rg
537 .960784 .960784 .862745 rg
539 .960784 .960784 .862745 rg
541 .960784 .960784 .862745 rg
543 .960784 .960784 .862745 rg
544 n 0 24 315.22 12 re f*
545 .960784 .960784 .862745 rg
546 n 0 12 267.22 12 re f*
547 .960784 .960784 .862745 rg
549 BT 1 0 0 1 0 86 Tm 12 TL /F3 10 Tf 0 0 .501961 rg ($) Tj /F4 10 Tf 0 0 0 rg ( lsblk) Tj T* .501961 .501961 .501961 rg (.) Tj T* (.) Tj T* (.) Tj T* (nvme0n1 259:0 0 238.5G 0 disk) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (nvme0n1p1 259:1 0 512M 0 part /boot/efi) Tj T* /F5 10 Tf 12 TL (nn) Tj /F4 10 Tf 12 TL (nvme0n1p2 259:2 0 238G 0 part /) Tj T* (sdd 8:48 1 7.5G 0 disk) Tj T* ET
556 1 0 0 1 62.69291 402.6236 cm
558 BT 1 0 0 1 0 14 Tm 1.310542 Tw 12 TL /F1 10 Tf 0 0 0 rg (Notice the new device, ) Tj /F6 10 Tf 0 0 0 rg (sdd) Tj /F1 10 Tf 0 0 0 rg (. It may be called differently on your machine, but will likely be named ) Tj /F6 10 Tf 0 0 0 rg (sdX) Tj /F1 10 Tf 0 0 0 rg T* 0 Tw (where ) Tj /F6 10 Tf 0 0 0 rg (X) Tj /F1 10 Tf 0 0 0 rg ( is a letter. The full name of your usb device is ) Tj /F6 10 Tf 0 0 0 rg (/dev/sdX) Tj /F1 10 Tf 0 0 0 rg (.) Tj T* ET
562 1 0 0 1 62.69291 372.6236 cm
564 BT 1 0 0 1 0 3 Tm 18 TL /F2 15 Tf 0 0 0 rg (Linux install image) Tj T* ET
568 1 0 0 1 62.69291 306.6236 cm
570 BT 1 0 0 1 0 50 Tm .32686 Tw 12 TL /F1 10 Tf 0 0 0 rg (Find the installer image for your favourite debian based distribution. You can typically find these things by) Tj T* 0 Tw 1.16622 Tw (searching 'get <) Tj (distribution_name) Tj (>) Tj (', 'download <) Tj (distribution_name) Tj (>) Tj (' or 'install <) Tj (distribution_name) Tj (>) Tj (' with) Tj T* 0 Tw .209986 Tw (your favourite search engine. You can also look for tutorials about how to install that distribution. They will) Tj T* 0 Tw .97186 Tw (likely include instructions about getting the installer image. Download the image and make a note of it's) Tj T* 0 Tw (location.) Tj T* ET
574 1 0 0 1 62.69291 273.6236 cm
576 BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (Running disk_creator) Tj T* ET
580 1 0 0 1 62.69291 255.6236 cm
583 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Run 'disk_creator.sh' with root privileges:) Tj T* ET
587 1 0 0 1 62.69291 222.4236 cm
594 .662745 .662745 .662745 RG
596 .960784 .960784 .862745 rg
597 n -6 -6 468.6898 24 re B*
600 .960784 .960784 .862745 rg
602 BT 1 0 0 1 0 2 Tm 12 TL /F3 10 Tf 0 0 .501961 rg ($) Tj /F4 10 Tf 0 0 0 rg ( sudo /path/to/disk_creator.sh /path/to/installer/image.iso /dev/sdX) Tj T* ET
609 1 0 0 1 62.69291 190.4236 cm
612 BT 1 0 0 1 0 14 Tm /F1 10 Tf 12 TL 8.002126 Tw (For instance, if your usb device is '/dev/sdd' and your installer image is located at) Tj T* 0 Tw ('/home/user/Downloads/ubuntu-18.04-amd64.iso' run:) Tj T* ET
616 1 0 0 1 62.69291 133.2236 cm
623 .662745 .662745 .662745 RG
625 .960784 .960784 .862745 rg
626 n -6 -6 468.6898 48 re B*
629 .960784 .960784 .862745 rg
631 .960784 .960784 .862745 rg
633 .960784 .960784 .862745 rg
635 BT 1 0 0 1 0 26 Tm 12 TL /F3 10 Tf 0 0 .501961 rg ($) Tj /F4 10 Tf 0 0 0 rg ( sudo /path/to/disk_creator.sh ) Tj /F3 10 Tf .733333 .4 .133333 rg (\\) Tj T* /F4 10 Tf 0 0 0 rg (>) Tj ( /home/user/Downloads/ubuntu-18.04-amd64.iso ) Tj /F3 10 Tf .733333 .4 .133333 rg (\\) Tj T* /F4 10 Tf 0 0 0 rg (>) Tj ( /dev/sdd) Tj T* ET
642 1 0 0 1 62.69291 89.22362 cm
645 BT 1 0 0 1 0 26 Tm /F1 10 Tf 12 TL .679988 Tw (The disk_creator will now run for some time while it copies things to the usb drive. Once it is done, read) Tj T* 0 Tw 2.866651 Tw (through the output it produced. If there are no obvious error messages, it should have completed) Tj T* 0 Tw (successfully.) Tj T* ET
656 1 0 0 1 0 0 cm BT /F1 12 Tf 14.4 TL ET
658 1 0 0 1 62.69291 744.0236 cm
660 BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (Testing it worked) Tj T* ET
664 1 0 0 1 62.69291 714.0236 cm
667 BT 1 0 0 1 0 14 Tm /F1 10 Tf 12 TL .20881 Tw (The USB drive should now have three partitions. One each of NTFS, ext4 and FAT32. When plugged into) Tj T* 0 Tw (a windows machine, one of them should appear as a large empty partition labeled 'usbdata'.) Tj T* ET
671 1 0 0 1 62.69291 684.0236 cm
674 BT 1 0 0 1 0 14 Tm /F1 10 Tf 12 TL .625777 Tw (You should be able to boot from the USB drive, into whatever installer image you provided. If it does so,) Tj T* 0 Tw (test that a test file created on the desktop remains there after a reboot.) Tj T* ET
678 1 0 0 1 62.69291 666.0236 cm
681 BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (If all these tests are successful, everything should have worked.) Tj T* ET
685 1 0 0 1 62.69291 636.0236 cm
688 BT 1 0 0 1 0 14 Tm /F1 10 Tf 12 TL .775251 Tw (If not, read the contents of the 'disk_creator.sh' script and try to understand what it is doing. It is heavily) Tj T* 0 Tw (commented.) Tj T* ET
696 /Nums [ 0 26 0 R 1 27 0 R 2 28 0 R ]
748 [<46ce85594f1920693247adaaa9e2eec5><46ce85594f1920693247adaaa9e2eec5>]
749 % ReportLab generated PDF document -- digest (http://www.reportlab.com)