bash-tutorial/tutorial/dd_command_flash_usb.org

33 lines
705 B
Org Mode
Raw Normal View History

2022-07-18 14:23:28 +02:00
#+options: toc:nil num:nil author:nil
2022-07-03 21:06:29 +02:00
** Flashing USB with "dd"
~dd~ is a command to convert and copy a file. It is useful to copy information from a
disk.
2023-02-05 23:20:40 +01:00
It can be used to create bootable USB[fn:1].
2022-07-03 21:06:29 +02:00
Let's say that you need to create a 'live' usb to install or repair a GNU-linux system.
An example with parabola:
2023-02-05 23:20:40 +01:00
** List blocks
#+begin_src sh
lsblk
#+end_src
2022-07-03 21:06:29 +02:00
* First, obtain a ISO image:
https://wiki.parabola.nu/Get_Parabola
* Then, open a shell and use the command
#+begin_example sh
sudo dd if=/home/user/Documents/parabola-2016.11.03-dual.iso of=/dev/sdb1
#+end_example
The ISO image is copied to "sdb1" (USB volume)
2023-02-05 23:20:40 +01:00
* Footnotes
[fn:1] The USB should be formatted as FAT 32