Tuesday, November 27, 2018

Ubuntu 16.04: Mount USB storage on boot



Ubuntu 16.04: Mount USB storage on boot

Use blkid (sudo required) to determine blkid info

$ sudo blkid
<device>: <uuid> <fstype>

Grep UUID of USB device attached to /dev/sdh1.
$ sudo blkid | grep "^/dev/sdh1:"
/dev/sdh1: UUID="e801fc70-a741-48da-b82d-d55b7668a573" TYPE="xfs"

Add UUID mount entry to /dev/fstab.
$ echo 'UUID="e801fc70-a741-48da-b82d-d55b7668a573" /mnt xfs defaults 0 0' \
| sudo tee -a /etc/fstab
Now USB device can be mount automatically on boot.


https://www.hiroom2.com/2016/09/18/ubuntu-16-04-mount-usb-storage-on-boot/
--30--

No comments:

Post a Comment