15
I connected a new drive. How do I mount it and access the files?
Loading...
Q&A · Answered
I connected a new drive. How do I mount it and access the files?
Accepted answer
# List available drives
lsblk
fdisk -l
# Create mount point
sudo mkdir /mnt/mydrive
# Mount drive
sudo mount /dev/sdb1 /mnt/mydrive
# Unmount
sudo umount /mnt/mydrive
# Auto-mount on boot (add to /etc/fstab)
/dev/sdb1 /mnt/mydrive ext4 defaults 0 2Say what you tried, not only what worked — the next person needs the reasoning. Code goes in a fenced block.