Subject: | |
From: | |
Reply To: | Alan J. Flavell |
Date: | Wed, 3 May 2006 17:44:01 +0100 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
Maybe I'm missing the point here, but we've had good results with
using /etc/updfstab.conf ("man updfstab" for details)
If the device does not appear automatically in fstab, then we
take a look with the hardware browser, or by looking in
/proc/scsi/scsi, and formulate an appropriate additional stanza
in /etc/updfstab.conf
Whenever the inserted device matches a stanza in that file, e.g
device flash {
partition 1
match hd CompactFlash
match hd ImageMate
}
then "magically" a mount point is created for it in /mnt , and
a line like this appears in fstab:
/dev/sda1 /mnt/flash auto noauto,owner,kudzu 0 0
One can then issue a command
mount /mnt/flash
even as an ordinary user.
(Of course any update to updfstab has to be done with root privs).
hope this makes some sense
On Wed, 3 May 2006, Troy Dawson wrote:
> Just to add on what Connie said.
> S.L. 3.0.x does not automatically put the usb stuff in the /etc/fstab and make
> them automatically mountable by general users. That is in S.L. 4.x, but not
> S.L. 3.0.x.
> S.L. 3.0.x you have to either mount it as root, or set things up in fstab by
> hand so that the users can mount it. So if you look in /proc/partitions (or
> /var/log/messages) and see it is /dev/sda1 then you'll have to make a
> directory and mount it, as root, such as
> mkdir -p /media/usbdisk
> mount /dev/sda1 /media/usbdisk
|
|
|