Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #161355

Re: SATA HD hotplug "Authentication is required" (SOLVED)

From Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org>
Newsgroups linux.debian.user
Subject Re: SATA HD hotplug "Authentication is required" (SOLVED)
Date 2015-11-30 12:50 +0100
Message-ID <qAv7Z-33k-27@gated-at.bofh.it> (permalink)
References <qAb9f-7gj-1@gated-at.bofh.it> <qAbiV-7ji-1@gated-at.bofh.it> <qAbLX-7Ij-13@gated-at.bofh.it> <qAdXt-zZ-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, 29 Nov 2015 18:25:28 +0100
Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> wrote:

> >> > I have just added an eSATA outlet on my box; when I plug in a SATA
> >> > disk, it is visible in gparted, its label is displayed in the Places
> >> > column of PCManfm, but when I click on it I get an error
> >> > "Authentication is required".  
> [...]
> > Thanks; I should have asked:
> >
> > How do I get it to automount (without asking for authentification) ?  
> 
> I think udisks treats drives attached via eSATA as "system" devices for
> which the default policykit rules only allow mounting with
> authentication.  These should show up as "HintSystem: true" in the
> output of "udisksctl dump".
> 
> You could try marking them as UDISKS_SYSTEM=0 in a udev rule. See 
>  <https://wiki.archlinux.org/index.php/Udev#Mark_internal_SATA_ports_as_eSATA>

Grateful thanks, that worked perfectly.

I repost it here, for the edification of the multitude:, in case the link stops working:

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

Mark internal SATA ports as eSATA

If you connected a eSATA bay or an other eSATA adapter the system will still recognize this disk as an internal SATA drive. you will be asked for your root password all the time. The following rule will mark the specified SATA-Port as an external eSATA-Port. With that, a normal GNOME user can connect their eSATA drives to that port like a USB drive, without any root password and so on.

Add to
	/etc/udev/rules.d/10-esata.rules
a line:
	DEVPATH=="/devices/pci0000:00/0000:00:1f.2/host4/*", ENV{UDISKS_SYSTEM}="0"

Note: The DEVPATH for your setup can be found after connecting the eSATA drive with the following commands (replace sdb accordingly):

	# udevadm info -q path -n /dev/sdb
	/devices/pci0000:00/0000:00:1f.2/host4/target4:0:0/4:0:0:0/block/sdb
or
	# find /sys/devices/ -name sdb
	/sys/devices/pci0000:00/0000:00:1f.2/host4/target4:0:0/4:0:0:0/block/sdb

If rules fail to reload automatically

	# udevadm control --reload

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


Cheers,
 
Ron.
-- 
                   No one ever built a statue to a critic.
                                    
                   -- http://www.olgiati-in-paraguay.org --
 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

SATA HD hotplug "Authentication is required" Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-11-29 15:30 +0100
  Re: SATA HD hotplug "Authentication is required" Petter Adsen <petter@synth.no> - 2015-11-29 15:40 +0100
    Re: SATA HD hotplug "Authentication is required" Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-11-29 16:10 +0100
      Re: SATA HD hotplug "Authentication is required" Petter Adsen <petter@synth.no> - 2015-11-29 17:00 +0100
        Re: SATA HD hotplug "Authentication is required" Richard Owlett <rowlett@cloud85.net> - 2015-11-29 17:30 +0100
      Re: SATA HD hotplug "Authentication is required" Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2015-11-29 18:30 +0100
        Re: SATA HD hotplug "Authentication is required" (SOLVED) Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-11-30 12:50 +0100
          Re: SATA HD hotplug "Authentication is required" (SOLVED)(NOT) Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-12-05 22:10 +0100
        Re: SATA HD hotplug "Authentication is required" Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-12-05 22:10 +0100
          Re: SATA HD hotplug "Authentication is required" Brian <ad44@cityscape.co.uk> - 2015-12-06 00:40 +0100
            Re: SATA HD hotplug "Authentication is required" Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-12-06 12:00 +0100
              Re: SATA HD hotplug "Authentication is required" Brian <ad44@cityscape.co.uk> - 2015-12-06 14:10 +0100
                Re: SATA HD hotplug "Authentication is required" Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-12-06 15:00 +0100

csiph-web