- Attach the USB drive to computer.
- Note the ID of the device
# use lsblk to list the devices lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 4K 1 loop /snap/bare/5 loop1 7:1 0 97.7M 1 loop /snap/core/12726 sda 8:0 0 931.5G 0 disk └─sda1 8:1 0 931.5G 0 part /media/ncdrive mmcblk0 179:0 0 29.7G 0 disk ├─mmcblk0p1 179:1 0 256M 0 part /boot/firmware └─mmcblk0p2 179:2 0 29.5G 0 part / # use blkid to find the ID of the device blkid /dev/sda1 /dev/sda1: UUID="e85c5696-c68a-41ab-9a63-98bd6e6fa1e8" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="3e976d81-01"
- Add the device into
/etc/fstab
UUID=e85c5696-c68a-41ab-9a63-98bd6e6fa1e8 /media/ncdrive ext4 defaults 0 0
Last active
March 11, 2022 04:50
-
-
Save snambi/ff38f0f3914ffe1eb3401e0cad9a0778 to your computer and use it in GitHub Desktop.
Add an external USB drive permanently to Ubuntu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment