--- In [email protected], Robert C Wittig
<[EMAIL PROTECTED]> wrote:
> First, auto-mounting removable disks is a bad idea, because there will 
> be nothing to mount, when the drive is empty.
> 
> Second, you can save a lot of time by (working as root) you modify the 
> /etc/fstab file. Check the man page for fstab.

OK, I RTF man page ;) and examined the fstab file.  The latter
presented an interesting solution.  The CDROM is mounted only when it
has a disk in, and may be of any fs -- I know it auto-recognizes
msdos/fat volumes and ext*!  This would appear to be a good model to
use.  The fstab entry for my CDROM reads:

/dev/hdc /media/cdrom auto
pamconsole,noauto,fscontext=system_u:object_r:removable_t,managed 0 0

So, I copied and pasted the line, then modified to it read:

/dev/sda4 /media/zip100 <remainder unchanged>

The ZIP drive is jumpered to read as device 4.  After creating
/media/zip100, I mounted it from a term window.

Result?  An icon for it appeared on my GUI desktop, which seems to be
what Fedora uses the /media directory for.  Using the GUI context
menu, I selected "eject volume".   It unmounted AND AUTO-EJECTED
sucessfully -- but threw up an error message that it "couldn't eject".
  I don't understand the error, it succeeded!

The whole fscontext= specification is arcane to me, but it seems to
have worked!

8< (snip snip snip) 8<

> 
> The fact that you asked specific, well-described questions, in an 
> understandable format, was a plus, as was the fact that you had done 
> some preparatory homework, checking the man pages (Google is pretty 
> useful, too).
> 
> You might want to consider putting a more specific entry in the 
> 'Subject' line, in the future. When busy, some readers will just gloss 
> over posts with what appear to be 'conversational' (as opposed to 
> technical) 'Subject' lines.
> 

Thanks for the advice -- the netiquette parts as well as the technical
bits.   You got me just enough info to solve it.



To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to