[SOLVED] Root authorization needed to access hard drive

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Root authorization needed to access hard drive

Postby davidmageia » Feb 16th, '14, 20:26

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.
Last edited by doktor5000 on Feb 28th, '14, 15:37, edited 1 time in total.
Reason: adjusted thread title, marked SOLVED
davidmageia
 
Posts: 21
Joined: Feb 16th, '14, 20:22

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

Postby doktor5000 » Feb 16th, '14, 20:50

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby yankee495 » Feb 17th, '14, 06:56

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.
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA

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

Postby yankee495 » Feb 17th, '14, 07:20

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!
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA

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

Postby davidmageia » Feb 27th, '14, 00:16

Thanks yankee45 and doktor5000
Actually I choose the solution from doktor5000 with the new file in politik-1.
It works fine.
davidmageia
 
Posts: 21
Joined: Feb 16th, '14, 20:22

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

Postby doktor5000 » Feb 27th, '14, 02:38

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby davidmageia » Feb 28th, '14, 10:03

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"
davidmageia
 
Posts: 21
Joined: Feb 16th, '14, 20:22

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

Postby doktor5000 » Feb 28th, '14, 15:39

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest