Thunar doesn't automatically mount removable devices

This is a newbie question, but I cannot find how Thunar automatically mounts removable devices. I've read the wiki and it says that I don't have to do anything else besides installing Thunar. Once I plug in my removable device, it can be seen in lsblk, but I need to manually mount it using the terminal. Thunar doesn't do anything to make it appear in the file system. Did I miss something?

karol wrote:
https://wiki.archlinux.org/index.php/Th … me_Manager says
While Thunar can support automatic mounting and unmounting of removable media, the Thunar Volume Manager allows extended functionality, such as automatically running commands or automatically opening a Thunar window for mounted media.
so thunar-volman shouldn't be required.
Exactly. However, I tried to install the volume manager, but it didn't help. It should work without it.
karol wrote:Do you have gvfs installed?
I didn't (judging from the fact that writing gvfs in the terminal didn't find anything). I installed it, but nothing changed. How to configure it?
Last edited by decas (2014-02-16 14:43:16)

Similar Messages

  • Thunar dont show (and dont mount) removable devices and ntfs drives

    hi.this my first topic
    im  using arch+openbox+thunar
    and thunar dont show (and dont mount) removable  devices and ntfs drives
    more info:
    i'v installed :
    gvfs , gvfs-smb , gvfs-afp , thunar-volman , polkit , gnome-polkit , ntfs-3g
    thunar-volman output for CD/DVD:
    thunar-volman: Could not detect the volume corresponding to the device.
    thunar-volman output for USB:
    thunar-volman: Unsupported USB device type.
    thunar-volman: Unsupported USB device type.
    thunar-volman: Unknown block device type.
    thunar-volman: Could not detect the volume corresponding to the device
    ~/.xinitrc:
    openbox-session
    ~/.config/openbox/autostart:
    thunar --daemon &
    sleep 1 && /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
    tint2 &
    sh ~/.fehbg &
    conky &
    pstree output:
    [hamon@dhcppc0 ~]$ pstree
    systemd─┬─agetty
    ├─at-spi-bus-laun─┬─dbus-daemon
    │ └─3*[{at-spi-bus-laun}]
    ├─at-spi2-registr───{at-spi2-registr}
    ├─conky───3*[{conky}]
    ├─2*[dbus-daemon]
    ├─dbus-launch
    ├─dhcpcd
    ├─polkitd───5*[{polkitd}]
    ├─sh───polkit-gnome-au───{polkit-gnome-au}
    ├─slim─┬─X
    │ └─bash───openbox───opera───3*[{opera}]
    ├─systemd───(sd-pam)
    ├─systemd-journal
    ├─systemd-logind
    ├─systemd-udevd
    ├─terminator─┬─bash───pstree
    │ ├─gnome-pty-helpe
    │ └─{terminator}
    ├─tint2
    └─xfconfd
    please help me
    Last edited by hamon (2013-11-05 09:17:21)

    Please use code tags.  If you don't know how to do this, click the 'BBCode' link on the bottom of the page for instructions (there are all kinds of neat formatting tricks included as well).

  • KDE - automatic mounting removable media broken?

    Hi,
    I have just installed Arch Linux, along with KDE unstable.
    The last time I used Arch and KDE (this was several months back, I think), I remember removable media working out of the box.
    However, this time when I insert a USB drive, nothing seems to happen.
    I have the udisks2 package installed, but udisks is not installed.
    I have not added myself to the storage group (or any other special groups) as per the recommendation on the wiki regarding systemd (https://wiki.archlinux.org/index.php/Users_and_Groups).
    When I insert the USB drive, I see the following in dmesg:
    [ 7849.682638] usb 2-2: new high-speed USB device number 3 using ehci_hcd
    [ 7849.809054] scsi5 : usb-storage 2-2:1.0
    [ 7850.813229] scsi 5:0:0:0: Direct-Access SanDisk Cruzer Blade 8.02 PQ: 0 ANSI: 0 CCS
    [ 7850.816230] sd 5:0:0:0: [sdb] 7856127 512-byte logical blocks: (4.02 GB/3.74 GiB)
    [ 7850.816971] sd 5:0:0:0: [sdb] Write Protect is off
    [ 7850.816975] sd 5:0:0:0: [sdb] Mode Sense: 45 00 00 08
    [ 7850.817593] sd 5:0:0:0: [sdb] No Caching mode page present
    [ 7850.817597] sd 5:0:0:0: [sdb] Assuming drive cache: write through
    [ 7850.820095] sd 5:0:0:0: [sdb] No Caching mode page present
    [ 7850.820101] sd 5:0:0:0: [sdb] Assuming drive cache: write through
    [ 7850.859614] sdb: sdb1
    [ 7850.864851] sd 5:0:0:0: [sdb] No Caching mode page present
    [ 7850.864857] sd 5:0:0:0: [sdb] Assuming drive cache: write through
    [ 7850.864862] sd 5:0:0:0: [sdb] Attached SCSI removable disk
    Any ideas on how to get this working?
    Cheers,
    Victor

    Hi,
    I have similar problem after major system upgrade. I can no longer mount removable drives as regular user. Only root can do that.
    How can I allow any user (or at least my user) to mount/umount any media with any file system?
    I would like to be able to mount in KDE extrernal usb dvd with UDF media, or /dev/sdh5 with NTFS or SD card with FAT32 in usb card reader.
    I used to work in KDE before upgrade. Now i'm not authorized..
    [11106.331210] usb 1-1.3: new high-speed USB device number 5 using ehci_hcd
    [11106.419120] usb-storage 1-1.3:1.0: Quirks match for vid 13fe pid 3600: 4000
    [11106.419140] scsi7 : usb-storage 1-1.3:1.0
    [11107.443529] scsi 7:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 0 CCS
    [11107.900172] sd 7:0:0:0: [sdb] 62521344 512-byte logical blocks: (32.0 GB/29.8 GiB)
    [11107.901916] sd 7:0:0:0: [sdb] Write Protect is off
    [11107.901920] sd 7:0:0:0: [sdb] Mode Sense: 03 41 00 00
    [11107.903720] sd 7:0:0:0: [sdb] No Caching mode page present
    [11107.903729] sd 7:0:0:0: [sdb] Assuming drive cache: write through
    [11107.909408] sd 7:0:0:0: [sdb] No Caching mode page present
    [11107.909412] sd 7:0:0:0: [sdb] Assuming drive cache: write through
    [11107.928787] sdb: sdb1
    [11107.933764] sd 7:0:0:0: [sdb] No Caching mode page present
    [11107.933768] sd 7:0:0:0: [sdb] Assuming drive cache: write through
    [11107.933771] sd 7:0:0:0: [sdb] Attached SCSI removable disk

  • Unable to mount removable device.

    Hi,
    Just plugged my Archos media player in.  The icon appeared on the xfce desktop, but I can't read it.  I get this error message, anyone know how to overcome it?
    Unable to mount "A604":
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    org.freedesktop.hal.storage.mount-removable no <-- (action, result)
    Thanks,
    Chris.

    Cheers, skottish; perfect!
    Unfortunately it didn't solve a very similar issue here:
    http://bbs.archlinux.org/viewtopic.php?id=67317
    Dohhhh!
    Cheers,
    Chris.

  • Prime Infrastructure 2.0 Automatically add remove devices

    Dears,
    I'm basically looking for a dcrcli equivalent to use on prime infrastructure 2.0.
    Customer has a central repository of devices that must be monitored. When devices are added or removed there, they automagically appear or disappear in the other systems.
    Does something like this exist or is this on the roadmap?
    Cheers,
    Michel

    Hi Scott,
    Upto 7.3 config guide it was documented we have to reboot WLC when we configuring SNMP v3 which is wrong. (here is 7.3 config guide link for reference). May be older version (prior to 7.0) had that requirement, not too sure about it
    http://www.cisco.com/en/US/docs/wireless/controller/7.3/configuration/guide/b_wlc-cg_chapter_0100.html#d16741e4514a1635
    From 7.4 onwards config guide does not talk about it all. I deleted the default SNMPv3 user & create a new user in 7.4 & add it to prime without rebooting WLC.
    Once you configureed a SNMPv3 user on a WLC, I do no think you can edit/change the password. You have to delete the user & recreate it with modified username/password.Then re-add the WLC to prime
    The behaviour you mentioned is with any of later codes  of WLC ?
    Rasika

  • Arch 2.6.36 not automatically mounting USB devices

    Hi,
    I am new to Arch but up to now i really like it and i am using this for my home server.
    Now i use 2 external USB 1TB disks for backup which i auto mount using /etc/fstab.
    The problem is that it is not auto mounting the volumes.
    /etc/fstab
    #External disks
    UUID=dc401eb5-05f0-46ca-ba31-3d54ca66e30e /mnt/usbdisk1 ext4 defaults,noatime 0 0
    UUID=a3417e0a-0ec0-4106-b9df-682eb9ba92dd /mnt/usbdisk2 ext4 defaults,noatime 0 0
    dmesg output just after mounting my /
    scsi 4:0:0:0: Direct-Access WD 10EAVS External 1.75 PQ: 0 ANSI: 4
    sd 4:0:0:0: Attached scsi generic sg4 type 0
    sd 4:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
    sd 4:0:0:0: [sdd] Write Protect is off
    sd 4:0:0:0: [sdd] Mode Sense: 23 00 00 00
    sd 4:0:0:0: [sdd] Assuming drive cache: write through
    sd 4:0:0:0: [sdd] Assuming drive cache: write through
    sdd: sdd1
    sd 4:0:0:0: [sdd] Assuming drive cache: write through
    sd 4:0:0:0: [sdd] Attached SCSI disk
    scsi 5:0:0:0: Direct-Access WD 10EAVS External 1.75 PQ: 0 ANSI: 4
    sd 5:0:0:0: Attached scsi generic sg5 type 0
    sd 5:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
    sd 5:0:0:0: [sde] Write Protect is off
    sd 5:0:0:0: [sde] Mode Sense: 23 00 00 00
    sd 5:0:0:0: [sde] Assuming drive cache: write through
    sd 5:0:0:0: [sde] Assuming drive cache: write through
    sde: sde1
    sd 5:0:0:0: [sde] Assuming drive cache: write through
    sd 5:0:0:0: [sde] Attached SCSI disk
    It seems to recognize the physical disks but a mount is not performed?
    Did i overlook something or is there something else wrong?
    Thanks!

    /etc/fstab is for FS options only, putting you device there does not guarantee automounting. This has already been discussed: https://bbs.archlinux.org/viewtopic.php?id=48469

  • Automatically mount flash drives in AwesomeWM

    In Gnome when you put in a flash drive, it automatically mounts it in /media, and it's owned by me - so you can open a file on the flash drive in a file manager, the file isn't read only.  Is there anyway to do this in AwesomeWM?

    You could just run thunar as a daemon and use it's volume management system.
    pacman -Sy thunar thunar-volman
    Start it with:
    thunar --daemon
    It will automatically mount removable drives.

  • Removable devices with UTF-8

    Hi is there a way how to make HAL mount removable devices with iocharset=utf8 option?
    I tried this file:
    cat /etc/hal/fdi/policy/uf8.pdi
    <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
    <device>
    <match key="block.is_volume" bool="true">
    <match key="@block.storage_device:storage.hotpluggable" bool="true">
    <merge key="volume.policy.mount_option.iocharset" type="string">utf8</merge>
    </match>
    <match key="@block.storage_device:storage.removable" bool="true">
    <merge key="volume.policy.mount_option.iocharset" type="string">utf8</merge>
    </match>
    </match>
    </device>
    But no success.

    As a problem may have several solutions, I propose another method to mount removable medias with chosen mount options and at a chosen mount point.
    The advantage of that method, I think, is that only one file is used and easily edited, and nothing else has to be modified in the system (no .fdi files are touched).
    Here is the batch file which I named mountusb :
    #!/bin/bash
    # Script mountusb by Bernard Baeyens (berbae) 2009-06-18
    # to mount plugged in removable medias, using hal and pmount
    # without knowing the device name
    # without modifying the /etc/fstab file
    # without needing to create a fixed directory under /media
    # The device name attributed by udev is transmitted to hal and can be accessed
    # with the utility hal-get-property.
    # So with this method it doesn't need to be a fixed name.
    # The user must maintain the three lists below, for the removable medias he uses.
    # List of the variable part of the hal udi for the removable medias
    UDI=(0000_0002 DA8E_98E0 68E8_9D1A)
    # List of the corresponding desired pmount options
    OPTIONS=("--sync --noatime" "--sync --noatime" "--sync --noatime")
    # List of the corresponding label used to mount the device under /media
    # pmount will create the /media/<label> directory itself
    LABEL=(sony stick1 stick2)
    NB=${#UDI[*]}
    for (( I=0;I<$NB;I+=1 )); do
    DEVICE=$(hal-get-property --udi=/org/freedesktop/Hal/devices/volume_uuid_${UDI[$I]} --key=block.device 2>/dev/null)
    MOUNTED=$(hal-get-property --udi=/org/freedesktop/Hal/devices/volume_uuid_${UDI[$I]} --key=volume.is_mounted 2>/dev/null)
    if [ a$DEVICE != a ] && [ -b $DEVICE ] && [ a$MOUNTED != a ] && [ $MOUNTED == false ]; then
    echo "Executing command : pmount ${OPTIONS[$I]} $DEVICE ${LABEL[$I]}"
    if pmount ${OPTIONS[$I]} $DEVICE ${LABEL[$I]}; then
    echo "To unmount the device use : pumount /media/${LABEL[$I]}"
    fi
    fi
    done
    # To unmount before plugging out the media : pumount /media/<label>
    # The command will remove the /media/<label> directory after the unmounting
    The values in the file correspond to a Sony walkman and two memory sticks of mine.
    The UDI values can be determined by plugging in the removable media and consulting the output of the lshal command.
    I hope that this batch could be useful to someone.
    Edit : Added a test to execute pmount command only if the volume is not already mounted.
    Last edited by berbae (2009-06-20 09:25:06)

  • Pcmanfm crashes when mount external device

    senario: mounted a partition in pcmanfm, pcmanfm disapears, launch my fm again and the device is mounted.
    I did this from xterm and got this:
    bash-3.2$ pcmanfm
    /home/nathan/.themes/1977-GTK-Rezlooks-Humanist/gtk-2.0/gtkrc:191: error: invalid string constant "panel", expected valid string constant
    *** glibc detected *** pcmanfm: malloc(): memory corruption (fast): 0x083d9808 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0xb782a836]
    /lib/libc.so.6[0xb782cf6d]
    /lib/libc.so.6(__libc_malloc+0x94)[0xb782e064]
    /lib/libc.so.6(__strdup+0x30)[0xb7831030]
    /usr/lib/libhal.so.1[0xb796cff2]
    /usr/lib/libhal.so.1[0xb796dbdd]
    /usr/lib/libhal.so.1(libhal_device_get_all_properties+0xc8)[0xb796efe8]
    /usr/lib/libhal-storage.so.1(libhal_volume_from_udi+0xa8)[0xb7975f48]
    pcmanfm[0x808c23e]
    /usr/lib/libhal.so.1[0xb796ee3b]
    /usr/lib/libdbus-1.so.3(dbus_connection_dispatch+0x5b2)[0xb79214a2]
    /usr/lib/libdbus-glib-1.so.2[0xb798372d]
    /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x176)[0xb79d5346]
    /usr/lib/libglib-2.0.so.0[0xb79d86d2]
    /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x6e)[0xb79d8c8e]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_main_iteration+0x34)[0xb7d4cb64]
    pcmanfm[0x807b805]
    /usr/lib/libgtk-x11-2.0.so.0[0xb7d50681]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x129)[0xb7a647f9]
    /usr/lib/libgobject-2.0.so.0[0xb7a78efb]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8ef)[0xb7a7ab2f]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0xb7a7ae79]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_tree_view_row_activated+0x98)[0xb7e4b048]
    pcmanfm[0x807b462]
    /usr/lib/libgtk-x11-2.0.so.0[0xb7d52364]
    /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x129)[0xb7a647f9]
    /usr/lib/libgobject-2.0.so.0[0xb7a78efb]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x617)[0xb7a7a857]
    /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0xb7a7ae79]
    /usr/lib/libgtk-x11-2.0.so.0[0xb7e6fbe7]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc1)[0xb7d4b5b1]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x3c2)[0xb7d4c922]
    /usr/lib/libgdk-x11-2.0.so.0[0xb7bc842a]
    /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x176)[0xb79d5346]
    /usr/lib/libglib-2.0.so.0[0xb79d86d2]
    /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1e7)[0xb79d8ab7]
    /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb4)[0xb7d4ccf4]
    pcmanfm[0x8090a22]
    /lib/libc.so.6(__libc_start_main+0xe0)[0xb77d9390]
    pcmanfm[0x805c5b1]
    ======= Memory map: ========
    08048000-080a2000 r-xp 00000000 08:03 1665179 /usr/bin/pcmanfm
    080a2000-080a5000 rwxp 0005a000 08:03 1665179 /usr/bin/pcmanfm
    080a5000-08406000 rwxp 080a5000 00:00 0 [heap]
    b5e00000-b5e21000 rwxp b5e00000 00:00 0
    b5e21000-b5f00000 ---p b5e21000 00:00 0
    b5f11000-b5f30000 r-xp 00000000 08:03 1357696 /usr/lib/libjpeg.so.62.0.0
    b5f30000-b5f31000 rwxp 0001e000 08:03 1357696 /usr/lib/libjpeg.so.62.0.0
    b5f45000-b5f49000 r-xp 00000000 08:03 1486437 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
    b5f49000-b5f4a000 rwxp 00003000 08:03 1486437 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
    b5f4a000-b5f4b000 ---p b5f4a000 00:00 0
    b5f4b000-b674b000 rwxp b5f4b000 00:00 0
    b674b000-b674c000 ---p b674b000 00:00 0
    b674c000-b6f4c000 rwxp b674c000 00:00 0
    b6f4c000-b6fac000 rwxs 00000000 00:08 1376256 /SYSV00000000 (deleted)
    b6fac000-b6fbd000 r-xp 00000000 08:03 1486081 /usr/share/fonts/TTF/Vera.ttf
    b6fbd000-b6fbf000 r-xp 00000000 08:03 1423625 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
    b6fbf000-b6fc0000 rwxp 00001000 08:03 1423625 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
    b6fc0000-b6fc1000 r-xs 00000000 08:03 2059493 /var/cache/fontconfig/7f5e121fb99556871935ecd63915f318-x86.cache-2
    b6fc1000-b6fd1000 r-xs 00000000 08:03 2059500 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
    b6fd1000-b6fd6000 r-xs 00000000 08:03 2057275 /var/cache/fontconfig/a98d8961fa319a64d3cfd8640c79e62d-x86.cache-2
    b6fd6000-b6fdc000 r-xs 00000000 08:03 2057224 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2
    b6fdc000-b6ff7000 r-xs 00000000 08:03 2059496 /var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-x86.cache-2
    b6ff7000-b703d000 r-xs 00000000 08:03 2059495 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
    b703d000-b7083000 r-xs 00000000 08:03 2059494 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552eAborted
    bash-3.2$
    any ideas? i have like 7 partitions to mount from this USB mass storage drive.. and its annoying me...  : /
    thanx for the help!!
    sv

    It's probably upstream bug: http://www.gnomefiles.org/app.php?soft_id=1263
    Look at changelog: "Crashes related to mounting removable devices is fixed. (Many thanks to the patch from Mamoru Tasaka )", so wait for an update or do some ABS.
    Goodluck.

  • [SOLVED]Gnome 3 / Nautilus removable devices doesn't automount anymore

    I use Gnome3 with gnome-shell and openbox. Recently on nautilus my other partitions and removable devices does not show up. I can see the partitions on the terminal and mount them manually but i need to fix this. Please help.
    Last edited by kanine5 (2011-07-29 09:18:38)

    kanine5 wrote:This issue was solved by https://bbs.archlinux.org/viewtopic.php … 78#p966878 , seems it was a polkit-gnome-authentication-agent-1 issue.
    if he is having this issue in Gnome-Shell specifically, then it's not the same issue. *Gnome-Shell uses it's own internal version of polkit's agent* ~ as discussed in that thread.. If he is using gnome-fallback (with openbox?), then that is where the polkit-authentification-agent-1 issue applies.
    I started the thread you are referring to above,
    cheerz
    Last edited by triplesquarednine (2011-07-29 16:47:46)

  • [SOLVED]Thunar stops showing removable devices

    Hi all,
    Today, I noticed that thunar has stopped showing me my removable devices. I don't know when this issue really happened really but all I know is that, last weekend when I inserted my mp3 device, Thunar showed it and I had an icon on my desktop. I hadn't modify any configuration files, just made all upgrades.
    Here are related packages installed here :
    extra/gvfs 1.10.1-1
    core/dbus-core 1.4.16-1
    extra/dbus 1.4.16-1
    extra/dbus-glib 0.98-1
    extra/thunar 1.2.3-2
    extra/thunar-volman 0.6.0-2
    Any ideas ?
    Thanks in advance
    Tovo R.
    Last edited by 4p1C (2011-11-23 13:26:27)

    https://bbs.archlinux.org/viewtopic.php?id=128639
    https://bbs.archlinux.org/viewtopic.php?id=130724
    https://bbs.archlinux.org/viewtopic.php?id=128252
    https://bbs.archlinux.org/viewtopic.php?id=130653
    These recent topics should be enough.

  • Thunar doesn't show the partitions mounted in fstab[SOLVED]

    Hi everyone,
    I am running XFCE 4.10 in archlinux and today when i added couple of partitions to fstab and rebooted my system I noticed that thunar doesn't show the partitions that I added to my fstab. what should i do to make it appear in thunar ?
    here is my fstab:
    /dev/sda5 /media/disk ntfs-3g defaults 0 0
    /dev/sda2 /media/disk-1 ntfs-3g defaults 0 0
    Last edited by pyarch (2012-10-03 22:03:54)

    Maybe an old thread, but I came up with a different solution. By default Thunar mounts NTFS partitions under
    /run/media/<username>/<UUID of NTFS drive> .
    If the fstab is updated with a path different from above for your NTFS partitions, they end up not being displayed in bookmarks.
    So, to overcome this, create your mount points in
    /run/media/<username>/<mount point dir>
    and point to those dirs while adding entries to fstab.

  • Mount USB Device in Single User Mode

    Hi All,
    Can anyone give me any assistance of mounting a USB stick in single user mode?
    I am trying to use the command:
    $ mount -uw /dev/disk2s1 /Volumes/usb
    But it get the error:
    --specified device does not match mounted device
    If I put the USB stick in normal OSX mode, then run 'df -k' in terminal, it is mounted by automounter, but I can't seem to get it to mount in single user mode.
    Thanks,
    Nik

    Hi Nik,
       I don't believe that there are enough services started in Single User Mode to do this; you'll have to start the services yourself. However, I haven't tested this so I don't know. Wanna be a Guinea Pig?
       If your going to need to write to the boot drive, mount it read/write with:
    /sbin/mount -uw /
    Next, start the basic services, including diskarbitrationd:
    /usr/libexec/registermach_bootstrapservers /etc/mach_init.d
    The above should be one line, modulo wrapping. Then start diskarbitrationd:
    /sbin/SystemStarter start Disks
    You should probably check /dev and see what disks are already mounted. (without the USB stick) I assume that the services that mount removable media are now started so insert the stick and see if it appears mounted in /Volumes. Otherwise, check /dev and see if there's a new disk. If it only appears in /dev, you can use the standard mount command to mount it. If it doesn't appear in /dev then you might reboot into Single User Mode and repeat the procedure with the USB stick already inserted. If none of that works then this must not be the right method and you have my apologies.
    Gary
    ~~~~
       Computers are like air conditioners. Both stop working
       if you open windows.
          -- Adam Heath

  • How do you mount a device like normal unix?

    Hi,
    I'm trying to secure some files by encrypting a disk image (DMG file). I'm doing everything through the terminal so that I can script it.
    For the first step I want to mount the disk image file. But, I'm struggling to find a way to mount the disk image so that it becomes a normal part of the file system. Under Linux I would do something like this:
    $ mount -t ext3 /dev/hda1 /home/steve/projects/privatemount
    Under Mac OS X, I can't get it to work. I found a hdiutil command but there are all sorts of issues between it and the Finder. The closest I've got is this:
    $ hdiutil attach -verbose -nobrowse -mountpoint /Users/steve/Projects/privmount /Users/steve/Projects/private-encrypted.sparseimage
    Which mounts it as a directory from terminal (great), and doesn't show it up in the Finder as a removable device (great). But, the problem is that you can unmount it (hdiutil detach) while you're accessing the directory i.e editing a file. This is no good because I could lose files (seems like a bug to me). If I edit the file from vim from the command line then lsof shows the file being used. But if you access the file through the Finder i.e edit it with textmate, then lsof doesn't see the file access!
    Does anyone know what the magic incantation is to mount a device from the terminal as you would a normal UNIX, have the Finder not show it as a removable device, and ensure that you can't unmount it while a user is accessing the contents?
    Thanks,
    Steve

    Hi Bill,
    Yeah that works but it shows it as a removable disk (as your second post pointed out). I'm hoping there's a solution where it won't show up as a removable disk. It's just annoying not being able to stitch together a seamless file system from a bunch of disk images!
    Thanks,
    Steve

  • Udev: add mountpoints for removable devices

    Yet another solution to the removable devices problem.
    After a minor system overhaul I finally decided to get rid of a bunch of static mountpoints I had in /mnt. I checked Arch wiki, and what I saw there, well, raised some questions. I mean, it's udev, it's not supposed to be pretty, but pmount with a fixed user, as a recommended solution? Ugh.
    So I came up with a perl script that modifies /etc/fstab dynamically and creates mountpoints under /mnt, but doesn't actually mount anything. This way user mounts do not require any specific handling, and overall it looks nice and simple.
    To my slight surprise I couldn't find any good scripts that would do this even outside of the wiki (which is strange, btw, because the solution is obvious), so I decided to put it here. Maybe I'm not the only one who thinks auto-mounting is never a good thing.
    https://raw.github.com/nkf/udevh/master/udevh-sd | https://raw.github.com/nkf/udevh/master/README
    Comments, suggestions etc. are welcome.
    Please check the source and udev rules before doing anything, it's fstab after all.

    tomk wrote:As long as you're happy.....
    Well, yeah. I'm not a big fan of the current udev implementation, but this time it all worked very well.
    As for the man page, well, it's not really set in stone. Ok, I admit I didn't read it, in Arch at least, but anyway, there must be reasons to call it static. mount is a simple tool, it's clear how it works, that's the only file it reads, and I see no intrinsic features in mount that would require fstab to be static. I'd say it's more of an self-imposed challenge to treat it as static, and not a necessity. At least for current implementation of mount, and current format of fstab, with "user", "users" etc.
    Also, the kludgy automount suggestions on the udev page - pmount with fixed user ZOMG - are deprecated now in favour of udisks-based setups.
    Maybe it should be removed then, or at least clearly labeled as deprecated?
    Because when you read the page, it comes as a suggested solution. And udisks, well, I skipped that section at all, partly because it was above "Auto mounting USB devices", and party because it talks about KDE, Gnome and automounting.
    Oh, and btw: I've just noticed that the fixed user in that example is "tomk" ;-)
    falconindy wrote:I think you're in the minority of folks who think dynamically modifying a system config file as crucial as /etc/fstab is a good thing.
    Somewhat off-topic, but /etc/fstab is one of the least critical files in the system, and one of the easiest to fix.
    I didn't check with the current version, but if I'd was unable to boot without fstab, I'd call it a bug in initscripts.
    .:B:. wrote:There's nothing more easy than udisks - and there are plenty of frontends to it, like udiskie. (...) Reinventing the wheel is not always necessary.
    Well, I'm reading about udisks now, and the problem is, when I want a wheel, I want a wheel, not a Segway.
    I like my system to be simple (arch way and all), while this thing wants d-bus, polkit, some frontends and org.freedesktop.stuff.die.must.java style configuration variables just to be able to type "mount /mnt/sda1". Easy, maybe, for a given values of "easy"; simple, anything but.

Maybe you are looking for