Die K Desktopumgebung

6.2 How do I mount/unmount a device from the desktop?

There are two steps involved:

Make sure you are allowed to mount/unmount the device

Normally, only root is allowed to mount/unmount devices. If you are not running KDE as root (and this is generally considered a bad idea :), you must set the right for users to mount a device in /etc/fstab. This means to add the option user to the options of the file system you want to mount.

For example, to mount the floppy, your /etc/fstab should include

 /dev/fd0   /floppy   msdos   noauto,user,sync 0 0

Create a kdelnk file for the filesystem

An example for a device kdelnk file is:

 # KDE Config File
 [KDE Desktop Entry]
 UnmountIcon=3floppy_unmount.xpm
 MountPoint=/floppy
 Icon=3floppy_mount.xpm
 Dev=/dev/fd0
 ReadOnly=0
 FSType=default
 Type=FSDevice
 Comment=Floppy Disc