LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 11-16-2005, 02:11 PM   #1
Pr_009
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Roaming about
Posts: 31

Rep: Reputation: 15
How to enable Automount


I have to mount CD, DVD and USB manually everytime. Is there any way to enable their automounting in Fedora Core 3
 
Old 11-16-2005, 08:44 PM   #2
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Rep: Reputation: 15
Yes, you'll want to edit a file called /etc/fstab , which governs how partitions and drives are mounted. Read the manual man fstab . Here's mine, you may not need this many partitions.

[kurt@mars ~]$ less /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 nodev 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 nodev 1 2
LABEL=/opt /opt ext3 nodev 1 2
none /proc proc nodev 0 0
none /sys sysfs nodev 0 0
LABEL=/tmp /tmp ext3 nodev 1 2
LABEL=/usr /usr ext3 nodev 1 2
LABEL=/usr/local /usr/local ext3 nodev 1 2
LABEL=/var /var ext3 nodev 1 2
/dev/hda3 swap swap defaults 0 0
#/dev/hda1 /mnt/win vfat nodev 1 2
/dev/fd0 /media/floppy vfat users,pamconsole 0 0
/dev/hdc /media/cdrom iso9660 users,pamconsole 0 0
 
Old 11-17-2005, 09:35 AM   #3
Pr_009
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Roaming about
Posts: 31

Original Poster
Rep: Reputation: 15
can you explain the process with detail
 
Old 11-21-2005, 07:44 PM   #4
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Rep: Reputation: 15
Sorry, about the delay in replying, I havn't been near a computer in the last few days. This is a simple procedure, most easily done in a text editor, such as jed or emacs. You must log onto the root account:
[you@yourbox ~] $ su -
password:
[root@youbox ~]#
and then open the file; /etc/fstab
[root@youbox ~]#jed /etc/fstab
and see a file that looks something like this:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 nodev 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 nodev 1 2
LABEL=/opt /opt ext3 nodev 1 2
none /proc proc nodev 0 0
none /sys sysfs nodev 0 0
LABEL=/tmp /tmp ext3 nodev 1 2
LABEL=/usr /usr ext3 nodev 1 2
LABEL=/usr/local /usr/local ext3 nodev 1 2
LABEL=/var /var ext3 nodev 1 2
/dev/hda3 swap swap defaults 0 0
/dev/hda1 /mnt/win vfat nodev 1 2
/dev/fd0 /media/floppy vfat users,pamconsole 0 0
/dev/hdc /media/cdrom iso9660 users,pamconsole 0 0
(END)
From the manual:
The first field, describes the block special device or
remote filesystem to be mounted.

The second field, describes the mount point for the filesysytem. For swap partitions, this field should be specified as ‘none’. If the name of the mount point contains spaces these can be escaped as ‘\040’.


The third field, (fs_vfstype), describes the type of the filesystem.
Linux supports lots of filesystem types, such as adfs, affs, autofs,
coda, coherent, cramfs, devpts, efs, ext2, ext3, hfs, hpfs, iso9660,
jfs, minix, msdos, ncpfs, nfs, ntfs, proc, qnx4, reiserfs, romfs,
smbfs, sysv, tmpfs, udf, ufs, umsdos, vfat, xenix, xfs, and possibly others.

The fourth field, describes the mount options associated with the filesystem.
It is formatted as a comma separated list of options. It contains at
least the type of mount plus any additional options appropriate to the
filesystem type. For documentation on the available options for non-
nfs file systems, see mount(8). For documentation on all nfs-specific
options have a look at nfs(5). Common for all types of file system are
the options ‘‘noauto’’ (do not mount when "mount -a" is given, e.g., at
boot time), ‘‘user’’ (allow a user to mount), ‘‘owner’’ (allow device
owner to mount), ‘‘pamconsole’’ (allow a user at the console to mount),
and ‘‘comment’’ (e.g., for use by fstab-maintaining programs). The
‘‘owner’’, ‘‘pamconsole’’ and ‘‘comment’’ options are Linux-specific.
For more details, see mount(8).

The fifth field, is used for these filesystems by the
dump(8) command to determine which filesystems need to be dumped. If
the fifth field is not present, a value of zero is returned and dump
will assume that the filesystem does not need to be dumped.

The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time.




SEE ALSO
getmntent(3), mount(8), swapon(8), fs(5) nfs(5) fstab-sync(8)

This should help in understanding the file, but you should NOT try to create your own file.
This file should already exist on your computer, the option auto in the fourth field might do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 or something like that? e1000 Linux - Hardware 3 11-19-2005 01:31 AM
Automount RySk8er30 Mandriva 13 08-22-2005 07:22 AM
automount ptawe Debian 1 07-31-2005 02:09 PM
automount thematrimix Linux - General 5 05-07-2004 11:56 PM
Using automount (yes or no) yapp Linux - General 6 09-17-2003 04:38 AM


All times are GMT -5. The time now is 10:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration