LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to mount an internal hdd partition without user authentication? (https://www.linuxquestions.org/questions/slackware-14/how-to-mount-an-internal-hdd-partition-without-user-authentication-4175483883/)

veeall 11-08-2013 07:55 AM

How to mount an internal hdd partition without user authentication?
 
Hello, slackers! :)

I have a slack 14 machine with two hdd-s, one with system gets mounted upon boot by fstab, and the other manually through dolphin. Annoingly, every first time after boot i try to mount a partition of a second hdd, it asks for the user password - how to change that?

I guess udev/policykit i culprit here. It is probably easy to solve, just where to start? Thanks for any info!

Cheers!

Didier Spaier 11-08-2013 08:08 AM

Put a line for it with in /etc/fstab with:
noauto,user
in fourth field.

veeall 11-08-2013 08:29 AM

No-no, i'd better not mount my second hdd by fstab, i'm only occasionally using it, it is mostly just a backup drive. That's kde policykit authentication asking for a password, though my user is already on all required groups: plugdev, wheel. There must be an another way to achieve passwordless mount with dolphin?

Didier Spaier 11-08-2013 08:32 AM

With "noauto" it won't be mounted at boot, only on demand. Or do I miss something?

EDIT plus, you can identify it by LABEL or UUID in the first field so that it always uses the same mount point.

veeall 11-08-2013 08:43 AM

Ok, sorry i didn't realized this about 'noauto'. I was hoping for info on how to configure pol.-kit in kde for painless mounting. Noauto will do, just, i fear the same question arises when i plug in an usb hdd.

Didier Spaier 11-08-2013 08:46 AM

Quote:

Originally Posted by veeall (Post 5060785)
Ok, sorry i didn't realized this about 'noauto'. I was hoping for info on how to configure pol.-kit in kde for painless mounting. Noauto will do, just, i fear the same question arises when i plug in an usb hdd.

I don't know how pol.-kit works. Of course using fstab is only handy if you use always the same devices and there are not too many.

PS identifying devices by label or uuid is mostly useful for removable ones, like USB HDD or USB sticks.

jon lee 11-08-2013 10:07 AM

I believe USB HDDs will mount just fine.
You can always use su in a terminal and do a mount by hand.
Ex:
mkdir /mnt/sda2
mount -t ext3 /dev/sda2 /mnt/sda2

....

http://en.wikipedia.org/wiki/Filesystem_in_Userspace
http://fuse.sourceforge.net/


All times are GMT -5. The time now is 03:43 AM.