diff options
| author | Shipwreckt <me@shipwreckt.co.uk> | 2025-10-31 20:02:14 +0000 |
|---|---|---|
| committer | Shipwreckt <me@shipwreckt.co.uk> | 2025-10-31 20:02:14 +0000 |
| commit | 7a52ddeba2a68388b544f529d2d92104420f77b0 (patch) | |
| tree | 15ddd47457a2cb4a96060747437d36474e4f6b4e /src/archive/linux/Formatting_USB.md | |
| parent | 53d6ae2b5568437afa5e4995580a3fb679b7b91b (diff) | |
Changed from static to 11ty!
Diffstat (limited to 'src/archive/linux/Formatting_USB.md')
| -rw-r--r-- | src/archive/linux/Formatting_USB.md | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/archive/linux/Formatting_USB.md b/src/archive/linux/Formatting_USB.md new file mode 100644 index 0000000..cc7fc12 --- /dev/null +++ b/src/archive/linux/Formatting_USB.md @@ -0,0 +1,56 @@ +--- +title: Formatting USBs With Linux 🔌🔥 +date: 2024-08-23 +layout: linux +tags: + - media-tutorials +--- +Formatting a USB in Linux is easier then [burning an ISO](01BurningIsos) and only needs a few quick commands! + +* * * + +## What you will need 📋 + +* A USB drive +* A computer with Linux 🐧🖥 +* The ability to read instructions and to follow them 🧠 + +* * * + +## Formatting the USB + +1) The first thing you want to do is plug in your USB stick and identify the USB stick's name. + +lsblk + +Normally the USB will be something like sdX; a tip on identifying it is by looking at the size of the USB in the table that lsblk gives you! + +* * * + +2) Now you need to use a program called [fdisk](https://linux.die.net/man/8/fdisk) that will allow you to create a new partition table for the USB, this will format the USB. + +sudo fdisk /dev/sdX + +You will need to press the following keys to make a new partition table for the USB. + +* o - Creates a new DOS partition table +* n - New partition, press enter to all that follows +* w - Writes the partition table + +Give fdisk a minute to write the new partition to the USB. + +* * * + +3) Now is the time to give that partition a file system. You should look into this beforehand to see what file system you want, but I will use fat32 because it works with all operating systems. + +sudo mkfs.fat -F 32 -n "Backup-USB" /dev/sdXx + +The small x represents the number of the partition; the -L flag is used to give the USB stick a name. + +* * * + +## Finished ✅ + +All done! Now you have an empty USB stick you can use for all your files! + +* * * |
