I never found out what "usefree" does, or why linux tried to automatically mount the devices in the first place.
However, I did figure out how to mount the devices, so in case anyone else (inexperienced, like myself) stryggle with this, I managade to manually mount the devices and afterwards learned to automate this.
I first made three new directories (I chose to let the directory names of the mount points match the names of the device files):
sudo mkdir /media/sda1
sudo mkdir /media/sdb1
sudo mkdir /media/sdc1
I then manually mounted my USB devices (I have 3) with:
sudo mount -t vfat /dev/sda1 /media/sda1/
sudo mount -t vfat /dev/sdb1 /media/sda2/
sudo mount -t vfat /dev/sdc1 /media/sda3/
This was, fine, but I still had to manually mount and unmount the external devices. I added the following lines to fstab:
/dev/sda1 /media/sda1 vfat users,rw,noauto 0 0
/dev/sdb1 /media/sdb1 vfat users,rw,noauto 0 0
/dev/sdc1 /media/sdc1 vfat users,rw,noauto 0 0
With this configuration, the devices mount automatically, so this works pretty well.
However, I still have to unmount the devices manually. If I unplug a device and then plug it in again, I get the same old error message, probably because I haven't set up any more mount points. If I unmount the device and then reconnect it, it mounts fine.
Is there a way of having the devices unmount automatically as I unplug them. This would be ultimately convenient.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.