* [gentoo-user] external USB harddrive
@ 2007-01-04 5:28 James Lockie
2007-01-04 8:59 ` Neil Bothwick
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: James Lockie @ 2007-01-04 5:28 UTC (permalink / raw
To: Gentoo User Mailing List
Does anyone have one of these? :-)
It mounts when I connect it but a user can't unmount it.
My USB memory stick and USB card reader work fine.
It is only the hard drive that I can't unmount as a user.
I don't have or want an /etc/fstab entry for it, I should be able to
configure KDE to handle it.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] external USB harddrive
2007-01-04 5:28 [gentoo-user] external USB harddrive James Lockie
@ 2007-01-04 8:59 ` Neil Bothwick
2007-01-04 20:34 ` James Lockie
2007-01-04 13:30 ` Nelson, David (ED, PAR&D)
2007-01-04 15:20 ` Richard Fish
2 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2007-01-04 8:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 395 bytes --]
On Thu, 04 Jan 2007 00:28:06 -0500, James Lockie wrote:
> It mounts when I connect it but a user can't unmount it.
> My USB memory stick and USB card reader work fine.
> It is only the hard drive that I can't unmount as a user.
You may need to add it to /etc/pmount.allow, as described in man pmount.
--
Neil Bothwick
"Vamoose you little varmit!" - Data:"A Fistfull of Datas"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [gentoo-user] external USB harddrive
2007-01-04 5:28 [gentoo-user] external USB harddrive James Lockie
2007-01-04 8:59 ` Neil Bothwick
@ 2007-01-04 13:30 ` Nelson, David (ED, PAR&D)
2007-01-04 20:37 ` James Lockie
2007-01-04 15:20 ` Richard Fish
2 siblings, 1 reply; 9+ messages in thread
From: Nelson, David (ED, PAR&D) @ 2007-01-04 13:30 UTC (permalink / raw
To: gentoo-user
> -----Original Message-----
> From: James Lockie [mailto:bjlockie@lockie.ca]
> Sent: 04 January 2007 05:28
> To: Gentoo User Mailing List
> Subject: [gentoo-user] external USB harddrive
>
>
> Does anyone have one of these? :-)
> It mounts when I connect it but a user can't unmount it.
> My USB memory stick and USB card reader work fine.
> It is only the hard drive that I can't unmount as a user.
> I don't have or want an /etc/fstab entry for it, I should be able to
> configure KDE to handle it.
>
> --
> gentoo-user@gentoo.org mailing list
>
I would add it to fstab (I reckon this would be the easiest way) - the same fstab entry should work for USB memory sticks/card readers as well, to my knowledge.
Or if you wanted to get really fancy I believe you could write a udev rule so it recognises that device and assigns it /dev/externalhdd or the like :)
David
Note: These views are my own, advice is provided with no guarantee of success. I do not represent anyone else in any emails I send to this list.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] external USB harddrive
2007-01-04 5:28 [gentoo-user] external USB harddrive James Lockie
2007-01-04 8:59 ` Neil Bothwick
2007-01-04 13:30 ` Nelson, David (ED, PAR&D)
@ 2007-01-04 15:20 ` Richard Fish
2007-01-04 17:13 ` Uwe Thiem
2 siblings, 1 reply; 9+ messages in thread
From: Richard Fish @ 2007-01-04 15:20 UTC (permalink / raw
To: gentoo-user
On 1/3/07, James Lockie <bjlockie@lockie.ca> wrote:
> Does anyone have one of these? :-)
> It mounts when I connect it but a user can't unmount it.
> My USB memory stick and USB card reader work fine.
> It is only the hard drive that I can't unmount as a user.
> I don't have or want an /etc/fstab entry for it, I should be able to
> configure KDE to handle it.
So it mounts fine, but you can't unmount it? I've seen this happen,
and fixed it by telling konqueror not to keep any instances
pre-loaded. The problem seems to be that if you browse the drive
using konqueror, it chdir()'s to the drive, and stays there, so any
attempts to unmount it report "busy".
Konqueror->Settings->Configure Konqueror->Performance->Preloading
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] external USB harddrive
2007-01-04 15:20 ` Richard Fish
@ 2007-01-04 17:13 ` Uwe Thiem
2007-01-04 19:35 ` Neil Bothwick
0 siblings, 1 reply; 9+ messages in thread
From: Uwe Thiem @ 2007-01-04 17:13 UTC (permalink / raw
To: gentoo-user
On 04 January 2007 17:20, Richard Fish wrote:
> On 1/3/07, James Lockie <bjlockie@lockie.ca> wrote:
> > Does anyone have one of these? :-)
> > It mounts when I connect it but a user can't unmount it.
> > My USB memory stick and USB card reader work fine.
> > It is only the hard drive that I can't unmount as a user.
> > I don't have or want an /etc/fstab entry for it, I should be able to
> > configure KDE to handle it.
>
> So it mounts fine, but you can't unmount it? I've seen this happen,
> and fixed it by telling konqueror not to keep any instances
> pre-loaded. The problem seems to be that if you browse the drive
> using konqueror, it chdir()'s to the drive, and stays there, so any
> attempts to unmount it report "busy".
That was so once. Haven't had any such trouble lately (KDE 3.5.5). Anyway,
don't you think James would run into the same problem with memory sticks? He
explicitly states above that it only occurs with his drive.
That said, I don't know what causes this behaviour. ;-(
Uwe
--
A fast and easy generator of fractals for KDE:
http://www.SysEx.com.na/iwy-1.0.tar.bz2
Proof of concept of a TSP solver for KDE:
http://www.SysEx.com.na/epat-0.1.tar.bz2
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] external USB harddrive
2007-01-04 17:13 ` Uwe Thiem
@ 2007-01-04 19:35 ` Neil Bothwick
0 siblings, 0 replies; 9+ messages in thread
From: Neil Bothwick @ 2007-01-04 19:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 449 bytes --]
On Thu, 4 Jan 2007 19:13:07 +0200, Uwe Thiem wrote:
> That said, I don't know what causes this behaviour. ;-(
It definitely used to be caused by pmount, which automatically mounts and
unmounts removable devices but not hard disks, unless they are
whitelisted in /etc/pmount.allow. Although it should apply to both
mounting and unmounting.
--
Neil Bothwick
"Time is the best teacher....., unfortunately it kills all the students"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] external USB harddrive
2007-01-04 8:59 ` Neil Bothwick
@ 2007-01-04 20:34 ` James Lockie
2007-01-05 17:05 ` Richard Fish
0 siblings, 1 reply; 9+ messages in thread
From: James Lockie @ 2007-01-04 20:34 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Thu, 04 Jan 2007 00:28:06 -0500, James Lockie wrote:
>
>
>> It mounts when I connect it but a user can't unmount it.
>> My USB memory stick and USB card reader work fine.
>> It is only the hard drive that I can't unmount as a user.
>>
>
> You may need to add it to /etc/pmount.allow, as described in man pmount.
>
I don't think pmount is installed/needed.
>
>
# emerge -p pmount
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-apps/pmount-0.9.13 USE="crypt hal"
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] external USB harddrive
2007-01-04 13:30 ` Nelson, David (ED, PAR&D)
@ 2007-01-04 20:37 ` James Lockie
0 siblings, 0 replies; 9+ messages in thread
From: James Lockie @ 2007-01-04 20:37 UTC (permalink / raw
To: gentoo-user
Nelson, David (ED, PAR&D) wrote:
>> -----Original Message-----
>> From: James Lockie [mailto:bjlockie@lockie.ca]
>> Sent: 04 January 2007 05:28
>> To: Gentoo User Mailing List
>> Subject: [gentoo-user] external USB harddrive
>>
>>
>> Does anyone have one of these? :-)
>> It mounts when I connect it but a user can't unmount it.
>> My USB memory stick and USB card reader work fine.
>> It is only the hard drive that I can't unmount as a user.
>> I don't have or want an /etc/fstab entry for it, I should be able to
>> configure KDE to handle it.
>>
>> --
>> gentoo-user@gentoo.org mailing list
>>
>>
>
> I would add it to fstab (I reckon this would be the easiest way) - the same fstab entry should work for USB memory sticks/card readers as well, to my knowledge.
>
> Or if you wanted to get really fancy I believe you could write a udev rule so it recognises that device and assigns it /dev/externalhdd or the like :)
>
> David
> Note: These views are my own, advice is provided with no guarantee of success. I do not represent anyone else in any emails I send to this list.
>
>
I tried creating 10-my-udev.rules
# http://wiki.archlinux.org/index.php/Udev
KERNEL=="sd[c-z]", NAME="%k", SYMLINK+="usbhd-%k", GROUP="users",
OPTIONS="last_
rule"
ACTION=="add", KERNEL=="sd[c-z][0-9]", SYMLINK+="usbhd-%k",
GROUP="users", NAME=
"%k"
ACTION=="add", KERNEL=="sd[c-z][0-9]", RUN+="/bin/mkdir -p /media/usbhd-%k"
ACTION=="add", KERNEL=="sd[c-z][0-9]", RUN+="/bin/ln -s /media/usbhd-%k
/mnt/usb
hd-%k"
ACTION=="add", KERNEL=="sd[c-z][0-9]", PROGRAM=="/lib/udev/vol_id -t
%N", RESULT
=="vfat", RUN+="/bin/mount -t vfat -o
rw,noauto,sync,dirsync,noexec,nodev,noatim
e,dmask=000,fmask=111 /dev/%k /media/usbhd-%k", OPTIONS="last_rule"
ACTION=="add", KERNEL=="sd[c-z][0-9]", RUN+="/bin/mount -t auto -o
rw,noauto,syn
c,dirsync,noexec,nodev,noatime /dev/%k /media/usbhd-%k", OPTIONS="last_rule"
ACTION=="remove", KERNEL=="sd[c-z][0-9]", RUN+="/bin/rm -f /mnt/usbhd-%k"
ACTION=="remove", KERNEL=="sd[c-z][0-9]", RUN+="/bin/umount -l
/media/usbhd-%k"
ACTION=="remove", KERNEL=="sd[c-z][0-9]", RUN+="/bin/rmdir
/media/usbhd-%k", OPT
IONS="last_rule"
but then KDE doesn't see the new drive.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] external USB harddrive
2007-01-04 20:34 ` James Lockie
@ 2007-01-05 17:05 ` Richard Fish
0 siblings, 0 replies; 9+ messages in thread
From: Richard Fish @ 2007-01-05 17:05 UTC (permalink / raw
To: gentoo-user
On 1/4/07, James Lockie <bjlockie@lockie.ca> wrote:
> Neil Bothwick wrote:
> > On Thu, 04 Jan 2007 00:28:06 -0500, James Lockie wrote:
> >
> >
> >> It mounts when I connect it but a user can't unmount it.
> >> My USB memory stick and USB card reader work fine.
> >> It is only the hard drive that I can't unmount as a user.
> >>
> >
> > You may need to add it to /etc/pmount.allow, as described in man pmount.
> >
> I don't think pmount is installed/needed.
Maybe not "needed", but highly "recommended", at least by me. I
suggest merging it.
> >
> >
> # emerge -p pmount
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild N ] sys-apps/pmount-0.9.13 USE="crypt hal"
Ok, so how are you mounting the drive under KDE? ivman?
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-01-05 17:10 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-04 5:28 [gentoo-user] external USB harddrive James Lockie
2007-01-04 8:59 ` Neil Bothwick
2007-01-04 20:34 ` James Lockie
2007-01-05 17:05 ` Richard Fish
2007-01-04 13:30 ` Nelson, David (ED, PAR&D)
2007-01-04 20:37 ` James Lockie
2007-01-04 15:20 ` Richard Fish
2007-01-04 17:13 ` Uwe Thiem
2007-01-04 19:35 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox