SCIENTIFIC-LINUX-USERS Archives

May 2006

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Troy Dawson <[log in to unmask]>
Reply To:
Troy Dawson <[log in to unmask]>
Date:
Wed, 3 May 2006 14:27:32 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (62 lines)
Hi Alan,
You are the second person who sent me something about updfstab.  I had 
never used it before, but it sounds nice.  I'll have to recommend that 
next time.
Thanks for the tip
Troy

Alan J. Flavell wrote:
> 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


-- 
__________________________________________________
Troy Dawson  [log in to unmask]  (630)840-6468
Fermilab  ComputingDivision/CSS  CSI Group
__________________________________________________

ATOM RSS1 RSS2