Page 1 of 1

[SOLVED] Root authorization needed to access hard drive

PostPosted: Feb 16th, '14, 20:26
by davidmageia
The Mageia 4 is installed on a SSD and my data are on a different hard disk drive.
This drive seems to be mounted but when I click on it I get this "Authentification is required" and I need to enter the root password.
How can I avoid this step ?

And why is it mounted is the /run/ file and not in the classical one /media or /mnt ?!?

Thanks.

Re: Root authorization is needed to access to a hard drive.

PostPosted: Feb 16th, '14, 20:50
by doktor5000
For the root password, have a look at viewtopic.php?f=41&t=5148

For /run/ vs. /media that is the case since Mageia 3 and with all newer distributions, it's a change upstream in udisks2.
Maybe have a look at https://wiki.archlinux.org/index.php/Ud ... o_.2Fmedia

Re: Root authorization is needed to access to a hard drive.

PostPosted: Feb 17th, '14, 06:56
by yankee495
For a NTFS drive auto mounted in /media/your drive here/ at boot I used the command blkid like this:

Switch to root user in a konsole.

Code: Select all
[john@localhost ~]$ su root
Password: enter root password here
[root@localhost ~]# blkid
/dev/sdc1: LABEL="2TBHDD" UUID="BE823D33823CF18F" TYPE="ntfs" PARTUUID="536a5b38-01"
[root@localhost ~]#


I removed the other drives to make it simple to see the drive I was working with.

Then take the UUID=BE823D33823CF18F and make a line in /etc>fstab like this:

Code: Select all
UUID=BE823D33823CF18F /media/2TBHDD ntfs-3g defaults,nofail,umask=000 0 0


Make a directory in /media, in my case it is called 2TBHDD. This is your mount point.
Use the UUID highlighted in bold to build the line to add to the fstab file. It is located in /etc
This makes it mount it at boot and the nofail option prevents a failed boot if the device is not present.
blkid will give the UUID in quotes, but notice in the fstab file there are no quotes included.

Doks way will allow mounting any drive I guess which is great, but I just mounted my spinner storage drive. My Windows SSD doesn't get mounted unless I want to mount it, and I have to use the password. I'm about ready to format the Windows SSD. I don't use it since I set up Win7 in a VM with Virtualbox.

Re: Root authorization is needed to access to a hard drive.

PostPosted: Feb 17th, '14, 07:20
by yankee495
Hi David,

I just seen this is your first post. Welcome to Mageia!!! Dok is great, probably forgot more than I'll ever know. If you install the kde-rootactions-servicemenu you can right click a text file and select Root Actions>Open as text. This is how I edit fstab.

There are lots of ways to do things, so hang in there. I don't know how new to Linux you are but a konsole won't kill you and be sure to copy the UUID by highlighting, right clicking and copy...you won't miss type it that way and it takes the pain out of using the konsole some what.

Be sure to remove the quotes if you do it this way. You want UUID=BE823D33823CF18F in the fstab file NOT UUID="BE823D33823CF18F"

If you're not new to Linux you may already know this, I'm just trying to explain it all to get it right the first time, and you don't have to wait for another answer.

If you're just new to Mageia you'll love it and I hope this is your biggest problem. Mageia 4 is super nice, they all have little quirks of course, but with a little time you'll get it just the way you want it and it'll just stay that way...like an Energizer...just keeps going and going and going.

I've been trying to check in here and help new guys if a can. Dok and Isadora and the others have so much more knowledge than me and are busy with bigger problems sometimes. Be sure to keep in touch and head on over to the Introduce yourself section and say hello to everyone. If you have other questions just post them and we'll all try, hopefully they're simple and nothing goes kablooie...Good Luck!

Re: Root authorization is needed to access to a hard drive.

PostPosted: Feb 27th, '14, 00:16
by davidmageia
Thanks yankee45 and doktor5000
Actually I choose the solution from doktor5000 with the new file in politik-1.
It works fine.

Re: Root authorization is needed to access to a hard drive.

PostPosted: Feb 27th, '14, 02:38
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks

Re: Root authorization is needed to access to a hard drive.

PostPosted: Feb 28th, '14, 10:03
by davidmageia
When I edit my first post I can just add One letter in the subject... So I can not write [SOLVED] !?!
Sorry if I am to "bad"

Re: Root authorization is needed to access to a hard drive.

PostPosted: Feb 28th, '14, 15:39
by doktor5000
davidmageia wrote:When I edit my first post I can just add One letter in the subject... So I can not write [SOLVED] !?!

Simply shorten it to a meaningful title. I've adjusted it.