Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 79489  / 3 Years ago, fri, september 17, 2021, 2:41:36

I've installed Ubuntu 12.04 along with Windows 8.1. When I tried to open the C: drive in Ubuntu a window is popping out saying to run this command:



mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /media/2A36EE3236EDFEA7


After running the command I'm getting the error mount: only root can do that.



What should I do?


More From » mount

 Answers
1

Use (note sudo in front)



sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /media/2A36EE3236EDFEA7


If in future, a program informs you that "only root can do that", "root access required", "super user required", "Permission denied", or similar permissions based problems, you should try sticking sudo in front of the command you're executing.






Mounting a device like Nautilus



If you just want to mount a device from the command line, like it would be mounted if you clicked its icon in the Nautilus sidebar, you can use this command:



udisksctl mount -b /dev/<device>


replacing <device> with your device. This doesn't requrire root access, however will only allow you to do a safe mount, i.e. without any custom mount options and mounting to /media/$USER/<device> only.


[#27728] Saturday, September 18, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
measord

Total Points: 259
Total Questions: 131
Total Answers: 106

Location: Venezuela
Member since Sun, Oct 2, 2022
2 Years ago
;