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
|
|
|
|
|
2023-02-06 12:23:22 +01:00
|
|
|
Please note that you should take a look to the USB device before create the
|
|
|
|
bootable device.
|
|
|
|
|
2023-02-05 23:20:40 +01:00
|
|
|
#+begin_src sh
|
|
|
|
lsblk
|
|
|
|
#+end_src
|
|
|
|
|
2023-02-06 12:23:22 +01:00
|
|
|
Then, identify the device id (sdb1 in the example)
|
|
|
|
|
|
|
|
** Obtain a ISO image:
|
|
|
|
|
|
|
|
- [[https://trisquel.info/en/download][Trisquel]]
|
|
|
|
- [[https://wiki.parabola.nu/Get_Parabola][Parabola GNU-Linux]]
|
|
|
|
- [[https://pureos.net/download/][PureOS]]
|
|
|
|
|
|
|
|
** open a shell and use dd to flash the device
|
|
|
|
|
2022-07-03 21:06:29 +02:00
|
|
|
#+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
|
|
|
|
|
2023-02-06 12:23:22 +01:00
|
|
|
[fn:1] The USB should be formatted as FAT 32. You may use [[xhttps://gparted.org/][GParted]] for that
|
|
|
|
purpose
|