LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-15-2005, 05:35 PM   #1
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Rep: Reputation: 285Reputation: 285Reputation: 285
automounting/rc.autofs


Trying to get get automount to work

I downloaded rc.autofs I read about in another thread but do i still need the autofs prog to make it work? (wont install cos of errors)

my auto.master:

/cd /etc/auto.cd --timeout 10
/floppy /etc/auto.floppy --timeout 1

my auto.cd:

dvd -fstype=iso9660,ro :/dev/hdc
cd -fstype=iso9660,ro :/dev/hdd

I have automount support in kernel (2.6.12) and /cd and /floppy dirs. Also commented out lines in fstab to see if thers any change

There are no cd or dvd dirs in /cd
 
Old 07-15-2005, 06:21 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
autofs is for the kernel side,
you need automount daemon from the user side

Why don't you install autofs slackware package ?
 
Old 07-15-2005, 06:59 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Original Poster
Rep: Reputation: 285Reputation: 285Reputation: 285
I have autofs-3.1.7-i386 from slack cd but it didnt seem to work so i tried to install 4.1.4 from source but it wont install
 
Old 07-15-2005, 07:04 PM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
Of course it works.
Did you started the automount daemon ?
/etc/rc.d/rc.autofs start

What does mount say ?
 
Old 07-15-2005, 07:37 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Original Poster
Rep: Reputation: 285Reputation: 285Reputation: 285
rc.autofs starts ok

mount says:

uroot@TheVoid:~# mount
/dev/hda8 on / type reiserfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/hda9 on /usr type reiserfs (rw)
/dev/hda10 on /home type reiserfs (rw)
/dev/hdb6 on /mnt/bdrv type reiserfs (rw,nosuid,nodev)
/dev/hda1 on /mnt/winc type ntfs (ro)
/dev/hda5 on /mnt/wind type ntfs (ro)
/dev/hda6 on /mnt/wine type ntfs (ro)
/dev/hda7 on /mnt/winf type ntfs (ro)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
automount(pid953) on /cd type autofs (rw,fd=5,pgrp=953,minproto=2,maxproto=3)
automount(pid955) on /floppy type autofs (rw,fd=5,pgrp=955,minproto=2,maxproto=3)
 
Old 07-15-2005, 07:40 PM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
Great, it works

Put a data CD in your DVD drive and try :
ls /cd/dvd
 
Old 07-15-2005, 08:04 PM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Original Poster
Rep: Reputation: 285Reputation: 285Reputation: 285
ls: /cd/dvd: No such file or directory
bash-3.00$

must be somthing wrong somewhere but can figue it out...
 
Old 07-15-2005, 08:05 PM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
What do dmesg and /var/log/syslog say ?
 
