user@debian:~$ sudo ./mkusb-minp -p eoan-desktop-amd64.iso /dev/mmcblk0 This shellsript wraps a safety belt around 'dd' It helps you select the target device in a safe way to avoid overwriting valuable data by mistake. Please double-check at the final checkpoint! [press Enter to continue] Please check that you will clone to the correct target device! mmc-SP32G_0x52460eb1 /dev/mmcblk0 ata-LITEONIT_LMT-128M6M_mSATA_128GB_TW0T8MRJ550854170015 /dev/sda usb-SanDisk_Extreme_AA010425151516420420-0:0 /dev/sdb NAME MODEL FSTYPE LABEL MOUNTPOINT SIZE NAME mmcblk0 iso9660 d-live 10.0.0 st amd64 29.7G mmcblk0 ├─mmcblk0p1 iso9660 d-live 10.0.0 st amd64 825M ├─mmcblk0p1 ├─mmcblk0p2 vfat d-live 10.0.0 st amd64 2.9M ├─mmcblk0p2 └─mmcblk0p3 ext2 persistence 28.9G └─mmcblk0p3 Not a USB device. Do you really want to overwrite /dev/mmcblk0 ? (y/N) y Final checkpoint Do you want to overwrite /dev/mmcblk0 ? (y/N) y mount: /tmp/tmp.TputIWyyxy: WARNING: device write-protected, mounted read-only. #define DISKNAME Lubuntu 19.10 "Eoan Ermine" - Beta amd64 Ubuntu or an Ubuntu family flavour Making persistent live drive of version 19.10 ------------------------------------------------------------------ ***** puer: Persistence for Ubuntu ***** Trying to unmount partitions if mounted on the target device umount: /dev/mmcblk0: not mounted. umount: /dev/mmcblk0p1: not mounted. umount: /dev/mmcblk0p2: not mounted. umount: /dev/mmcblk0p3: not mounted. ------------------------------------------------------------------ Please wait until the process has finished and 'Done' is written 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. Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): Partition number (3,4, default 3): First sector (3371808-62333951, default 3373056): Last sector, +/-sectors or +/-size{K,M,G,T,P} (3373056-62333951, default 62333951): Created a new partition 3 of type 'Linux' and of size 28.1 GiB. Command (m for help): The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy The 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). 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. Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.152093 s, 6.9 MB/s 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. Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. mke2fs 1.44.5 (15-Dec-2018) Discarding device blocks: done Creating filesystem with 7370112 4k blocks and 1843200 inodes Filesystem UUID: 9f0461a9-13b2-4a64-95ad-380818e31864 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Allocating group tables: done Writing inode tables: done Writing superblocks and filesystem accounting information: done Done :-) Press Enter to continue, when you have unplugged the target device '/dev/mmcblk0' (and maybe have plugged it back) 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. Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. NAME MODEL FSTYPE LABEL MOUNTPOINT SIZE NAME mmcblk0 iso9660 Lubuntu 19.10 amd64 29.7G mmcblk0 ├─mmcblk0p1 iso9660 Lubuntu 19.10 amd64 1.6G ├─mmcblk0p1 ├─mmcblk0p2 vfat Lubuntu 19.10 amd64 3.9M ├─mmcblk0p2 └─mmcblk0p3 ext2 casper-rw 28.1G └─mmcblk0p3 user@debian:~$