Re: [ILUG] Hard disk/CD Rom access

From: Liam Bedford (lbedford at domain wbtsystems.com)
Date: Mon 12 Apr 1999 - 10:08:28 IST


As far as mounting goes, I tend to use autofs now :)

auto.master
-----------
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/home /etc/auto.home --timeout 600
/misc /etc/auto.misc --timeout 60

auto.misc
----------
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

kernel -ro,soft,intr ftp.ie.kernel.org:/pub/linux
cd -fstype=iso9660,ro :/dev/cdrom

# the following entries are samples to pique your imagination
floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1

but it does involve having it in the kernel (RH has it in its default kernel).

Then you can cd /misc/cd and have it mounted, and it unmounts after 1 mins of
non-activity (very nice for nfs cd stuff, where I can chuck a cd in my machine,
wander to another box, mount it, do what I need, and unmount it, with out
having to do anything on my machine at all :))

Regards
L.

-- 
Liam Bedford		System Administrator
WBT Systems		Phone: 01 4170153
Block 2, Harcourt St, Dublin 2


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:07 GMT