staging.inyokaproject.org

AutoFS - funktioniert mit CD-Laufwerk nicht, wie's sollte

Status: Ungelöst | Ubuntu-Version: Server 20.04 (Focal Fossa)
Antworten |

heiko.ne

Anmeldungsdatum:
13. Februar 2017

Beiträge: Zähle...

Hallo zusammen,

ich habe eine Frage zu AutoFS, bei der ich mit diversen Foren und Anleitungen leider nicht weiter gekommen bin. Ich möchte gerne, dass das CD-Laufwerk meines Servers (/dev/sr0 bzw. auch verlinkt zu /dev/cdrom) automatisch gemountet wird, wenn eine CD eingelegt wird.

Dazu habe ich das Paket autofs per APT installliert und diese beiden Dateien entsprechend im Einsatz:

/etc/auto.master:

# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
/misc   /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
#/net   -hosts
#
# Include /etc/auto.master.d/*.autofs
# The included files must conform to the format of this file.
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master

/etc/auto.misc:

# 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

cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# 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

Ich hätte jetzt eigentlich erwartet, dass mit einem "eject /dev/sr0" und anschließendem "eject -t /dev/sr0" unter "/misc" ein Ordner cd angelegt werden würde, aber nichts geschieht ☹. Natürlich habe ich den den Dienst "autofs" auch neugestartet.

Das Syslog gibt gibt folgendes aus - die Einträge zum "automount" verstehe ich da nicht:

Jun  2 19:56:25 sharkoon automount[20613]: key "sysfs" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "proc" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "udev" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "devpts" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "tmpfs" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "securityfs" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "cgroup2" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "cgroup" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "pstore" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "bpf" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "mqueue" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "debugfs" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "hugetlbfs" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "systemd-1" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "tracefs" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "fusectl" not found in map source(s).
Jun  2 19:56:25 sharkoon automount[20613]: key "https:" not found in map source(s).
Jun  2 19:56:48 sharkoon kernel: [108207.557808] ata10.00: failed to read SCR 1 (Emask=0x40)
Jun  2 19:56:48 sharkoon kernel: [108207.557813] ata10.01: failed to read SCR 1 (Emask=0x40)
Jun  2 19:56:48 sharkoon kernel: [108207.557814] ata10.02: failed to read SCR 1 (Emask=0x40)
Jun  2 19:56:50 sharkoon kernel: [108208.929828] ata10.15: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun  2 19:56:50 sharkoon kernel: [108209.271376] ahci 0000:02:00.0: FBS is disabled
Jun  2 19:56:50 sharkoon kernel: [108209.429810] ahci 0000:02:00.0: FBS is enabled
Jun  2 19:56:50 sharkoon kernel: [108209.430565] ata10.00: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
Jun  2 19:56:51 sharkoon kernel: [108209.747642] ata10.01: SATA link down (SStatus 0 SControl 320)
Jun  2 19:56:51 sharkoon kernel: [108210.058467] ahci 0000:02:00.0: FBS is disabled
Jun  2 19:56:51 sharkoon kernel: [108210.217839] ahci 0000:02:00.0: FBS is enabled
Jun  2 19:56:51 sharkoon kernel: [108210.218670] ata10.02: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
Jun  2 19:56:51 sharkoon kernel: [108210.224790] ata10.00: configured for UDMA/66
Jun  2 19:56:51 sharkoon kernel: [108210.236155] ata10.02: configured for UDMA/133

Ich glaube, ich habe irgendwas übersehen, aber ich finds nicht! Brauche ich z.B. noch ein fstab-Eintrag? Oder, oder, oder ... ❓ Vielleicht kann mir hier jemand den richtigen Tipp geben.

Gruß und Dank

Heiko

Antworten |