|
SpaceFM Homepage Downloads News Wiki Report Issues README User's Manual |
SpaceFM User's Manual This manual uses your browser's default settings for fonts, font sizes, and colors. TIP: For help within SpaceFM, right-click on a menu item and select Help. Or, highlight the menu item (hover your mouse cursor over it) and press F1. Some dialogs also include a Help button which links to this manual.
Introduction Installation Invocation | ||||||||||||||||||||||
|
| |||||||||||||||||||||||
Contents
|
Highlights
SpaceFM is a multi-panel tabbed file and desktop manager for Linux with built-in VFS, udev- or HAL-based device manager, customisable menu system, and bash integration. SpaceFM aims to provide a stable, capable file manager with significant customisation capabilities.
| ||||||||||||||||||||||
Contents
|
History
SpaceFM was originally developed from a fork of the legacy PCManFM file manager. When PCManFM reached version 0.5.2 (aka 'the legacy version'), the original author (Hon Jen Yee) abandoned it for a major rewrite which made later versions (the 0.9.x series) dependent on gvfs and other components. At about this same time, PCManFM-Mod was created as a minor fork of the legacy version which added features, addressed bugs, and kept the legacy version alive for those who prefered it for its light dependencies and added features. PCManFM-Mod was later used as a base for developing SpaceFM, which included an extensible user interface, multiple panel support, a new udev device manager, inotify support, and removed dependencies on fam/gamin and HAL. Much of the internal virtual filesystem (VFS), which had been developed and debugged in legacy PCManFM and PCManFM-Mod, was retained and extended, providing SpaceFM with a reliable VFS to build upon. Due to the extensive changes in many parts of the project, SpaceFM was released with its new name as an alpha test version in January 2012. With version 0.7.5 in April 2012, SpaceFM replaced udisks with direct udev support for device detection and information, and support for multiple mount solutions including udevil (a mount program developed specifically for SpaceFM), pmount, udisks v1 or v2, or any program you specify. When used with udevil or a custom protocol handler, this update also added support for network filesystems. In 2012, the GTK3 version of SpaceFM was introduced. Rather than abandoning GTK2, users can choose what version of the GTK+ library (2.18 thru 3.x) they want to use with SpaceFM. In 2013-2014, improvements included extending the features of SpaceFM's Desktop Manager, a new Item Properties dialog for adding and customising menu items, socket commands for interacting with a running instance, and an improved panel configuration memory. In 2014-2015, customisable handlers were added, greatly extending SpaceFM's ability to open devices and protocols, and handle archives and files. Also, a new Bookmarks side pane was added to include submenus and more powerful bookmarks. Other changes included the addition of video thumbnails and a transparent desktop background mode.
| ||||||||||||||||||||||
|
| |||||||||||||||||||||||
Contents
|
Downloads
SpaceFM is included in most distro repositories. To find packages, forum threads, and other info for your distro, see the Distros Wiki. If there are no packages for your distro, or you prefer to build SpaceFM with custom build options, a net installer is available. For manual installation, or to create a custom Debian package, please see SpaceFM's detailed README file. SpaceFM's source code is distributed from Github. You can also check the homepage, latest news and report issues. The SpaceFM Wiki contains user-contributed plugins, help, and information. Everyone is encouraged to contribute to the wiki.
| ||||||||||||||||||||||
| Contents |
Net Installer
If there are no packages for your distro, or you prefer to build SpaceFM with custom build options, a net installer is available. The installer MUST be run in a terminal. It automatically downloads, builds and installs, and will work with most distros. From README: Install required build dependencies (below are Debian package names -
packages names on your distro may vary but should be similar):
autotools-dev bash build-essential intltool pkg-config fakeroot
shared-mime-info desktop-file-utils libc6 libcairo2 libglib2.0-0
libglib2.0-dev libpango1.0-0 libx11-6 libx11-dev libudev1
libudev-dev libffmpegthumbnailer-dev
Also, if using GTK2: libgtk2.0-0 (>=2.18) libgtk2.0-dev libgtk2.0-bin
OR, if using GTK3: libgtk-3-0 libgtk-3-dev libgtk-3-bin
Also, if you want to use startup notification: libstartup-notification0-dev
RECOMMENDED: udevil|pmount|udisks gksu|kdesu|ktsuss|lxqt-sudo eject lsof
wget
For additional mounting support: fuseiso curlftpfs jmtpfs gphotofs ifuse
To download the installer:
wget https://raw.github.com/IgnorantGuru/spacefm/next/spacefm-installer
# OR using curl:
curl -L -o spacefm-installer \
https://raw.github.com/IgnorantGuru/spacefm/next/spacefm-installer
To run the installer (MUST be run in a terminal):
bash spacefm-installer
Most users can press Enter to accept default values at both prompts.
The installer will display dependencies for your chosen build. If
any dependencies are missing, examine the error, install missing packages,
and try again.
If you have already downloaded the source, the installer can be run from
within the source directory to automatically build and install:
./spacefm-installer
When SpaceFM is installed, the installer is also installed to /usr/bin.
For automated options, run: spacefm-installer --help
To reinstall or upgrade, just run the installer again. For example, to
upgrade to the latest rolling release, just run:
spacefm-installer --version=next --prefix=/usr
To uninstall:
spacefm-installer --uninstall
Note: When using older distros, enabling kernel polling may be required. If
you insert a CD and SpaceFM still says 'no media', please see the ENABLE
KERNEL POLLING section in README.
| ||||||||||||||||||||||
Contents
|
Uninstall
If you installed from a package, use your package manager to remove SpaceFM. Or, use the installer to uninstall: spacefm-installer --uninstallOtherwise, run these commands AS ROOT: (these commands assume you installed with the default rm /usr/bin/spacefm /usr/bin/spacefm-auth /usr/bin/spacefm-installer
rm -r /usr/share/spacefm
rm /usr/share/pixmaps/spacefm.png
rm /usr/share/pixmaps/spacefm-*.png
rm /usr/share/icons/hicolor/*/apps/spacefm.png
rm /usr/share/icons/hicolor/*/apps/spacefm-*.png
rm /usr/share/icons/Faenza/apps/48/spacefm.png
rm /usr/share/icons/Faenza/apps/48/spacefm-*.png
rm /usr/share/locale/*/LC_MESSAGES/spacefm.mo
rm /usr/share/applications/spacefm*.desktop
rm /usr/share/mime/packages/spacefm-mime.xml
update-mime-database /usr/share/mime > /dev/null
update-desktop-database -q
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
| ||||||||||||||||||||||
|
| |||||||||||||||||||||||
| Contents |
Command Line
To see SpaceFM's command line usage run Usage:
spacefm [OPTION...] [DIR | FILE | URL | DEVICE]...
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options
Application Options:
-t, --new-tab Open folders in new tab of last window (default)
-r, --reuse-tab Open folder in current tab of last used window
-n, --no-saved-tabs Don't load saved tabs
-w, --new-window Open folders in new window
-p, --panel=P Open folders in panel 'P' (1-4)
--desktop Launch desktop manager daemon
--desktop-pref Show desktop settings
--show-pref=N Show Preferences ('N' is the Pref tab number)
-d, --daemon-mode Run as a daemon
-c, --config-dir=DIR Use DIR as configuration directory
-f, --find-files Show File Search
--set-wallpaper Set desktop wallpaper to FILE
-g, --dialog Show a custom dialog (See -g help)
-s, --socket-cmd Send a socket command (See -s help)
--profile=PROFILE No function - for compatibility only
--no-desktop No function - for compatibility only
--version Show version information
--display=DISPLAY X display to use
Normally, your session file and other user files are saved in ~/.config/spacefm/ To make SpaceFM read and save your files in another folder (~/.config/spacefm-alt in this example), stop ALL instances of SpaceFM and run: # first stop all instances:
killall spacefm
# then:
spacefm --config-dir ~/.config/spacefm-alt
IMPORTANT: The config directory path may not contain spaces or other special characters - keep it simple. Also, if /etc/xdg/spacefm/ exists, its contents will be copied to the config directory if it doesn't exist at startup.
| ||||||||||||||||||||||
| Contents |
Opening Windows
To open an initial SpaceFM window, run 'spacefm' with or without a folder specification: spacefm
# or to open a folder:
spacefm /home
# or to open several folders in tabs:
spacefm /home /usr/bin
# or to not open saved tabs:
spacefm -n
To open an additional folder in a new tab of the last used SpaceFM window on the current workspace: spacefm /etc To open a folder in the current tab of the last used SpaceFM window on the current workspace: spacefm -r /etc To simply bring the SpaceFM window to the top of other windows: spacefm -r To open a second window: spacefm -w
# or to open a specified folder in a second window:
spacefm -w /boot
# or to open a second window without loading saved tabs:
spacefm -wn
To open a File Search window: spacefm --find-files SpaceFM maintains a socket for each user/display combination, so when you open multiple windows using the same user and display, all windows are run from a single instance of SpaceFM. Unless a daemon or the desktop manager is running, SpaceFM will exit when all windows are closed. When a window is closed, the current folder tabs are saved to your session file if option File|Save Tabs is checked. The next time you run SpaceFM, these folder tabs will be re-opened in addition to opening tabs for any folders you specify on the command line (unless you specify -n on the command line). To specify a specific panel in which to open a folder: # open a folder in panel 2:
spacefm --panel=2 /usr/bin
To simply show and focus panel 2 in the last used window: spacefm --panel=2 As a more advanced example, consider wanting to open multiple SpaceFM windows, each containing different folder tabs in each panel, using a single command. For this, use a script like this to start SpaceFM:
#!/bin/bash
# open new window with two tabs in panel 1
spacefm -wn --panel=1 /etc /usr &
sleep 0.2
# add two tabs to panel 2
spacefm -rn --panel=2 /bin /lib
sleep 0.2
# open second window with two tabs in panel 1
spacefm -wn --panel=1 /boot /media
sleep 0.2
# add two tabs to panel 2 of second window
spacefm -rn --panel=2 /sbin /var
The sleep commands give time for the socket to be created and the newly created window to become the last used window. A shorter sleep time of 0.1 may also work on your system.
| ||||||||||||||||||||||
Contents
|
Opening Files, URLs, and Devices
If you specify a file rather than a folder on the command line, SpaceFM will open the file using the default MIME application for this file type (File Handlers are not used), but will not open a SpaceFM window: # open a file:
spacefm /etc/fstab
To open a URL (see Protocol Handlers):
spacefm ftp://ftp.us.debian.org/debian/To mount and open a device (see Device Handlers), or open an already mounted device: spacefm /dev/sdd1 | ||||||||||||||||||||||
| Contents |
GTK Themes
The GTK theme you're using may have a significant impact on SpaceFM's performance, and a non-working theme may create dysfunctional behavior. Because multiple panels in SpaceFM use many GUI elements, some themes cause SpaceFM to run more slowly. For example, the Clearlooks GTK2 theme has been observed to be very slow with SpaceFM, while the Raleigh theme is quite fast. SpaceFM may be built to use GTK v2 or v3. To see if your installed copy of SpaceFM is using GTK2 or GTK3 themes, run GTK 2 GTK2_RC_FILES=/usr/share/themes/Raleigh/gtk-2.0/gtkrc spacefm You can also test SpaceFM's speed with no theme, which should be faster than any theme: GTK2_RC_FILES="" spacefm To specify a GTK2 theme within a desktop file, copy SpaceFM's desktop file to your home folder: mkdir -p ~/.local/share/applications
cp /usr/share/applications/spacefm.desktop ~/.local/share/applications/
# OR
cp /usr/local/share/applications/spacefm.desktop ~/.local/share/applications/
Then open ~/.local/share/applications/spacefm.desktop in your editor and set the Exec= line using env. For example:
Exec=env GTK2_RC_FILES=/usr/share/themes/Raleigh/gtk-2.0/gtkrc spacefm GTK 3 | ||||||||||||||||||||||
| Contents |
Desktop Manager
SpaceFM includes a lightweight desktop manager to manage desktop icons and show wallpaper (or a transparent background). SpaceFM's DM works well with Openbox, for example, which doesn't include a desktop manager. To start a desktop manager daemon, first terminate any other software which is managing your desktop, then run: spacefm --desktop You can also run ( spacefm --desktop ) & While managing the desktop, SpaceFM's volume monitor will also be running, meaning that if configured to do so, it will automount devices. To set the wallpaper from the command line, run a command like: spacefm --set-wallpaper /home/user/wallpaper.jpg To open the desktop preferences window from the command line run: spacefm --desktop-pref To stop management of the desktop prematurely (before logoff), send spacefm a quit signal: killall spacefmLike other menus in SpaceFM, Design Mode may be used in the desktop's right-click menu to add custom menu items and set key shortcuts (which will be active when the desktop has focus). | ||||||||||||||||||||||
| Contents |
Daemon Mode
If you want SpaceFM always running in the background, ready to quickly open windows and automount volumes, but don't want it to manage the desktop, start a daemon instance of SpaceFM: spacefm -d No window will open in this case, but an instance will be started if not already running, and it will continue running for the duration of your X login session. You can also start the daemon from your login script. For example, if using Openbox, add this line to ~/.config/openbox/autostart.sh: (sleep 2 && spacefm -d) & One particular use for daemon mode is to make sure leftover folders in /media are removed. SpaceFM can unmount removable devices on exit to prevent folders remaining in /media at shutdown (if you check option Settings|Auto-Mount|Unmount On Exit). If running as a normal instance, this means devices will be unmounted whenever you close the last SpaceFM window. When running as a daemon (or as a desktop manager daemon), devices won't be unmounted until you logoff. To stop a daemon mode instance, send SpaceFM a quit signal: killall spacefm | ||||||||||||||||||||||
|
| |||||||||||||||||||||||
Contents
|
Frequently Asked Questions
How do I set or change key shortcuts and icons? How to I set or change the key to go Up a directory? Right-click on the file list, right-click on menu item Go|Up, and select Key Shortcut.How do I change the file list view, add/remove columns, etc.? How do I hide a menu item? How do I customise the toolbars? How do I create a custom menu item? Use Design Mode to add a New custom menu item.How do I move a custom menu item to another menu or menu position? How do I import a plugin to another menu? How do I create a new tab in the current folder? Right-click on any tab and select Tab Here (you can assign any key shortcut to this item using Design Mode).How do I make archives (tar.gz etc) open with an application? Why aren't all my thumbnails displayed? View|Preferences|Max Pic Size To Thumbnail may limit what pics are thumbnailed. | ||||||||||||||||||||||
|
| |||||||||||||||||||||||
| Contents |
Panels
SpaceFM includes up to four file manager panels in each window. Each panel represents a complete file manager, including tabbed directory contents and optionally shown side panes, toolbars, path bar, and status bar. Each panel can be hidden or shown via the View menu, or via the Panel Bar located to the right of the main menu bar. If shown, panels 1 and 2 are next to each other in the top half of the window, and panels 3 and 4 are in the bottom half. This allows horizontally arranged panels, vertically arranged panels, and combinations of both. NOTE: SpaceFM's main menu bar (File, View, etc.) is mostly used for program-wide settings and functions. Most adjustments for an individual panel's appearance can be made by right-clicking on the file list and selecting the View context menu (also available in the main View menu). This View menu will allow you to set which side panes and toolbars are visible in a panel, add and remove file list columns, set the list style and font, set the sort method, etc. The best way to use SpaceFM's memory for panel configurations is to select the panels you want visible, then arrange each panel as you want it to appear. Hide or show side panes and adjust their sizes, choose file list columns and adjust their widths, choose which toolbars are visible, etc. Each time you select a different combination of panels, you may need to do some further configuration until SpaceFM gets to know all the combinations you use and how you like them arranged. Many settings in each panel are specific to that panel. For example, a different font can be set for the file list or other panes in each panel. Also, each panel may have a different view style (Detailed, Compact, or Icons), different file list columns visible, different side panes visible, etc. Some panel settings use a four-state memory, and these settings may be different depending on the panel's relationship to other panels in the window. The four states are:
The four-state memory of each panel allows SpaceFM to remember how you configured each panel in combination with other panels. This makes it easier to show and hide panels on the fly without having to readjust columns, side panes, etc. SpaceFM will remember the selected columns (visibility), column widths, side pane visibility and sizes, and toolbar visibility for each state of each panel. For more advanced users, note that socket commands can be used to adjust panel configurations from a command or script. When set as event handlers, adjustments can be made automatically when GUI or other events occur, such as showing/hiding a panel or changing window size. If you maximize the SpaceFM window, any changes to column widths are not remembered (in any panel or in the task manager). This means that you can change column widths while maximized, and when you return to an unmaximized window state, your columns widths will revert to their original sizes. However, if you exit SpaceFM while the window is maximized, your column widths will be saved. When you restart SpaceFM it will open maximized, and any changes to column widths thereafter will be remembered while maximized (unless you unmaximize and maximize again). In fullscreen mode, neither changes to column widths nor to side pane heights are remembered. When you return to non-fullscreen mode, these will revert to their original sizes. Focus Highlighting However, sometimes it is necessary to know which panel has focus, such as when using keyboard shortcuts on selected files, or using a custom command or plugin in the main menus. For this purpose, SpaceFM provides an icon at the right of each panel's status bar. This icon will be enabled for the panel which has focus. If you would like a more prominent reminder, it is possible to set custom highlight colors for the focused panel's status bar text and background. To set highlight colors, right-click on the status bar of the panel and select Highlight Text or Highlight Bar. Each panel may use different highlight colors, or the same.
| ||||||||||||||||||||||
| Contents |
Path Bar
SpaceFM's Path Bar (location bar) is located in each panel above the file list in the panel's main toolbar. At its simplest, the Path Bar allows you to see the current folder's path, and you can enter a new path and press Enter to change to another folder. TIP: To place the cursor in the Path Bar, you can use Go|Focus|Path Bar, accessed from the right-click menu of the file list. By default, this is assigned to key shortcut Ctrl+L. In addition to displaying and accepting a folder path, SpaceFM's Path Bar has additional methods and uses as detailed below. Editing Keys
When the Path Bar has focus, it will steal the following keypresses (even if they are set as key shortcuts): visible characters without a modifier key, Enter, Home, Shift+Home, End, Shift+End, Delete, Tab, Backspace, Left, Shift+Left, Right, Shift+Right. Auto Seek To locate files within the current directory, use Find-As_You-Type Search or Actions|Select By Pattern. Completion Breadcrumbs Middle-Click Auto Seek File Path or Device Also, a device file (eg /dev/sdd1) may be entered in the path bar. The device will be mounted if needed, and the mount point directory of the device will be opened. Protocol URL Regardless of the protocol, most of SpaceFM's default protocol handlers accept URLs in the format: PROTOCOL://USERNAME:PASSWORD@HOST:PORT/SHARE WARNING: Including a password in the URL is a very unsafe mode of use, as your password is included in the command line and may be written to temporary and/or system files by SpaceFM or mount helpers. See documentation specific to the filesystem for other authentication methods offered, or enter your password when prompted. Some parts of the above URL format may be omitted. Examples include: ftp://mirrors.kernel.org
smb://user:pass@10.0.0.1:50/docs
ssh://user@sys.domain
mtp://
NFS and Samba (cifs) URLs may also be in the alternate formats:
NFSHOST:/SHARE
//SAMBAHOST/SHARE
For additional URL examples, see URL protocols and formats handled by udevil, which natively uses the same URL formats supported by SpaceFM.
In addition, custom protocol handlers may be added which accept URLs in the above formats, or in any format you prefer. URLs may also be opened via the main menu bar's File|Open URL item, which is equivalent to entering them in the Path Bar, or on the command line. TIP: You can sometimes right-click on a mounted network in the Devices List and select Bookmark to bookmark the URL for future use. Or, right-click on the Path Bar containing a URL and select New Bookmark. Or, edit an existing bookmark to contain a URL target. Command Line One or more command prefixes are required to tell SpaceFM how to run your command:
A Path Bar entry is interpreted as a command only if at least one of the above prefixes preceeds the command. A space after the prefix(es) is optional. For example, enter in the Path Bar: $ lsWhen you press Enter, ls will be run for the current directory, and a dialog will open showing the output. When using prefix '$', the command is run as a task (it will be listed in the Task Manager if it takes longer than a half second to run), and a popup dialog will open only if the command produces output or an error. In addition, the substitution variables defined in Command Line, and the bash script variables described in Command Script may also be used in Path Bar command lines. For example, to open a dialog showing the path of the current directory: $ echo Current Directory: %dOr to run umount in a terminal (+) as root (!) passing it the currently selected device (%v): +! umount %v When a plus sign (+) prefix is included, the command is run in a terminal, not as a task. When an exclamation point (!) prefix is included, the command is run as root. If the ampersand (&) prefix is included, the command is run and forgotten (no error or output will be shown). This is useful for starting an application. For example: & firefoxFor a reminder of prefixes and substitution variables, enter a lone dollar sign ($) in the Path Bar and press Enter. Or press F1 while the Path Bar has focus to open this manual. Command History Select By Pattern % *.aviWhen you press Enter, all filenames in the file list ending in ".avi" will be selected, and all other files will be unselected. If your pattern contains any uppercase characters, the matching will be case sensitive. For additional wildcard characters and pattern specifics, see IEEE Pattern Matching Notation. See also: Find-As-You-Type Search. Font | ||||||||||||||||||||||
Contents
|
Find-As-You-Type Search
When the file list has focus (click on the file list), pressing an alphanumeric key will open the Find-As-You-Type search box in the lower right corner of the file list, allowing you to quickly jump to a file. Press down or up arrow, or scroll wheel up/down, to go to the next or previous matched filename. In addition, Find-As-You-Type Search supports the following modes:
| ||||||||||||||||||||||
| Contents |
Rename Dialog
SpaceFM's Rename Dialog, accessed by right-clicking on a file and selecting Rename, does much more than rename files. It can move, copy, or create a link to the selected file or directory. It can also copy the target of a selected link, or create a new link to the target. By checking As Root, the function will be performed as the root user. The Option button allows you to add and remove fields from the dialog. The selected fields, which are extra-large for easy editing of long filenames, show different parts of the selected path, such as the name and extension, full filename, parent, or path. As you edit the file's path, you will be advised if the entered path already exists. If you use a path which doesn't exist, SpaceFM will create the necessary parents automatically. The Confirm Create option determines if you will be prompted before parents are created. The Browse button allows you to browse for a filename, parent, or path, and insert it into the dialog. TIPS: To select all the text in an entry, click the entry's label (eg 'Filename:'), press the Alt key shortcut, or use Tab. To quickly copy an entry's text to the clipboard, double- or middle-click on the entry's label (eg 'Filename:'). Multiple files can be selected in the file browser to rename a batch of files.
| ||||||||||||||||||||||
Contents
|
New File/Folder Dialog
The New File/Folder Dialog is opened by right-clicking on the file list and selecting New|File, Folder, or Link. This dialog works similarly to the Rename Dialog, allowing you to create files and folders in other paths, create as root, create relative links (eg a link to ../filename.txt), and create new files and folders using templates. SpaceFM looks in $XDG_TEMPLATES_DIR/, ~/Templates/, or ~/.templates/ to find template files. Templates are simply empty or partially filled files (of any type) used to create new files, so instead of an empty file you get a copy of the template file. You can place any files or links to files in your Templates folder. Subfolders in the templates folder can also be used to create new folders pre-filled with a set of files, or to organize templates. After you have finished entering the path for your new file or folder, you can press Create to create it, or the '& Open' button to create and open the file or folder in one step.
| ||||||||||||||||||||||
| Contents |
Bookmarks
SpaceFM's main Bookmarks menu works like most other menus - you can right-click in the menu to add custom menu items, and to cut, copy, and paste items to other menus. Custom menu items may be bookmarks which open folders, but they may also run commands or applications. This means that items in SpaceFM's bookmarks can run socket commands to open folders in specific panels, change view settings, run external programs, and perform other automated tasks. Items added to the Bookmarks menu may be shown in the Bookmarks side pane of each panel. To show the Bookmarks pane, select Show Bookmarks from the main Bookmarks menu, or right-click on a file and select View|Bookmarks. Right-click in the Bookmarks pane and enter the Settings submenu to adjust behavior. The Single Click option determines if a single- or double-click is required to open an item. New Tab, if checked, will open bookmarks in a new tab. Bookmark Icon and Submenu Icon are used to set the default icons used in the list, and individual item icons can also be configured via their Properties. The Font setting adjusts the font and font size used in the Bookmarks side pane. Finally, the Follow Dir option will cause the Bookmarks pane to follow the current directory. If a bookmark matches the current directory, it will be highlighted. If the matching bookmark is in a submenu, the submenu will be opened. Follow Dir is a per-panel setting. For example, you can turn it on in the Bookmarks pane of Panel 1, and turn it off in Panel 2. When Follow Dir is off, the bookmark selection will not change automatically. Tips:
To add a new bookmark targeting the current directory, select New Bookmark from the Bookmarks menu (a key shortcut may also be assigned to this item - right-click on it to set one), or right-click in the Bookmarks pane or menu and select New|Bookmark (which will ask you to select a directory target). To bookmark a single selected file or directory, or otherwise the current directory, right-click on the file list and select New|Bookmark. To bookmark a mounted URL, in some cases you can right-click on the URL in the Devices List and select Bookmark. Or, a URL or file/dir path in the Path Bar may be bookmarked by right-clicking on the Path Bar and selecting New Bookmark. To view or adjust the properties of a bookmark, right-click on it and select Properties. Note: The Properties dialog of all custom menu items includes a Context tab which determines when and how menu items are displayed based on the file browser's current context. Note that Context settings do not affect display of bookmarks in the Bookmarks side pane, which always shows all bookmarks. The Context settings WILL affect how items are shown in the main Bookmarks menu. Any single item or submenu of items in Bookmarks may be exported to a SpaceFM plugin file by right-clicking on the item and selecting Export. Plugin files created in this way can also be imported into any other menu. To export all items in Bookmarks, right-click on "Bookmarks" - the top item in the Bookmarks side pane - and select Export. This will create a special plugin file named "Bookmarks.spacefm-bookmarks.tar.gz". This file may then be imported into any SpaceFM menu, or into the Bookmarks side pane, by right-clicking and selecting Import|File. Note that this bookmarks plugin file CANNOT be installed or imported via the main Plugins menu. Some GNOME applications store bookmarks in GTK's bookmarks file (~/.config/gtk-3.0/bookmarks or the older ~/.gtk-bookmarks). This is a plain text file which can be edited manually. While SpaceFM is not a GNOME application and does not store its bookmarks in this file (the format of the file cannot store SpaceFM's specialized bookmarks and submenus), SpaceFM can import the contents of this file. To do so, right-click on an item in the Booksmarks side pane and select New|Import|GTK Bookmarks. All bookmarks will be imported into the current submenu (or, if you right-clicked on a submenu, then into the selected submenu). IMPORTANT: Note that importing hundreds of bookmarks into SpaceFM is not recommended. Due to their integration with the menu system, this may cause performance lags in the GUI. If you have many GTK bookmarks, you may wish to edit the file before importing it, or import them into a submenu and keep only those you need. In addition to importing GTK's bookmarks, these bookmarks are also shown in the GTK file and folder chooser dialogs used in SpaceFM. You will see the GTK bookmarks listed in the upper-left 'Places' pane of these dialogs, and you can use the plus (+) and minus (-) buttons there to add or remove bookmarks from that list (which will update the ~/.config/gtk-3.0/bookmarks file). Changing bookmarks in this 'Places' list has no effect on SpaceFM's Bookmarks menu.
| ||||||||||||||||||||||
|
| |||||||||||||||||||||||
| Contents |
Introduction
SpaceFM includes a programmable udev-based device manager which lists device volumes, allows you to mount and unmount devices, and detects changes, insertions, and removals. On events, SpaceFM can auto-mount and auto-open devices, and run commands you specify. In addition, perform-as-root commands allow you to mount and unmount as root; change volume labels; and check, format, erase, backup, and restore partitions. Like most parts of SpaceFM, the behavior and appearance of the device manager is customisable. Whenever SpaceFM is running, whether a window is visible or not, a volume monitor is running to monitor device events and take actions. The volume monitor requires the udevd daemon to be running for device event detection, and enabling kernel polling is recommended. SpaceFM mounts and unmounts devices using customisable Device Handlers which can use udevil (a mount program developed specifically for SpaceFM), pmount, the udisks command line tool (v1 or v2), or any program you specify. To troubleshoot behavior, you can run the same command lines in a terminal that SpaceFM uses, or create your own custom handlers or menu items to manipulate devices. NOTE: If you choose to use udisks with SpaceFM, note that SpaceFM does not configure udisks. It merely runs the udisks command line tool to mount and unmount devices (unless you install udevil, pmount or specify another program). If you receive the common 'Not Authorized' or other similar errors from udisks when mounting, or you are prompted for a password, this indicates that udisks (and policykit, etc.) are not properly installed or configured. This must be corrected in your system configuration, not in SpaceFM. Installing udevil is the quickest way to solve such problems. Deprecated HAL support can also be used in SpaceFM (alternate build required). However, SpaceFM's HAL device manager is far less capable than the udev-based version. It can only be used to manually mount and unmount devices. Thus the udev-based version is recommended, and this manual deals exclusively with the udev-based device manager. To have the device manager always running, responding to events even while no SpaceFM windows are open, run SpaceFM as a daemon or desktop manager. When testing the device manager, it may be useful to run the initial instance of SpaceFM in a terminal so that you can see additional diagnostic output as it's running. Just open a terminal window and run | ||||||||||||||||||||||
| Contents |
List
Each panel or tab in SpaceFM can display a Devices list to show devices and permit configuration of the underlying volume monitor. A Devices list is one interface to the volume monitor's information and actions. Even if multiple Devices lists are displayed or multiple SpaceFM windows are open, only one volume monitor will be running. To show or hide a Devices list in each panel, right-click on the file list and check or uncheck option View|Devices. You can also show or hide the list using the 'Devices' toggle tool item on a toolbar. The Devices list will display only removable and optical devices. If your Devices list is empty, this means there are no removable or optical devices with media, the udevd daemon is not installed or is not working properly on your system, or you may need to enable kernel polling for media detection. To show or hide additional devices, use the Show submenu. You can mount and open a device in the Devices list by simply left-clicking on it. The behavior of a left-click will vary depending on options New Tab and Single Click. Right-click on a device to show the Devices context menu. Middle-clicking on a device is equivalent to right-clicking on the device and selecting Remove / Eject. Thus to quickly remove a device, just middle-click on it.
| ||||||||||||||||||||||
| Contents |
Menu
Similar to the Devices List, SpaceFM's main menu bar and the desktop menu include Devices menus which list currently shown devices. Click on a device to mount and open it, or right-click on a device for additional options. Right-clicking on a device in these menus or in the Devices List shows the context menu described below. As in the Devices List, you can also middle-click on a device in the menu to 'Remove / Eject'. Like most menus in SpaceFM, to see the help for any menu item, hover your mouse cursor over the menu item and press F1. Alternatively, right-click on the menu item and select Help in the Design Menu. The Devices context menu includes: (not all items may be shown) Remove / Eject Next, if the volume is mounted, it will be unmounted, and if the device is ejectable, it will be ejected. If the device is removable, it is safe to remove it once the 'Remove / Eject' command has completed without errors, and any lights on the device indicate activity has stopped. (Even after the sync and unmount has finished, it may take a second or two for the device to stop flashing due to hardware caches. If the device has no activity indicator, it is best to wait 5 seconds before removing it.) If you click 'Remove / Eject' and nothing seems to happen, this also indicates the device is ready to be removed. When a device is removed or unmounted, any tabs showing directories on the device may be automatically closed. Middle-clicking on a device in the Devices list is equivalent to right-clicking the device and selecting 'Remove / Eject'. Thus to quickly remove a device, just middle-click on it. NOTE: SpaceFM does NOT disable or power-down usb ports or spin down disks when removing a device, it merely performs a sync to ensure data is written. Usually this is sufficient to prevent data loss. If powering down is required for your device, you must add a custom command to the Devices menu, or add the applicable command or option to the unmount handler. Reload Unmount Sync Open You can also open a device by simply left-clicking on it. The behavior of a left-click will vary depending on options New Tab and Single Click. To mount, SpaceFM runs the mount command from the appropriate Device Handler for the selected device. By default, udevil, pmount, or the udisks command line tool will be used. The mount point will be determined automatically by the mount program or handler, usually an automatically created subfolder in /media or /run/media/$USER. If it was automatically created, this subfolder will be automatically removed when the device is unmounted. If the device has an entry in /etc/fstab, that mount point may be used instead, and its mount directory will not be removed when unmounted. The device will generally be mounted using SpaceFM's Mount Options. If the device has an fstab entry, options specified there may take precedence, depending on your mount program, which may also automatically add or change some mount options. pmount does not support conventional mount options, so when using pmount as the mount command, options set in Mount Options will be ignored. Instead, you can include pmount's command line options in the device handler. Open In Tab works similarly to open, except that the device's mount point directory will be opened in a new tab, instead of reusing the current tab. This is also the default behavior of a left-click on a device if option New Tab is checked. Again, a left-click will not display an error, while selecting Tab will. Mount The device will generally be mounted using SpaceFM's Mount Options. If the device has an fstab entry, options specified there may take precedence. The mount program may also automatically add or change some mount options. pmount does not support conventional mount options, so when using pmount as the mount command, options set in Mount Options will be ignored. Instead, you can include pmount's command line options in the device handler. Re/mount Because most mount programs cannot perform a true remount, the device will be unmounted and mounted. Re/mount accepts extended mount options, as detailed in Mount Options. pmount does not support conventional mount options, so when using pmount as the mount command, options set here will be ignored. Instead, you can include pmount's command line options in the device handler. Bookmark Note: Any custom menu items you add directly after the Bookmark menu item in the Devices menu will also only appear if the selected device is a mounted network, providing an automatic context. Root For details, see the Root section below. Settings For details, see the Settings section below. Properties If mounted, any mtab lines related to the device will be shown in DEVICE, showing you how and where the device is mounted. USAGE will show information about the filesystem on the device. If the device has any related lines in the /etc/fstab file, these will be listed in FSTAB. These may include lines which are disabled (# comments). In the INFO section, the device's UUID will be listed if known, as well as detailed information from udev on the device's properties. The PROCESSES section, shown for mounted devices, uses lsof to display any processes which are using the device. Sometimes when unmounting a device, you will receive an error that the device is in use. You can check this processes list to see what is holding the device open. Custom Menus There are several provided bash variables which your commands can use to get information about the currently selected device:
"$fm_device" selected device (eg /dev/sr0) ( same as %v )
"$fm_device_udi" device ID
"$fm_device_mount_point" device mount point if mounted (eg /media/dvd) (%m)
"$fm_device_label" device volume label ( same as %l )
"$fm_device_fstype" device fs_type (eg vfat)
"$fm_device_size" device volume size in bytes
"$fm_device_display_name" device display name
"$fm_device_icon" icon currently shown for this device
$fm_device_is_mounted device is mounted (0=no or 1=yes)
$fm_device_is_optical device is an optical drive (0 or 1)
$fm_device_is_table a partition table (usually a whole device)
$fm_device_is_floppy device is a floppy drive (0 or 1)
$fm_device_is_removable device appears to be removable (0 or 1)
$fm_device_is_audiocd optical device contains an audio CD (0 or 1)
$fm_device_is_dvd optical device contains a DVD (0 or 1)
$fm_device_is_blank device contains blank media (0 or 1)
$fm_device_is_mountable device APPEARS to be mountable (0 or 1)
$fm_device_nopolicy policy_noauto set (no automount) (0 or 1)
"$fm_panel3_device" panel 3 selected device (eg /dev/sdd1)
"$fm_panel3_device_udi" panel 3 device ID
... (all these are the same as above for each panel)
For example, to add a custom command which shows the size of the currently selected device in bytes, use this command line:
echo "$fm_device_size" | ||||||||||||||||||||||
| Contents |
Root
The Root submenu allows you to perform actions on a device as root. When performing commands as root, SpaceFM will use your configured Terminal SU or Graphical SU program to run the command. When most items on this menu are selected, a dialog will open showing you the exact command to be run, and allowing you to edit it. If SpaceFM knows how to perform the function on the selected device type, a default command will already be present. In order to edit the default command, you must first depress the Edit button. To restore the command to its default, depress Edit and then press Default. Most items accept the substitution variable %v in their command, which is used to insert the device file (eg /dev/sda2). Some commands accept additional substitution variables. These will be displayed in the dialog's instructions. When performing commands which result in data loss, such as format, the exact command line to be run will be displayed in the terminal after you enter the root password. You will need to type the word 'yes' and press Enter to execute the command. The following functions are included: Unmount Mount Label Next the command used to change the volume label on this filesystem type will be shown. If SpaceFM doesn't know how to change the volume label for this type, the command will be blank and you will have to supply your own. This dialog remembers the change label command used for each filesystem type. When you click OK, your Graphical SU program will be used to run the command (no terminal will open). IMPORTANT: SpaceFM will display a warning in both dialogs if the device is currently mounted. Although some filesystem types permit it, it is generally good practice to unmount a volume before changing its label. Check Check may only be used on unmounted filesystems. Format The submenu contains common filesystem types to choose from. To format, select the type and review or edit the command in the dialog. This dialog remembers the format command used for each filesystem type. When you click OK, the command will be run in a terminal. After entering the root password, you will be shown the exact command to be run, and you must type the word 'yes' and press Enter to execute it. The format submenu also contain 'zero' and 'urandom'. If selected, the device will be overwritten with zeroes or random values to completely erase it. As with filesystem formats, you can edit the particular command used. Edit with care! To test out the format function without actually formatting anything, try using format on a DVD drive, or an empty drive. The entire procedure will be the same - you will merely receive an error when the command is finally executed. This will allow you to safely review how SpaceFM conducts a format. Just be sure you know which device is the DVD or empty drive! Backup|FSArchiver FSArchiver (website) is a modern program which creates an archive of a filesystem. It is similar to tar, except that the archive includes checksums, can be restored if corrupted, and includes additional information. One disadvantage to using FSArchiver is that unlike Partimage, the on disk locations of files will change when restored. For most files this won't matter, but in the case of grub's stage files, moving them can cause the grub boot process to no longer work. Thus if you restore a volume containing grub's files using an FSArchiver archive, you will then need to reinstall grub to the MBR (so that it knows accurately where it's files are - these locations are stored in the MBR's boot code). An advantage to FSArchiver is that it supports more filesystem types than Partimage, including ext4 and btrfs, and several compression methods. Other advantages include file exclusion, multi-thread compression, and encryption. The data may also be restored to any partition large enough to hold it, regardless of the original partition's size. FSArchiver is also currently maintained, while Partimage is no longer actively developed. There are additional differences between Partimage and FSArchiver - see their websites for details. By default, FSArchiver will backup unmounted volumes and volumes mounted read-only. To backup a volume which is mounted read-write, you must add --allow-rw-mounted to the command. This may create inconsistencies in the backup. Run To create an FSArchiver backup, right-click on a device and select Root|Backup|FSArchiver. A file save dialog will open asking you to select a filename and location. Keep in mind that the archive size may be 50% or more of the total data saved in the filesystem. Choose a save location with ample space. Next a command dialog will show you the FSArchiver command to be used, and allow you to edit it. When you click OK, the command will be run immediately in a terminal. Backup|Partimage
To create a Partimage backup, right-click on an unmounted device and select Root|Backup|Partimage. A file save dialog will open asking you to select a filename and location. Keep in mind that the archive size may be 50% or more of the total data saved in the filesystem. Choose a save location with ample space. Note that Partimage will add a '.000' volume extension to the name you select. Next a command dialog will show you the Partimage command to be used, and allow you to edit it. By default, the command will break the archive into archive volumes 4G in size. This can be adjusted by carefully editing the command. When you click OK, the command will be run immediately in a terminal. Backup|MBR After selecting Root|Backup|MBR, a file save dialog will open asking you to select a filename and location. This is a very small backup file. When you click OK, a terminal will open and the command will be executed immediately. (It is not possible to edit the MBR backup command.) Restore|From File Next a dialog will show the restoration command to be used, and allow you to edit it. When you click OK, a terminal will open prompting you for the root password. Once entered, the exact command to be run will be shown. You will need to type the word 'yes' and press Enter to execute it. IMPORTANT: Restoring data to a partition overwrites any existing filesystem. After restoring from an FSArchiver backup, if the filesystem contains grub's files, you may need to reinstall grub to the MBR to restore normal boot behavior. (Reinstalling grub is not handled by SpaceFM, and is outside the scope of this manual, but you can create a custom command to do so.) When restoring an MBR, only the first 448 bytes of the MBR are restored. This portion contains the boot code. The remaining portion of the MBR contains the primary partition table. This portion is NOT restored (it is generally not useful to do so, and in the case of an out of date backup, could cause extreme data loss). However, the MBR backup file created by SpaceFM does contain the full 512 byte MBR, so if you do want to restore the entire MBR, consult appropriate instructions such as these. To practice restoring a file without making real changes, consider restoring to a DVD or empty drive as the target. This will allow you to see the entire process, except that the final command will fail when executed. Just be sure you know which device is your DVD or empty drive! Restore|File Info Restore|File Info makes no changes to the backup file or any device - it only displays information about the backup file. It may need to run as root to do so. Edit fstab | ||||||||||||||||||||||
| Contents |
Settings
The Settings submenu is your interface for controlling the appearance and behavior of the Devices list and volume monitor. Options include: Show|Internal Drives Internal drives are often treated differently by mount programs. You may not be able to mount or unmount them as a normal (non-root) user without making changes to /etc/fstab or to the mount program's configuration. Note that some external esata drives report themselves as internal, so they may not be shown unless Show|Internal Drives is checked. Another solution with these drives is to enter an exception for them in Show|Volumes. Show|Empty Drives Properties can still be obtained on empty drives, and you can use Remove or Reload to open or close the tray. NOTE: For proper detection of media, enabling kernel polling may be required. Show|Partition Tables IMPORTANT: For some purposes, a whole device file, such as /dev/sda, designates not just the primary partition table, but also the entire device including partitions (/dev/sda1, /dev/sda2, etc.) Thus if you format /dev/sda, for example, you will overwrite all partitions on the entire device. However, in some cases a device uses no partitions, and the entire device has been formatted with a single filesystem. In this case, the Devices list does not consider the whole device file a partition table, so option Show|Partition Tables will have no effect on it being shown. The size displayed for a whole device file (eg /dev/sda) will generally be the size of the entire device (including all partitions), regardless of whether it contains a partition table or a filesystem. Specifically, SpaceFM considers a device to be a partition table if its udev properties include a 'partition table:' line, or the device is a partition of type 0x05 (extended partition). Show|Mounted Networks Show|Mounted Other If you do not want mounted files and non-block device filesystems listed, uncheck option Show|Mounted Other. Show|Ignore Hide Policy The hide policy of a device can be seen by selecting Properties for the device and observing the value of 'presentation hide:' in the INFO section. To ignore UDISKS_PRESENTATION_HIDE for a specific device, use Show|Volumes. Show|Volumes One example use for Show|Volumes is to show an external esata drive which is erroneously identified by udev as internal. Even if option Show|Internal Drives is unchecked, the drive will be shown if listed in Show|Volumes. Show|Volumes opens a dialog which allows you to specify device files, volume labels, or device IDs in a space-separated list. There must be a space between entries and a plus or minus sign directly before each item. This list is case-sensitive. For example, to force showing device /dev/sdd1, include:
Or, to force hiding of /dev/sdd1, include:
The '/dev/' portion of the device file MUST be included. Devices can also be identified by volume label. For example, to always hide a device with volume label "Label With Space" use:
DO NOT use quotes to enclose the label, even if it contains spaces. Finally, a device's ID may be used:
For example, this list in Show|Volumes:
would cause /dev/sdd1 and the OCZ device to be shown, and the volume with label "Label With Space" to be hidden. Show|Display Name In addition to separator characters of your choice, the following substitution variables may be used:
A device in the list is guaranteed to have a unique, non-blank device filename - no two will be alike. The other values may be duplicated or empty in some cases. After you click OK, the display names of the currently shown devices will be updated. The list is sorted alphabetically, ignoring spaces. Auto Mount|Mount Optical IMPORTANT: If you have multiple auto-mount solutions installed and running, this can create confusing behavior. For example, if you use devmon, then when using SpaceFM's auto-mount features, it is best to disable devmon. If option Mount Optical is checked, optical devices such as CD/DVD drives will be automatically mounted when media is inserted, and at SpaceFM startup. TIP: For additional information on what the volume monitor is doing, try running SpaceFM in a terminal. Information on devices being auto-mounted will be printed to the terminal, and error messages generated by your command may be seen there as well. Auto Mount|Mount Removable Auto Mount|Ignore No Policy The policy of a device can be seen by selecting Properties for the device and observing the value of 'presentation nopolicy:' in the INFO section. To ignore UDISKS_PRESENTATION_NOPOLICY for a specific device, use Mount|Volumes. Auto Mount|Mount Volumes Mount Volumes opens a dialog which allows you to specify device files, volume labels, or device IDs in a space-separated list. There must be a space between entries and a plus or minus sign directly before each item. This list is case-sensitive. For example, to force auto-mounting of device /dev/sdc1, include:
Or, to inhibit auto-mounting of /dev/sdc1, include:
The '/dev/' portion of the device file MUST be included. Devices can also be identified by volume label. For example, to inhibit auto-mounting of a device with volume label "Label With Space" use:
DO NOT use quotes to enclose the label, even if it contains spaces. Finally, a device's ID may be used:
For example, this list in Mount Volumes:
would cause /dev/sdc1 and the OCZ device to be auto-mounted, and the volume with label "Label With Space" to not be auto-mounted. Auto Mount|Mount Dirs The following variables are recognized and will be replaced with their current value: $USER $UID $HOME $XDG_RUNTIME_DIR $XDG_CACHE_HOME Note that some handlers or mount programs may not obey this setting. It will only be used by handlers which use %a in their mount or open commands. Anytime a device, protocol or file handler uses %a to automatically create a mount point, the specified directory will be used as the parent. This applies to both manual and automatic mounts. Note that empty subdirectories will be routinely and automatically removed from the specified directory. Auto Mount|Open Tab Note that the Open Tab option only affects what happens after a device is auto-mounted by SpaceFM. It has no effect on devices mounted by other means, nor does it apply to devices mounted by user action within SpaceFM. Auto Mount|Unmount On Exit When mounting a device, if there is no fstab entry for the device, your mount program may create a subfolder for the device mount point in /media or /run/media/$USER. If you or SpaceFM unmounts the device, this subfolder will be removed. However, if you logoff without unmounting the device, the subfolder may be left behind. In order to avoid these subfolders accumulating in /media, SpaceFM can unmount devices on exit. If you don't check option Unmount On Exit, you may need to unmount devices in some other way before logging off to avoid these /media subfolders accumulating. Auto Run|On Mount
Note: When the command is run, %v, %l, and %m refer to the device being added or removed, not the device which is currently selected in the Devices list. For this command to be run, the device must be auto-mounted by SpaceFM. It will not be run for devices mounted by other means, or for devices mounted by user action within SpaceFM. The command will not be run for devices which are auto-mounted at SpaceFM's initial startup. Thus Auto Run affects devices you add after SpaceFM is running. For additional information on what the volume monitor is doing, try running SpaceFM in a terminal. Information on devices being auto-mounted will be printed to the terminal, and error messages generated by your command may be seen there as well. For example, to automatically add a mounted volume to traydevice, set the On Mount command line to: traydevice %v Another example: To have notify-send alert you of new drive mounts: notify-send --icon=block-device --urgency=low "Volume %l has been mounted" Auto Run|On Audio CD The command will be run only if: a) option Mount Optical is checked, AND b) the device qualifies for auto-mounting based on Mount Volumes (ie it is not inhibited). The command will not be run for media which is already inserted during SpaceFM's initial startup. Thus Auto Run|On Audio CD affects media you insert after SpaceFM is running. For example, to set an audio CD to automatically start playing in the vlc media player, set the On Audio CD command line to: vlc --verbose=-1 cdda://%v Auto Run|On Video DVD The command will be run only if: a) the device is auto-mounted by SpaceFM, AND b) the device contains a video DVD. The command will not be run for devices which are auto-mounted at SpaceFM's initial startup, nor will it be run for devices mounted by other means, nor for devices mounted by user action within SpaceFM. For example, to set a video DVD to automatically start in the vlc media player, set the On Video DVD command line to: vlc --verbose=-1 dvd://%v Auto Run|On Insert Auto-mount settings have no impact on this function. Note that when inserting a single drive, your command may be run several times - once for each device file added. For example, if you insert device /dev/sdd which contains one partition /dev/sdd1, your command will be run once with %v=/dev/sdd and once with %v=/dev/sdd1. It is up to your command or script to discard events for unwanted devices or partitions. A script can run one of these commands to get current information on a device's status: udevil info /dev/sdX
udisks --show-info /dev/sdX
udisksctl info -b /dev/sdX
For greater control, an event handler may be set for event evt_device. Auto Run|On Unmount Auto-mount settings have no impact on this function. For example, to automatically remove the drive from traydevice, set the On Unmount command line to: pkill -f "traydevice %v" For greater control, an event handler may be set for event evt_device. Auto Run|On Remove The device must be removed. Ejection of media will not cause this command to be run. Auto-mount settings have no impact on this function. Note that when removing a single drive, your command may be run several times - once for each device file removed. For example, if you remove device /dev/sdd which contains one partition /dev/sdd1, your command will be run once with %v=/dev/sdd and once with %v=/dev/sdd1. It is up to your command or script to discard events for unwanted devices or partitions. Note that when the command is run, %v equals the device file which has been removed, not the device file which is selected in the Devices list. For greater control, an event handler may be set for event | ||||||||||||||||||||||