Command to create Linux Live USB

Introduction

I have created a command to create a Linux Live USB. (Reference: What is Live USB) The executable environment is macOS and Linux.

1. Installation

GitHub

$ git clone https://github.com/hiwm0126/create-live-usb.git ~/.create-live-usb
$ sudo ln -snf ~/.create-live-usb/main.sh /usr/local/bin/create-live-usb

2. How to use

Please prepare the ISO image of your favorite distribution as the ISO image specified by the argument. The example uses Peppermint. The operation is the same for macOS and Linux, but the display is slightly different, so I will introduce both.

2-1. Linux example

$ sudo create-live-usb ~/Download/Peppermint-10-20191210-amd64.iso

==============BLOCK DEVICE INFO=================

NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1  3.8G  0 disk 
└─sda1        8:1    1  3.8G  0 part 
mmcblk0     179:0    0 29.8G  0 disk 
├─mmcblk0p1 179:1    0   63M  0 part 
├─mmcblk0p2 179:2    0    1K  0 part 
├─mmcblk0p5 179:5    0   32M  0 part 
├─mmcblk0p6 179:6    0  256M  0 part /boot
└─mmcblk0p7 179:7    0 29.5G  0 part /

================================================

which device do you want to use?

---device name list---
sda       
mmcblk0   
----------------------

Enter the dvice name : sda <--Enter the device name
1560281088 bytes (1.6 GB, 1.5 GiB) copied, 266 s, 5.9 MB/s 
372+1 records in
372+1 records out
1562378240 bytes (1.6 GB, 1.5 GiB) copied, 266.846 s, 5.9 MB/s

--------------------------------------

Creating Live USB is complete.

2-2. Example of macOS

$ sudo create-live-usb ~/Download/Peppermint-10-20191210-amd64.iso

==============BLOCK DEVICE INFO=================

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         250.8 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.8 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Data     107.7 GB   disk1s1
   2:                APFS Volume Preboot                 83.5 MB    disk1s2
   3:                APFS Volume Recovery                528.1 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4
   5:                APFS Volume Macintosh HD            11.2 GB    disk1s5

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *4.0 GB     disk2
   1:                       0xEF                         2.4 MB     disk2s2


================================================

which device do you want to use?

---device name list---
disk2 
----------------------

Enter the dvice name : disk2 <--Enter the device name
460+0 records in
460+0 records out
1929379840 bytes transferred in 324.378169 secs (5947934 bytes/sec)

--------------------------------------

Creating Live USB is complete.

Recommended Posts

Command to create Linux Live USB
Try to create a new command on linux
How to create a shortcut command for LINUX
linux: create original Terminal command
Linux command # 3
[linux] kill command to kill the process
Make Live USB on Alpine Linux
Linux command # 5
[C language] [Linux] Try to create a simple Linux command * Just add! !!
[Linux] How to use the echo command
How to use the Linux grep command
[Linux convenient command] Try to insert vivid
Linux command list
linux at command
[Linux] Search command
Linux command <Basic 2>
Linux [directory command]
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
[Basic] linux command
Linux [shell command]
[Linux] Introduction to Linux
[Linux] Command / Knowledge
My linux command
Linux command <Basic 1>
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Linux (command memory)
Create a command to encode / decode Splunk base64
Use click to create a sub-sub command --netsted sub-sub command -
Create a command to get the work log
[Linux] Volume configuration command
Linux command cheat sheet
Linux command (sequential update)
Introduce serverspec to Linux
Linux basic command memorandum
Yum command to access MySQL with Python 3 on Linux
How to create a USB that Linux and Win10 installer and winpe can boot UEFI
less command I want to definitely remember this [linux command]
Linux commands to remember
Linux user addition, how to use the useradd command
Linux command [File operation]
[Linux] Basic command summary
How to create a local repository for Linux OS
Linux command for self-collection
linux command error collection 1
Linux command line shortcut
(Remember quickly) How to use the LINUX command line
Add Linux user, how to use useradd command (password specification)
Game distribution to YouTube Live on Arch Linux (Nintendo Switch)
[Tips] Persistence of Kali Linux Live Image with USB memory
How to create an ISO file (CD image) on Linux
linux sar command CPU usage
[Windows] RDP to Windows via Linux
What is Linux? [Command list]
A super introduction to Linux
Alternative to django's dumpdata command