From 0c7e4557a82ed9e9a0cbfc2ebbf02b170192a006 Mon Sep 17 00:00:00 2001 From: DocRock3r Date: Fri, 16 May 2025 16:58:49 +0000 Subject: [PATCH] Update Tutorials/automount_drive_at_boot.md Signed-off-by: DocRock3r --- Tutorials/automount_drive_at_boot | 0 Tutorials/automount_drive_at_boot.md | 32 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) delete mode 100644 Tutorials/automount_drive_at_boot create mode 100644 Tutorials/automount_drive_at_boot.md diff --git a/Tutorials/automount_drive_at_boot b/Tutorials/automount_drive_at_boot deleted file mode 100644 index e69de29..0000000 diff --git a/Tutorials/automount_drive_at_boot.md b/Tutorials/automount_drive_at_boot.md new file mode 100644 index 0000000..2a3a06d --- /dev/null +++ b/Tutorials/automount_drive_at_boot.md @@ -0,0 +1,32 @@ +## find the location of the drive using `lsblk` +- ex. `/dev/sdb` + +## make a new partition on the disk +- `fdisk /dev/[location of hdd]` + - ex. `fdisk /dev/sdb` +- `n` to make a new partiton +`w` to save changes + +## confirm that new partition was created +- `lsblk` + - ex. `/dev/sdb1` + +## make a file system on the partiton +- `mkfs -t ext4 /dev/[location of partition]` + - ex. `mkfs -t ext4 /dev/sdb1` + +## make directory to mount HDD + - `sudo mkdir /mnt/hdd` + +## get uuid for drive to be mounted +- `lsblk -fs` + +## make a backup of /etc/fstab +- `sudo cp /etc/fstab /etc/fstab.bk` + +## add new harddrive to /etc/fstab +- `sudo nano /etc/fstab` +- add the line `UUID=[drive UUID] [mount location] ext4 defaults,auto,rw 0 0` + - ex. `UUID=4579acc6-e00d-433b-8087-0a75506e7a9c /mnt/hdd ext4 defaults,auto,rw 0 0` + +## restart system to confirm that drive mounts at boot