Mounting an External Hard Drive in a Raspberry Pi

Опубликовано: 15 Февраль 2024
на канале: Data Slinger
5,623
102

Walkthrough of:
How to identify your external hard drive
Mount your external hard drive
Edit fstab to persist the mount through reboots/shutdowns
Create a symbolic link for convinience

Commands used:
blkid - to get UUID of External Hard Drive
sudo fdisk -l -to check current location and size of drive
sudo mkdir /mnt/HD_Data - to create a location to mount the drive
sudo nano /etc/fstab - to edit where the drive is mounted on start up
ln -s /mnt/HD_Data ~/data - to create a symbolic link to a directory in your home directory

If you do not see the UUID when running blkid (External SSD Not Showing Up) try:
blkid /dev/sd..rest of path to drive

If you are trying to unmount the drive and it says it is busy:
make sure you are not currently cd'd into the mount Doh!