LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   automounting/rc.autofs (https://www.linuxquestions.org/questions/slackware-14/automounting-rc-autofs-343578/)

dive 07-15-2005 05:35 PM

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

keefaz 07-15-2005 06:21 PM

autofs is for the kernel side,
you need automount daemon from the user side

Why don't you install autofs slackware package ?

dive 07-15-2005 06:59 PM

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

keefaz 07-15-2005 07:04 PM

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

What does mount say ?

dive 07-15-2005 07:37 PM

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)

keefaz 07-15-2005 07:40 PM

Great, it works ;)

Put a data CD in your DVD drive and try :
ls /cd/dvd

dive 07-15-2005 08:04 PM

ls: /cd/dvd: No such file or directory
bash-3.00$

must be somthing wrong somewhere but can figue it out...

keefaz 07-15-2005 08:05 PM

What do dmesg and /var/log/syslog say ?

dive 07-15-2005 08:17 PM

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

dive 07-15-2005 08:21 PM

deleted --timeout from auto.master

et voila problem solved THX :cool:

but dont i need them to tell when to unmount etc? specially for floppies...

keefaz 07-15-2005 08:32 PM

Also you may want to comment the fstab lines about floppy, hdc and hdd

And in auto.floppy, try use -fstype=vfat

dive 07-15-2005 08:33 PM

ok thx


All times are GMT -5. The time now is 07:52 AM.