Skip to main content
FileSystemsSUSE

Using UUID, udev, fstab to mount USB drive to fixed location

By October 21, 2013No Comments

You may need a particular USB drive or key mounted to a fixed location, adding an entry into the fstab will allow for this but we cannot used the kernel device such as sbd1 as another USB device may use that at another time. To do this will will use the UUID of the file-system. To make sure the USB device is mounted after a system boot correctly we will also need to create udev rule for this.

  • UUID=xxx /usb vfat defaults,users,umask=0 0 0
  • blkid /dev/sdb1
  • SUBSYSTEM==”block”, RUN+=”/bin/mount -a”