Automatically mount usb drive at startup

Find USB Disk UUID

sudo blkid

or

sudo blkid /dev/sdf1 | awk -F '"' '{print $4}'

Edit fstab file

sudo nano /etc/fstab

and add a new line entry such as:

UUID=<disk_uuid>       <mount point>      <type>    <options>        <dump>       <pass>

Example:

UUID=12345678-abcd-1a23-1a23-123456789012       /media/username/myusb      ext4    defaults        0       0

Separate values with spaces or tabs.

Categories: Debian Tags: , , ,
%d bloggers like this: