Hello all. I'm running Raspbian and have a USB drive that I could not get to properly auto-mount despite trying numerous ways from various sources/tutorials. I gave up and just manually mounted the drive via the below command...
Code: Select all
sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 mynetworkdrive
Which gave me the expected output from the df command...
Code: Select all
/dev/sda1 1953511420 716375380 1237136040 37% /home/pi/mynetworkdrive
I thought this was fine and would only require manual intervention whenever the Pi was rebooted. However, I would sometimes loose connection to my DLNA client. I ssh'd into the Pi and could see that Raspbian seemed to auto-mount the already mounted drive where I would see the following df output...
Code: Select all
/dev/sda1 1953511420 716375380 1237136040 37% /home/pi/mynetworkdrive
/dev/sdb1 1953511420 716375380 1237136040 37% /media/pi/Seagate Backup Plus Drive
I would umount them both and then manually remount the drive and all was well. The auto-mounting happens randomly and can happen within a few hours of mounting it or even several days later. I removed all auto-mounting commands from /etc/fstab once I could not get it to properly mount to the mynetworkdrive folder.
Is there any way to prevent it from auto-mounting or anything that will cause it to see that the drive has already been mounted and not auto-mount it?
Thanks!