LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2005, 04:41 PM   #1
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Rep: Reputation: 30
autofs does not mount removable disk


I've been trying to mount a removable disk via automount and can't get it to work right. here's my auto.master:
Code:
sohmc@bart:~$ cat /etc/auto.master 
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/misc  /etc/auto.misc --timeout=60
#/smb   /etc/auto.smb

/misc          /etc/auto.misc
/net           /etc/auto.net
/media         /etc/auto.media     --verbose --debug
I have a SD card, who's address is /dev/sdc1. A normal mount will work fine. However, I want to be able to automount it as /media/kodak

my /etc/auto.media is as follows:
Code:
sohmc@bart:~$ cat /etc/auto.media 
#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven 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

kodak           -fstype=vfat,rw,nosuid          :/dev/sdc1

# 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
When I insert the card, I get this in my messages:
Code:
Aug 27 17:14:16 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Aug 27 17:14:16 bart kernel: sdc: Write Protect is off
Aug 27 17:14:16 bart kernel: sdc: assuming drive cache: write through
Aug 27 17:14:16 bart kernel: SCSI device sdc: 125440 512-byte hdwr sectors (64 MB)
Aug 27 17:14:16 bart kernel: sdc: Write Protect is off
Aug 27 17:14:16 bart kernel: sdc: assuming drive cache: write through
Aug 27 17:14:16 bart kernel:  sdc: sdc1
automount doesn't do anything. it isn't until I pull the card out that automount reports back:
Code:
Aug 27 17:24:31 bart kernel: Device not ready. Make sure there is a disc in the drive.
Aug 27 17:24:31 bart kernel: Device not ready. Make sure there is a disc in the drive.
Aug 27 17:24:31 bart automount[12152]: attempting to mount entry /media/KODAK1
Aug 27 17:24:31 bart automount[12347]: failed to mount /media/KODAK1
Aug 27 17:24:31 bart automount[12347]: umount_multi: no mounts found under /media/KODAK1
This really doesn't make a lot of sense since KODAK1 is never mentioned anywhere. Does automount have some other default config file that I've missed somewhere?

If you have any clues, let me know. :-)
 
  


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
How to mount a removable media using C skie_knite007 Programming 1 10-02-2005 12:49 AM
How to mount removable drive? intmail Slackware 3 07-21-2005 02:30 PM
Removable disk will not unmount czechknight93 Linux - Hardware 6 04-09-2004 01:54 PM
Removable disk problem! Braveheart1980 Linux - General 3 02-11-2004 03:58 AM
how to mount fstab vs autofs rrich100 Red Hat 1 11-13-2003 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 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