4

So i've read through other questions but cant find a solution..

I have an externel drive in /dev/sdg and it continually disconnects..

I edited /etc/fstab so that it would auto mount but every time it disconnects the system reads it differently, for example it used to be /dev/sdb then /dev/sdc then /dev/sdd and so one... It remains mounted for quite some time. But when it unmounts I need to click on the file explorer and click on it again for it to mount. This makes it impossible for me to work with programs that continually read data from the drive.

Elder Geek
  • 36,752
Banned_User
  • 1,683

1 Answers1

2

To obtain the UUID of the drive, use the following command:

blkid

Use the UUID of the drive in fstab instead of /dev/sdX. The UUID is static and should remain the same even when the device name changes.

mchid
  • 44,904
  • 8
  • 102
  • 162