Reply To: device /dev/sdb1 is an internal device and you’re not root

Forum › Forums › New users › New Users and General Questions › device /dev/sdb1 is an internal device and you’re not root › Reply To: device /dev/sdb1 is an internal device and you’re not root

#190984
anti-apXos
Member

    Well, @ninos, you need to unmount the drive first if you want to remount it?

    sudo umount /dev/sdb1

    Then to mount it with user permissions:

    sudo mount /dev/sdb1 /media/sdb1 -o uid=1000,gid=users,dmask=002,fmask=113

    I certainly think it’s easier to use udevil (after modifying the line in /etc/udevil/udevil.conf) to mount a FAT or NTFS partition with user permissions. It can be done with /etc/fstab, but seems a bit weird to me that you would mount something at the system level, but specify some particular user as the owner.

    @Robin The fmask and dmask options used when mounting FAT/NTFS partitions are somewhat different than the systemwide umask that applies to newly created files/directories on Linux filesystems like ext and btrfs. On FAT/NTFS, both files and directories get the same default 777 permissions, so fmask=113 means 664 (rw-rw-r--). This is why you usually want to use separate fmask and dmask options instead of the single umask to mount those partitions.

    "--"