Recently I connected my external HDD on my Ubuntu 18.04, but it is showing the error
Unable to Access drive-Not authorized to perform operation.
However, my HDD is working fine on windows.
How can I solve this issue?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
If you happen to have chrome-remote-desktop installed as a Chrome Browser Extension there's a good chance that is the cause of problem.
If so, see Automount when clicking on disks in GUI file manager suddenly stopped working in Ubuntu 18.04 for solution.
Most likely, your drive is formatted with ntfs, the file system of MS Windows. Commonly, problems with access to such partitions is due to the ntfs volume not being "clean", i.e., it was not properly disconnected.
To make sure the disk is clean:
In Ubuntu, wait until you are logged in before connecting the drive. That will make sure the drive is mounted with permissions for the current user.
You will now be able to access the volume without problems.
Also within Ubuntu, you need to carefully disconnect the drive after use. Either use the right-click option in Files (nautilus) to Eject the drive, or fully shut down Ubuntu before disconnecting the drive.
Being in the
chrome-remote-desktop group caused the issue for me.
Removing the group from my user account worked after a reboot.
sudo gpasswd -d $USER chrome-remote-desktop
USB sticks and external hard drives were not mounting in Ubuntu 18.04 after using Chrome Remote Desktop. This post https://askubuntu.com/a/1194771/154545 says running the app as a startup application is a work-around.