LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ (https://www.linuxquestions.org/questions/slackware-14/automount-mount-generic-failed-to-mount-null-type-iso9660-on-mnt-media-374003/)

vasudevadas 10-17-2005 02:03 PM

automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/
 
Hi, I am trying to get automounting to work on my Slackware 10.0 box so it's a bit friendlier as a home workstation, which is how I am using it. (It is not a server). Mounting my CD-ROMs by hand is a pain and shouldn't be necessary in this day and age!

I followed the advice given in this thread:

http://www.linuxquestions.org/questi...postid=1149234

but it still is not working for me. The daemon is running:

Code:

root@radhagovinda:/mnt/media# ps -ef | grep auto
root      3059    1  0 18:52 pts/2    00:00:00 /usr/sbin/automount -p /var/run/automount.pid -t 3 /mnt/media file /etc/auto.media -timeout=3

but whenever I try to access an automounted device, I get some information in the log file /var/log/messages like this:

Code:

Oct 17 18:53:18 radhagovinda automount[3059]: attempting to mount entry /mnt/media/cdrom0
Oct 17 18:53:18 radhagovinda automount[3072]: >> Usage: mount -V                : print version
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount -h                : print this help
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount                    : list mounted filesystems
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount -l                : idem, including volume labels
Oct 17 18:53:18 radhagovinda automount[3072]: >> So far the informational part. Next the mounting.
Oct 17 18:53:18 radhagovinda automount[3072]: >> The command is `mount [-t fstype] something somewhere'.
Oct 17 18:53:18 radhagovinda automount[3072]: >> Details found in /etc/fstab may be omitted.
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount -a [-t|-O] ...    : mount all stuff from /etc/fstab
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount device            : mount device at the known place
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount directory          : mount known device here
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount -t type dev dir    : ordinary mount command
Oct 17 18:53:18 radhagovinda automount[3072]: >> Note that one does not really mount a device, one mounts
Oct 17 18:53:18 radhagovinda automount[3072]: >> a filesystem (of the given type) found on the device.
Oct 17 18:53:18 radhagovinda automount[3072]: >> One can also mount an already visible directory tree elsewhere:
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount --bind olddir newdir
Oct 17 18:53:18 radhagovinda automount[3072]: >> or move a subtree:
Oct 17 18:53:18 radhagovinda automount[3072]: >>        mount --move olddir newdir
Oct 17 18:53:18 radhagovinda automount[3072]: >> A device can be given by name, say /dev/hda1 or /dev/cdrom,
Oct 17 18:53:18 radhagovinda automount[3072]: >> or by label, using  -L label  or by uuid, using  -U uuid .
Oct 17 18:53:18 radhagovinda automount[3072]: >> Other options: [-nfFrsvw] [-o options] [-p passwdfd].
Oct 17 18:53:18 radhagovinda automount[3072]: >> For many more details, say  man 8 mount .
Oct 17 18:53:18 radhagovinda automount[3072]: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/cdrom0

which looks very helpful but turns out, on closer inspection, not to be any help at all!

My configuration files are:

/etc/auto.master:
Code:

# /etc/auto.master
#
/mnt/media /etc/auto.media --timeout=3

/etc/auto.media:
Code:

# /etc/auto.media
#
floppy -fstype=vfat,sync,user,umask=002,gid=users :/dev/fd0
cdrom0 -fstype=iso9660,ro:/dev/hda
cdrom1 -fstype=iso9660,ro:/dev/hdb

Any tips on what to look for/try/read will be very gratefully received! Thanks for reading this.

egag 10-17-2005 02:22 PM

Code:

cdrom0 -fstype=iso9660,ro :/dev/hda
                        ^

maybe put a " " ( space ) there. ( above the ^ ).

egag

vasudevadas 10-17-2005 02:34 PM

Aha!
 
What it actually needed was:

Code:

cdrom0 -fstype=iso9660,ro :/dev/hda
cdrom1 -fstype=iso9660,ro :/dev/hdb
                        ^
                        Space here

But thank you very much! You put me on the right track. It works fine now.

egag 10-17-2005 02:50 PM

sorry, but i don't see the difference .
but nice you got it working.

egag

vasudevadas 10-17-2005 02:53 PM

I think we are having font issues!

egag 10-17-2005 03:05 PM

oh...i will use
Code:

..
next time... :)

( i edited my post )

egag


All times are GMT -5. The time now is 07:23 PM.