Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #161324 > unrolled thread
| Started by | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| First post | 2015-11-29 15:30 +0100 |
| Last post | 2015-12-06 15:00 +0100 |
| Articles | 13 — 5 participants |
Back to article view | Back to linux.debian.user
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
| From | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| Date | 2015-11-29 15:30 +0100 |
| Subject | SATA HD hotplug "Authentication is required" |
| Message-ID | <qAb9f-7gj-1@gated-at.bofh.it> |
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".
Is that udev throwing a tantrum ?
Tried mounting it from the CLI, did not work:
root@ron:/home/ron # mount /dev/sdi1
mount: can't find /dev/sdi1 in /etc/fstab or /etc/mtab
How do I get it to mount ?
Cheers,
Ron.
--
They also surf, who only stand on waves.
-- http://www.olgiati-in-paraguay.org --
[toc] | [next] | [standalone]
| From | Petter Adsen <petter@synth.no> |
|---|---|
| Date | 2015-11-29 15:40 +0100 |
| Message-ID | <qAbiV-7ji-1@gated-at.bofh.it> |
| In reply to | #161324 |
On Sun, 29 Nov 2015 11:20:01 -0300 Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.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". > > Is that udev throwing a tantrum ? > > Tried mounting it from the CLI, did not work: > > root@ron:/home/ron # mount /dev/sdi1 > mount: can't find /dev/sdi1 in /etc/fstab or /etc/mtab > > How do I get it to mount ? You need to specify where you want it mounted; 'mount /dev/sdi1 /mnt' for example, or add a line to fstab. Petter -- "I'm ionized" "Are you sure?" "I'm positive."
[toc] | [prev] | [next] | [standalone]
| From | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| Date | 2015-11-29 16:10 +0100 |
| Message-ID | <qAbLX-7Ij-13@gated-at.bofh.it> |
| In reply to | #161325 |
On Sun, 29 Nov 2015 15:34:05 +0100
Petter Adsen <petter@synth.no> 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".
> >
> > Is that udev throwing a tantrum ?
> >
> > Tried mounting it from the CLI, did not work:
> >
> > root@ron:/home/ron # mount /dev/sdi1
> > mount: can't find /dev/sdi1 in /etc/fstab or /etc/mtab
> >
> > How do I get it to mount ?
>
> You need to specify where you want it mounted; 'mount /dev/sdi1 /mnt'
> for example, or add a line to fstab.
Thanks; I should have asked:
How do I get it to automount (without asking for authentification) ?
Cheers,
Ron.
--
What which we call knowledge is ignorance surrounded by laughter.
-- Charles Hoy Fort
-- http://www.olgiati-in-paraguay.org --
[toc] | [prev] | [next] | [standalone]
| From | Petter Adsen <petter@synth.no> |
|---|---|
| Date | 2015-11-29 17:00 +0100 |
| Message-ID | <qAcym-800-1@gated-at.bofh.it> |
| In reply to | #161328 |
On Sun, 29 Nov 2015 12:08:04 -0300 Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> wrote: > On Sun, 29 Nov 2015 15:34:05 +0100 > Petter Adsen <petter@synth.no> 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". > > > > > > Is that udev throwing a tantrum ? > > > > > > Tried mounting it from the CLI, did not work: > > > > > > root@ron:/home/ron # mount /dev/sdi1 > > > mount: can't find /dev/sdi1 in /etc/fstab or /etc/mtab > > > > > > How do I get it to mount ? > > > > You need to specify where you want it mounted; > > 'mount /dev/sdi1 /mnt' for example, or add a line to fstab. > > Thanks; I should have asked: > > How do I get it to automount (without asking for authentification) ? Sorry. I should have expanded on that. Add a line to fstab. See the fstab man page, or these: https://wiki.debian.org/fstab https://help.ubuntu.com/community/Fstab https://wiki.archlinux.org/index.php/Fstab If this is an external disk on a Jessie system, add 'nofail' to the mount options (fourth field). To allow mounting/unmounting as user, also add 'user'. Petter -- "I'm ionized" "Are you sure?" "I'm positive."
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2015-11-29 17:30 +0100 |
| Message-ID | <qAd1p-8pv-9@gated-at.bofh.it> |
| In reply to | #161330 |
On 11/29/2015 9:53 AM, Petter Adsen wrote: > On Sun, 29 Nov 2015 12:08:04 -0300 > Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> wrote: > [snip] >> Thanks; I should have asked: >> >> How do I get it to automount (without asking for authentification) ? > > Sorry. I should have expanded on that. > > Add a line to fstab. See the fstab man page, or these: > https://wiki.debian.org/fstab > https://help.ubuntu.com/community/Fstab > https://wiki.archlinux.org/index.php/Fstab > > If this is an external disk on a Jessie system, add 'nofail' to the > mount options (fourth field). To allow mounting/unmounting as user, > also add 'user'. > Thank you. Not only the OP should find that information useful.
[toc] | [prev] | [next] | [standalone]
| From | Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> |
|---|---|
| Date | 2015-11-29 18:30 +0100 |
| Message-ID | <qAdXt-zZ-15@gated-at.bofh.it> |
| In reply to | #161328 |
Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> writes: >> > 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 [1] for how to do so. Ansgar [1] <https://wiki.archlinux.org/index.php/Udev#Mark_internal_SATA_ports_as_eSATA>
[toc] | [prev] | [next] | [standalone]
| From | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| Date | 2015-11-30 12:50 +0100 |
| Subject | Re: SATA HD hotplug "Authentication is required" (SOLVED) |
| Message-ID | <qAv7Z-33k-27@gated-at.bofh.it> |
| In reply to | #161333 |
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 --
[toc] | [prev] | [next] | [standalone]
| From | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| Date | 2015-12-05 22:10 +0100 |
| Subject | Re: SATA HD hotplug "Authentication is required" (SOLVED)(NOT) |
| Message-ID | <qCsfD-6c0-7@gated-at.bofh.it> |
| In reply to | #161355 |
> > 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>
This finally does NOT work.
What is the point of having auto-mounting if it does not work for hot-plug external SATA drives, and one has to log in as root, and mount then, before use ?
Cheers,
Ron.
--
Le client n'a jamais tort.
-- César Ritz
-- http://www.olgiati-in-paraguay.org --
[toc] | [prev] | [next] | [standalone]
| From | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| Date | 2015-12-05 22:10 +0100 |
| Message-ID | <qCsfD-6c0-9@gated-at.bofh.it> |
| In reply to | #161333 |
On Sun, 29 Nov 2015 18:25:28 +0100
Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> wrote:
> 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".
root@ron:/home/ron # udisksctl dump
bash: udisksctl: command not found
???
Cheers,
Ron.
--
Le client n'a jamais tort.
-- César Ritz
-- http://www.olgiati-in-paraguay.org --
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2015-12-06 00:40 +0100 |
| Message-ID | <qCuAO-7y8-7@gated-at.bofh.it> |
| In reply to | #161582 |
On Sat 05 Dec 2015 at 18:02:37 -0300, Renaud OLGIATI wrote: > On Sun, 29 Nov 2015 18:25:28 +0100 > Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> wrote: > > > 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". > > root@ron:/home/ron # udisksctl dump > bash: udisksctl: command not found > > ??? dpkg -l udisks2
[toc] | [prev] | [next] | [standalone]
| From | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| Date | 2015-12-06 12:00 +0100 |
| Message-ID | <qCFcS-5QY-3@gated-at.bofh.it> |
| In reply to | #161589 |
On Sat, 5 Dec 2015 23:31:49 +0000
Brian <ad44@cityscape.co.uk> wrote:
> > > 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".
> > root@ron:/home/ron # udisksctl dump
> > bash: udisksctl: command not found
> > ???
> dpkg -l udisks2
root@ron:/home/ron # apt-get install udisks2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package udisks2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'udisks2' has no installation candidate
Cheers,
Ron.
--
If you lend someone $20 and never see that person again,
it was probably worth it.
-- http://www.olgiati-in-paraguay.org --
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2015-12-06 14:10 +0100 |
| Message-ID | <qCHeF-7kf-9@gated-at.bofh.it> |
| In reply to | #161602 |
On Sun 06 Dec 2015 at 07:53:41 -0300, Renaud OLGIATI wrote:
> On Sat, 5 Dec 2015 23:31:49 +0000
> Brian <ad44@cityscape.co.uk> wrote:
>
> > > > 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".
>
> > > root@ron:/home/ron # udisksctl dump
> > > bash: udisksctl: command not found
> > > ???
>
> > dpkg -l udisks2
>
> root@ron:/home/ron # apt-get install udisks2
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package udisks2 is not available, but is referred to by another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
>
> E: Package 'udisks2' has no installation candidate
On an updated Jessie:
brian@jessie1:~$ apt-cache policy udisks2
udisks2:
Installed: (none)
Candidate: 2.1.3-5
Version table:
2.1.3-5 0
500 file:/media/ARCHIVE/debian/ jessie/main i386 Packages
[toc] | [prev] | [next] | [standalone]
| From | Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> |
|---|---|
| Date | 2015-12-06 15:00 +0100 |
| Message-ID | <qCI14-7Dn-21@gated-at.bofh.it> |
| In reply to | #161604 |
On Sun, 6 Dec 2015 13:07:37 +0000
Brian <ad44@cityscape.co.uk> wrote:
> On Sun 06 Dec 2015 at 07:53:41 -0300, Renaud OLGIATI wrote:
>
> > On Sat, 5 Dec 2015 23:31:49 +0000
> > Brian <ad44@cityscape.co.uk> wrote:
> >
> > > > > 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".
> >
> > > > root@ron:/home/ron # udisksctl dump
> > > > bash: udisksctl: command not found
> > > > ???
> >
> > > dpkg -l udisks2
> >
> > root@ron:/home/ron # apt-get install udisks2
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > Package udisks2 is not available, but is referred to by another package.
> > This may mean that the package is missing, has been obsoleted, or
> > is only available from another source
> >
> > E: Package 'udisks2' has no installation candidate
>
> On an updated Jessie:
<snip>
I am still on Wheezy (an in no hurry to upgrade)...
Cheers,
Ron.
--
My karma just ran over your dogma.
-- http://www.olgiati-in-paraguay.org --
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web