Welcome!

Please read this important information about MX sources lists.
News
  • MX Linux on social media: here
  • Mepis support still here
Current releases
  • MX-17 beta 1 release info here
  • MX-16.1 release info here
  • antiX-17 release info here
    New users
    • Please read this first, and don't forget to add system and hardware information to posts!
    • Read Forum Rules

Mounting 8tb HDD requires root pwd?

Message
Author
jbloggs
Forum Novice
Forum  Novice
Posts: 4
Joined: Tue Aug 08, 2017 9:11 pm

Mounting 8tb HDD requires root pwd?

#1 Postby jbloggs » Fri Aug 11, 2017 7:34 pm

I'm running MX -16 x64 (XFCE) from a 16 gb Lexar Plug'n'Stay usb thumb drive.

I have an 8tb HDD which is in a hot-swap bay.

When I connect this drive MX requires the root password. Permissions are correct ( same user-name etc as thumb drive)

Have MX on my laptop and my main PC ( HDD installs) and have had it on the PC in question on an old HDD. All work fine - no need for root password to access other drives.

Suggestions?

Thanks

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 13645
Age: 59
Joined: Fri Dec 15, 2006 8:07 pm

Re: Mounting 8tb HDD requires root pwd?

#2 Postby Stevo » Fri Aug 11, 2017 7:38 pm

I'm pretty sure you can get rid of the password by adding the drive in disk-manager.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 6632
Joined: Sun Dec 16, 2007 1:17 pm

Re: Mounting 8tb HDD requires root pwd?

#3 Postby dolphin_oracle » Fri Aug 11, 2017 10:02 pm

jbloggs wrote:I'm running MX -16 x64 (XFCE) from a 16 gb Lexar Plug'n'Stay usb thumb drive.

I have an 8tb HDD which is in a hot-swap bay.

When I connect this drive MX requires the root password. Permissions are correct ( same user-name etc as thumb drive)

Have MX on my laptop and my main PC ( HDD installs) and have had it on the PC in question on an old HDD. All work fine - no need for root password to access other drives.

Suggestions?

Thanks


some more info would be good.

how is the thumb drive formated?

how is the HDD formated?

can the "installed" MX utilize the drive in the hot swap bay without the root password? If so, is this drive defined in fstab and if so, please post the contents of the fstab.

Its quite possible that the thumb drive, which udev will determine is removable, is mountable as a user but that HDD is showing up as an "internal" non-removable drive, which by default requires root access, or at least some setup for user access, depending on how the drive is formatted.
http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 15 32 bit (streaming media player)
acer c720p chromebook - chromeos / MX15-64 (custom snapshot) live USB.
lenovo s21e - antiX-16 MX16(live-usb)

jbloggs
Forum Novice
Forum  Novice
Posts: 4
Joined: Tue Aug 08, 2017 9:11 pm

Re: Mounting 8tb HDD requires root pwd?

#4 Postby jbloggs » Sat Aug 12, 2017 10:34 pm

Thanks for replies

info hereunder:-

From GParted

Model : Lexar USB Flash Drive
Size 14.91 GiB
Path /dev/sda1

Partition Table msdos
heads 255
sectors/track 63
Cylinders 1945
Total Sectors 31258624
Sector Size 512

-------------
Partitions

/dev/sda1 ext4 12.87 GiB
/dev/sda2 Linux swap 2.03 Gib

-------------------


8 TB HDD from GPARTED

Model : ATA ST8000VN0022-2EL
Size 7.28TB
Path /dev/sdb

Partition Table
heads 255
sectors/track 63
Cylinders 972801
Total Sectors 15628053168
Sector Size 512

-------------
Partitions

/dev/sdb1 8TB file system ext4
partition table is btrfs


-------------

/etc/fstab

The inserted Volume was mounted Automatically

( but still requires root pwd to access hdd)

/dev/sdc1 / auto defaults,noatime 1 1 (not /sda1 as per gparted)
/dev/sdc2 swap swap defaults 0 0

---------------
Anti-x-16.1-x64 live cd - no need for password to access 8-TB-hdd

---------------------

jbloggs
Forum Novice
Forum  Novice
Posts: 4
Joined: Tue Aug 08, 2017 9:11 pm

Re: Mounting 8tb HDD requires root pwd?

#5 Postby jbloggs » Sat Aug 26, 2017 4:02 am

OK, no replies.

Found this

https://mxlinux.org/wiki/system/mount-i ... t-password

Mount internal partition without using root password

Version: MX-15
Section:
System
By default, the gvfs/udisks2 stack requires a root/superuser password when mounting internal partitions. Setting the "user" option in your /etc/fstab file will not change this behavior in the gui (by default, Thunar) file managers that utilize gvfs and/or udisks2.

Authentication for udisks2 is handled with policy kit. If you wish to override the default behavior of requiring a root/superuser password, then paste the contents below into a file called

/etc/polkit-1/localauthority/50-local.d/50-udisks.pkla

to allow any user in the "users" group to mount partitions without a root/superuser password. Changes should take place immediately. Note that this will NOT override the filesystem permissions.

-----

Content of new file /etc/polkit-1/localauthority/50-local.d/50-udisks.pkla



Code:

[udisks]
Identity=unix-group:users
Action=org.freedesktop.udisks*
ResultAny=yes
ResultInactive=no
ResultActive=yes

-----------------

works - mounts partitions and opens each of them in a separate fle manager window. Need them to be available to mount without entering either root or user passwd, and to not auto-open in file manager.

Advice please.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 19595
Joined: Wed Jul 19, 2006 6:13 am

Re: Mounting 8tb HDD requires root pwd?

#6 Postby Jerry3904 » Sat Aug 26, 2017 5:59 am

Thunar does that by default, but you can change it (I always do): Start menu > "Removable Drives and Media," Storage tab: uncheck the auto options you don't want.

Does that do it for you?

BTW: good job on finding the Wiki entry!
Production: 4.7.0-0.bpo.1-amd64, MX-15 RC1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 3.16-0-4-686-pae. MX-15, AMD C-60 APU, 4 GB

stsoh
Forum Novice
Forum  Novice
Posts: 71
Joined: Sun Aug 20, 2017 10:11 am

Re: Mounting 8tb HDD requires root pwd?

#7 Postby stsoh » Sun Aug 27, 2017 1:22 am

jbloggs wrote:.......
Content of new file /etc/polkit-1/localauthority/50-local.d/50-udisks.pkla

Code:

[udisks]
Identity=unix-group:users
Action=org.freedesktop.udisks*
ResultAny=yes
ResultInactive=no
ResultActive=yes


wow, this is great, getting more user friendly (main reason is user friendly).
i hope mx dev add this and also get rid of tumbler for future mx developments.
MX-17.1.b1_x64, liquorix 4.13-5mx15+1, Xfce 4.12.3
Dual core Pentium E5400, cache 2048 KB, speeds 3145 MHz, memory 8 GB
Mesa DRI Intel G41, Realtek RTL8169 PCI Gigabit Ethernet, Intel NM10/ICH7 Family HD Audio


Return to “Hardware /Configuration”

Who is online

Users browsing this forum: No registered users and 3 guests