Old 07-15-2005, 08:17 PM   #9
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Original Poster
Rep: Reputation: 285Reputation: 285Reputation: 285
root@TheVoid:~# grep automount /var/log/syslog
Jul 14 22:19:16 TheVoid automount[30065]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:19:16 TheVoid automount[30065]: failed to mount /mnt/floppy/floppy
Jul 14 22:19:53 TheVoid automount[30145]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:19:53 TheVoid automount[30145]: failed to mount /mnt/floppy/floppy
Jul 14 22:19:59 TheVoid automount[30159]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:19:59 TheVoid automount[30159]: failed to mount /mnt/floppy/floppy
Jul 14 22:19:59 TheVoid automount[30161]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:19:59 TheVoid automount[30161]: failed to mount /mnt/floppy/floppy
Jul 14 22:19:59 TheVoid automount[30163]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:19:59 TheVoid automount[30163]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:03 TheVoid automount[30173]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:03 TheVoid automount[30173]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:03 TheVoid automount[30175]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:03 TheVoid automount[30175]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:03 TheVoid automount[30177]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:03 TheVoid automount[30177]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:10 TheVoid automount[30193]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:10 TheVoid automount[30193]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:10 TheVoid automount[30195]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:10 TheVoid automount[30195]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:10 TheVoid automount[30197]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:10 TheVoid automount[30197]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:11 TheVoid automount[30202]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:11 TheVoid automount[30202]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:19 TheVoid automount[30221]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:19 TheVoid automount[30221]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:38 TheVoid automount[30263]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:38 TheVoid automount[30263]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:38 TheVoid automount[30265]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:38 TheVoid automount[30265]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:38 TheVoid automount[30267]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:20:38 TheVoid automount[30267]: failed to mount /mnt/floppy/floppy
Jul 14 22:20:58 TheVoid automount[30309]: failed to mount /mnt/floppy/sdad
Jul 14 22:20:58 TheVoid automount[30310]: failed to mount /mnt/floppy/.sdad.swp
Jul 14 22:33:35 TheVoid automount[31891]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:33:35 TheVoid automount[31891]: failed to mount /mnt/floppy/floppy
Jul 14 22:33:35 TheVoid automount[31893]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:33:35 TheVoid automount[31893]: failed to mount /mnt/floppy/floppy
Jul 14 22:33:43 TheVoid automount[31915]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:33:43 TheVoid automount[31915]: failed to mount /mnt/floppy/floppy
Jul 14 22:33:50 TheVoid automount[31933]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:33:50 TheVoid automount[31933]: failed to mount /mnt/floppy/floppy
Jul 14 22:33:55 TheVoid automount[31945]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:33:55 TheVoid automount[31945]: failed to mount /mnt/floppy/floppy
Jul 14 22:33:55 TheVoid automount[31947]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:33:55 TheVoid automount[31947]: failed to mount /mnt/floppy/floppy
Jul 14 22:33:55 TheVoid automount[31949]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:33:55 TheVoid automount[31949]: failed to mount /mnt/floppy/floppy
Jul 14 22:34:21 TheVoid automount[32004]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:34:21 TheVoid automount[32004]: failed to mount /mnt/floppy/floppy
Jul 14 22:34:49 TheVoid automount[32063]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:34:49 TheVoid automount[32063]: failed to mount /mnt/floppy/floppy
Jul 14 22:43:56 TheVoid automount[705]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:43:56 TheVoid automount[705]: failed to mount /mnt/floppy/floppy
Jul 14 22:43:56 TheVoid automount[707]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:43:56 TheVoid automount[707]: failed to mount /mnt/floppy/floppy
Jul 14 22:43:56 TheVoid automount[709]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:43:56 TheVoid automount[709]: failed to mount /mnt/floppy/floppy
Jul 14 22:43:56 TheVoid automount[713]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:43:56 TheVoid automount[713]: failed to mount /mnt/cd/cd
Jul 14 22:43:56 TheVoid automount[715]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:43:56 TheVoid automount[715]: failed to mount /mnt/cd/cd
Jul 14 22:43:56 TheVoid automount[717]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:43:56 TheVoid automount[717]: failed to mount /mnt/cd/cd
Jul 14 22:44:25 TheVoid automount[829]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:44:25 TheVoid automount[829]: failed to mount /mnt/floppy/floppy
Jul 14 22:44:25 TheVoid automount[831]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:44:25 TheVoid automount[831]: failed to mount /mnt/floppy/floppy
Jul 14 22:44:25 TheVoid automount[833]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:44:25 TheVoid automount[833]: failed to mount /mnt/floppy/floppy
Jul 14 22:44:25 TheVoid automount[837]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:44:25 TheVoid automount[837]: failed to mount /mnt/cd/cd
Jul 14 22:44:25 TheVoid automount[839]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:44:25 TheVoid automount[839]: failed to mount /mnt/cd/cd
Jul 14 22:44:25 TheVoid automount[841]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:44:25 TheVoid automount[841]: failed to mount /mnt/cd/cd
Jul 14 22:45:23 TheVoid automount[1021]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:45:23 TheVoid automount[1021]: failed to mount /mnt/floppy/floppy
Jul 14 22:45:23 TheVoid automount[1023]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:45:23 TheVoid automount[1023]: failed to mount /mnt/floppy/floppy
Jul 14 22:45:23 TheVoid automount[1025]: mount(generic): failed to mount /dev/fd0 (type msdos) on /mnt/floppy/floppy
Jul 14 22:45:23 TheVoid automount[1025]: failed to mount /mnt/floppy/floppy
Jul 14 22:45:23 TheVoid automount[1029]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:45:23 TheVoid automount[1029]: failed to mount /mnt/cd/cd
Jul 14 22:45:23 TheVoid automount[1031]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:45:23 TheVoid automount[1031]: failed to mount /mnt/cd/cd
Jul 14 22:45:23 TheVoid automount[1033]: mount(generic): failed to mount /dev/hdd (type iso9660) on /mnt/cd/cd
Jul 14 22:45:23 TheVoid automount[1033]: failed to mount /mnt/cd/cd
Jul 14 22:49:56 TheVoid automount[1676]: mount(generic): failed to mount /dev/fd0 (type msdos) on /floppy/floppy
Jul 14 22:49:56 TheVoid automount[1676]: failed to mount /floppy/floppy
Jul 14 22:50:34 TheVoid automount[1718]: mount(generic): failed to mount /dev/fd0 (type msdos) on /floppy/floppy
Jul 14 22:50:34 TheVoid automount[1718]: failed to mount /floppy/floppy
Jul 14 22:51:41 TheVoid automount[1792]: mount(generic): failed to mount /dev/fd0 (type msdos) on /floppy/floppy
Jul 14 22:51:41 TheVoid automount[1792]: failed to mount /floppy/floppy
Jul 14 23:16:35 TheVoid automount[3459]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/cd/dvd
Jul 14 23:16:35 TheVoid automount[3459]: failed to mount /mnt/cd/dvd
Jul 14 23:16:35 TheVoid automount[3461]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/cd/dvd
Jul 14 23:16:35 TheVoid automount[3461]: failed to mount /mnt/cd/dvd
Jul 14 23:16:35 TheVoid automount[3463]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/cd/dvd
Jul 14 23:16:35 TheVoid automount[3463]: failed to mount /mnt/cd/dvd
Jul 14 23:32:40 TheVoid automount[5452]: mount_autofs: already mounted
Jul 14 23:32:40 TheVoid automount[5452]: /mnt: mount failed!
Jul 14 23:32:50 TheVoid automount[5466]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/dvd
Jul 14 23:32:50 TheVoid automount[5466]: failed to mount /mnt/dvd
Jul 14 23:32:50 TheVoid automount[5469]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/dvd
Jul 14 23:32:50 TheVoid automount[5469]: failed to mount /mnt/dvd
Jul 14 23:32:50 TheVoid automount[5471]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/dvd
Jul 14 23:32:50 TheVoid automount[5471]: failed to mount /mnt/dvd
Jul 14 23:52:59 TheVoid automount[1091]: failed to mount /mnt/cd/dvd4
Jul 14 23:53:01 TheVoid automount[1096]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/cd/dvd
Jul 14 23:53:01 TheVoid automount[1096]: failed to mount /mnt/cd/dvd
Jul 14 23:53:01 TheVoid automount[1098]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/cd/dvd
Jul 14 23:53:01 TheVoid automount[1098]: failed to mount /mnt/cd/dvd
Jul 14 23:53:01 TheVoid automount[1100]: mount(generic): failed to mount /dev/hdc (type iso9660) on /mnt/cd/dvd
Jul 14 23:53:01 TheVoid automount[1100]: failed to mount /mnt/cd/dvd
Jul 15 00:09:24 TheVoid automount[1111]: mount(generic): failed to mount /dev/hdc (type iso9660) on /cd/dvd
Jul 15 00:09:24 TheVoid automount[1111]: failed to mount /cd/dvd
Jul 15 00:09:24 TheVoid automount[1113]: mount(generic): failed to mount /dev/hdc (type iso9660) on /cd/dvd
Jul 15 00:09:24 TheVoid automount[1113]: failed to mount /cd/dvd
Jul 15 00:09:24 TheVoid automount[1115]: mount(generic): failed to mount /dev/hdc (type iso9660) on /cd/dvd
Jul 15 00:09:24 TheVoid automount[1115]: failed to mount /cd/dvd
Jul 15 17:02:05 TheVoid automount[2608]: mount_autofs: already mounted
Jul 15 17:02:05 TheVoid automount[2608]: /cd: mount failed!
Jul 15 23:29:21 TheVoid automount[25679]: failed to mount /cd/.hidden
Jul 15 23:29:28 TheVoid automount[25694]: failed to mount /floppy/.hidden
Jul 16 00:00:16 TheVoid automount[29607]: failed to mount /cd/.hidden
Jul 16 00:51:21 TheVoid automount[321]: parse(sun): unknown option: -timeout
Jul 16 00:51:21 TheVoid automount[333]: parse(sun): unknown option: -timeout
Jul 16 00:53:38 TheVoid automount[951]: parse(sun): unknown option: -timeout
Jul 16 00:53:38 TheVoid automount[953]: parse(sun): unknown option: -timeout
Jul 16 01:32:23 TheVoid automount[953]: parse(sun): unknown option: -timeout
Jul 16 01:32:23 TheVoid automount[955]: parse(sun): unknown option: -timeout
Jul 16 01:55:17 TheVoid automount[948]: parse(sun): unknown option: -timeout
Jul 16 01:55:17 TheVoid automount[950]: parse(sun): unknown option: -timeout
Jul 16 02:01:14 TheVoid automount[949]: parse(sun): unknown option: -timeout
Jul 16 02:01:15 TheVoid automount[951]: parse(sun): unknown option: -timeout

didnt find anything relevant in dmesg but those unknown options look a possibilty
 
Old 07-15-2005, 08:21 PM   #10
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Original Poster
Rep: Reputation: 285Reputation: 285Reputation: 285
deleted --timeout from auto.master

et voila problem solved THX

but dont i need them to tell when to unmount etc? specially for floppies...
 
Old 07-15-2005, 08:32 PM   #11
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
Also you may want to comment the fstab lines about floppy, hdc and hdd

And in auto.floppy, try use -fstype=vfat
 
Old 07-15-2005, 08:33 PM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Original Poster
Rep: Reputation: 285Reputation: 285Reputation: 285
ok thx
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automounting with autofs not working.. logicalfuzz Linux - Networking 2 11-21-2005 05:41 AM
autofs kemkem42 Linux - Software 1 09-22-2005 01:22 PM
Using Autofs guygriffiths Linux - Software 1 09-17-2003 10:31 AM
Autofs...help please yourcompadre Linux - Networking 0 06-03-2003 09:07 PM
Please help! autofs foetus66 Linux - General 1 03-25-2003 07:47 AM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
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