Re: [gentoo-user] external USB harddrive

2007-01-05 Thread Richard Fish

On 1/4/07, James Lockie <[EMAIL PROTECTED]> 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



Re: [gentoo-user] external USB harddrive

2007-01-04 Thread James Lockie

Nelson, David (ED, PAR&D) wrote:

-Original Message-
From: James Lockie [mailto:[EMAIL PROTECTED]
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



Re: [gentoo-user] external USB harddrive

2007-01-04 Thread James Lockie

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



Re: [gentoo-user] external USB harddrive

2007-01-04 Thread Neil Bothwick
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"


signature.asc
Description: PGP signature


Re: [gentoo-user] external USB harddrive

2007-01-04 Thread Uwe Thiem
On 04 January 2007 17:20, Richard Fish wrote:
> On 1/3/07, James Lockie <[EMAIL PROTECTED]> 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



Re: [gentoo-user] external USB harddrive

2007-01-04 Thread Richard Fish

On 1/3/07, James Lockie <[EMAIL PROTECTED]> 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



RE: [gentoo-user] external USB harddrive

2007-01-04 Thread
> -Original Message-
> From: James Lockie [mailto:[EMAIL PROTECTED]
> 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



Re: [gentoo-user] external USB harddrive

2007-01-04 Thread Neil Bothwick
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"


signature.asc
Description: PGP signature