Kann ich CDs automatisch mounten und ein Desktopsymbol unter Gnome auf SLED 11 erstellen?

890
eleven81

Ich möchte eine CD-ROM einlegen und automatisch an einem beliebigen Ort einhängen /media/cdromund ein Symbol auf dem Gnome-Desktop erstellen, während Sie als Nicht-Root-Benutzer unter SLED 11 angemeldet sind.

Wie kann ich das erreichen?

0

2 Antworten auf die Frage

1
slm

You can accomplish what you want with autofs. Once you've installed autofs you need to edit autofs' master file, /etc/auto.master. In this file you typically specify a mount point (/media) in your case and a resource file that says mounts all these things under the mount point.

For example in my auto.master file:

/misc /etc/auto.misc 

This tells autofs to create a mount point, /misc and mount everything in the file /etc/auto.misc under it.

Contents of auto.misc:

cdrom -fstype=auto :/dev/sda removable -fstype=ext4 :/dev/hdd 

These are just examples, for more information consult the man page for auto.master. Autofs is very powerful and can automount from a variety of sources, NIS, LDAP, files, SMB, FTP sites, etc.

0
BloodPhilia

Ich bin nicht sicher, wie das Symbol erstellt werden soll. Versuchen Sie jedoch, den Befehl automount anstelle von mount zu verwenden.

automount /dev/<device> /media/cdrom 

Erstellen Sie als Link auf Ihrem Desktop einen Link zu / media / cdrom. Wenn Automount korrekt eingestellt ist, wird das Gerät beim Zugriff auf den Mountpoint automatisch gemountet.

Ich bekomme "Automount: Befehl nicht gefunden". eleven81 vor 14 Jahren 0
Installieren Sie "autofs" oder "automount". BloodPhilia vor 14 Jahren 0
Es scheint, dass sich "automount" nicht in den Repositories befindet, aber "autofs" ist, aber im Software-Management nicht angezeigt wird. eleven81 vor 14 Jahren 0
Suchen Sie nach Optionen, um "erweiterte" / "Entwickler" -Pakete (oder ähnliches) in der Softwareverwaltung anzuzeigen BloodPhilia vor 14 Jahren 0
Sie können auch versuchen, Folgendes auszuführen: `zypper install autofs` in der Befehlszeile. BloodPhilia vor 14 Jahren 0