lobo_tuerto's notes
for greatly improving DX
Blog
Notes
About

Create a Linux live USB

No special apps or some other nonsense required. The CLI already provides everything we need for this task.

📅Date21 September 2018Updated07 February 2020
🏷️
clilinuxusb

Download the Manjaro i3 community edition

Be sure to have an .iso file ready, or download the latest image from here.

If you want to verify the .iso image, you can also download the .sha1, .sha256 and .sig files.

Verify with SHA1 and SHA256

To verify the ISO image against the .sha1 and .sha256 files, you can do this:

sha1sum -c manjaro-i3-18.1.5-191229-linux54.iso.sha1
sha256sum -c manjaro-i3-18.1.5-191229-linux54.iso.sha256

If everything is allright, you’ll see: manjaro-i3-18.1.5-191229-linux54.iso: OK for both of them.

Verify with GPG

Download the keys from the Manjaro developers from GitHub:

wget https://raw.githubusercontent.com/manjaro/packages-core/master/manjaro-keyring/manjaro.gpg

Then import all the public keys into your keyring:

gpg --import manjaro.gpg

Finally, verify the .iso image:

gpg --verify manjaro-i3-18.1.5-191229-linux54.iso.sig

You should see something like:

gpg: assuming signed data in 'manjaro-i3-18.1.5-191229-linux54.iso'
gpg: Signature made Sun 29 Dec 2019 07:38:21 AM CST
gpg:                using RSA key 39F0EC1AE50B37E5F3196F09DAD3B211663CA268
gpg: Good signature from "Bernhard Landauer <oberon@manjaro.org>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 39F0 EC1A E50B 37E5 F319  6F09 DAD3 B211 663C A268

Find the right letter for your device

Insert the stick into a port and get a list of connected devices with this:

sudo fdisk -l

Identify the letter for your drive on the output, in my case the drive I’m looking for is this one:

Disk /dev/sdc: 14.3 GiB, 15376318464 bytes, 30031872 sectors

I can tell because it’s —supposedly— a 16GB device, look at the 14.3 GiB size reported above.

In this example, the letter for the drive is the c from sdc. It could have been b, d or something else.
Just make sure that it is indeed the drive you want to trash.
You won’t be able to recover anything from it once it’s been zeroed.

Zero the bits out of the USB drive

Next, let’s zero the drive out, this serves as a security measure and also it allows you to tell if the drive is still functioning well —if the drive is dying, the process will take an unusually long time, or it’ll get stuck before reaching the end, that’s a sign that you need to get a new USB.

Ok, let’s write zeros all over the USB drive with:

sudo dd if=/dev/zero of=/dev/sdc bs=1M status=progress conv=fdatasync

NOTE: Remember that the command above is considering that the USB is located at: /dev/sdc.
Make sure you have the right path for yours!

That command will report progress back to you.

Copy the ISO image to the USB drive

When finished, go to the directory where you downloaded the .iso file and deploy it to the USB drive like this:

sudo dd if=manjaro-i3-18.1.5-191229-linux54.iso of=/dev/sdc bs=1M \
status=progress conv=fdatasync

That’s it, now you should have a bootable USB with Manjaro Linux in it!


Got comments or feedback?
Follow me on
rev-7175614