Mount error: mount failed: File exists

automountingfstabmountunmounting

I am unable to mount my USB:

$ mount /dev/sdb1 /mnt
mount: mount /dev/sdb1 on /mnt failed: File exists

What is the origin of this error and how do I mount my USB?

The partition /dev/sdb1 is not in /etc/fstab

Best Answer

the error means '/dev/sdb1' has already been mounted. in this case it is because you can't mount a filesystem to /mnt you have to specify a folder

su umount /dev/sdb1
cd /mnt
su mkdir usbstick
su mount  /dev/sdb1 /mnt/usbstick
exit

add it to fstab

/dev/sdb1 /mnt/usbstick fat32 noauto,users,rw,umask=0 0 0

change fat32 to whatever the filesystem on the stick is

Related Question