LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-23-2004, 04:05 AM   #1
miqorz
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware Current
Posts: 12

Rep: Reputation: 0
Setting up Automount on Redhat 9


Hi..

Im using Redhat 9 / Ximian Desktop 2 and I was wondering how one would set up automount to automount my cd-rom and floppy so I have a desktop icon for them without needing to insert a disk into each slot?

Thanks,
Mike
 
Old 03-23-2004, 05:59 AM   #2
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
You can enter /etc dir,modify auto.misc and auto.master files.
First, remove "#" in the front of cdrom in auto.misc file
Second,remove "#" in the front of cdrom in auto.master file.
Third,run "chkconfig --levels 345 autofs on"
Fourth,run "/etc/init.d/autofs start"
have a try!
 
Old 03-23-2004, 06:01 AM   #3
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
BTW,you can run "cd /misc/cdrom" when you insert CD in your cd-rom and not run "mount " command.
 
Old 03-23-2004, 06:06 AM   #4
tiger7007
Member
 
Registered: Aug 2003
Distribution: RedHat9/FedoraCore1
Posts: 73

Rep: Reputation: 15
ull need to edit the /etc/fstab file (" vi /etc/fstab ") then u need to add the line "/dev/devicename /mnt/devicefolder iso9660 noauto,ro 0 0" the mounting of the cdrom needs to be under the fd0 line (floppy) just like post hdd 1st,flopy 2nd,cdrom 3rd,if u want to learn more about fstab use "man fstab or man /etc/fstab/".goodluck
 
Old 03-23-2004, 06:37 AM   #5
miqorz
LQ Newbie
 
Registered: Dec 2003
Distribution: Slackware Current
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by aeolus
You can enter /etc dir,modify auto.misc and auto.master files.
First, remove "#" in the front of cdrom in auto.misc file
Second,remove "#" in the front of cdrom in auto.master file.
Third,run "chkconfig --levels 345 autofs on"
Fourth,run "/etc/init.d/autofs start"
have a try!
My config files dont allready have these examples.. can you post yours?
 
Old 03-23-2004, 08:40 AM   #6
legend1079
Member
 
Registered: Mar 2004
Location: Pakistan
Posts: 49

Rep: Reputation: 15
tiger7007 is right
You have to modify
/etc/fstab
in the fstab you need to
change the mount todefault befour CDROM
 
Old 03-23-2004, 06:24 PM   #7
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by miqorz
My config files dont allready have these examples.. can you post yours?
My conf file as follows
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

cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
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).
/misc /etc/auto.misc --timeout=60
Then you run "chkconfig --levels 345 autofs on" and run "/etc/init.d/autofs start".When you insert CD into cd-rom,you can run directly "cd /misc/cdrom" and not mount command.It's very easy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
automount NTFS in Redhat 8.0 manub Linux - Newbie 31 03-31-2005 01:57 PM
automount Solaris home directories onto RedHat ghouliajoolia Linux - General 3 09-07-2004 06:20 AM
Setting up automount with autofs smattbac Slackware 0 10-12-2003 08:51 AM
Redhat 9 CD Automount 1jamie Linux - Software 2 08-28-2003 02:20 PM
How to automount my C drive (FAT32) every time I login Redhat futurist Linux - General 2 03-17-2003 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration