USB Auto-mounting Woes [SOLVED]

Hi,
I've been trying to get my USB sticks to auto-mount and grant all users permission to mount/unmount them.
To achieve that I initially added the following to my sudoers using visudo:
%wheel ALL=NOPASSWD: /bin/mount
%wheel ALL=NOPASSWD: /bin/umount
That however didn't solve my inability to (un)mount drives in PCMan FM.. so I headed towards the wiki. The wiki stated the following:
You can easily automount and eject removable devices with the combination of pmount, udisks2 and spacefm. Note you have to run spacefm in daemon mode with spacefm -d & in your startup scripts, ~/.xinitrc or ~/.xsession, to get automounting.
I wasn't too fussed about having to use spacefm and everything seemed to work just fine.. until I tried format a USB stick using gparted. Gparted fails because because seemingly half way through the formatting procedure the drive is mounted (my suspicion is that it's spacefm).
mkdosfs: /dev/sdb1 contains a mounted file system.
If i unmount and format manually using the CLI it works just fine.. but I quite like gparted
I tried removing
spacefm -d
from my .xinitrc and that actually stops openbox from starting up. Uninstalling (and later re-installing when it didn't help) pmount didn't help either, spacefm just auto-mounts in a strange 'run' way..
So now I'm stuck, anyone experienced similar issues with gparted and spacefm?
Last edited by omgitsaheadcrab (2012-06-22 13:27:07)

ck-list-sessions shows an active consokekit session, so that should be fine?
Session1:
unix-user = '1000'
seat = 'Seat1'
session-type = 'x11'
active = TRUE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-06-22T12:24:47.734505Z'
login-session-id = '3'
The gparted error log is as follows:
GParted 0.12.1
Libparted 3.1
Delete /dev/sdb1 (fat32, 7.37 GiB) from /dev/sdb 00:00:01 ( SUCCESS )
calibrate /dev/sdb1 00:00:00 ( SUCCESS )
path: /dev/sdb1
start: 2048
end: 15466495
size: 15464448 (7.37 GiB)
delete partition 00:00:01 ( SUCCESS )
========================================
Create Primary Partition #1 (fat32, 7.37 GiB) on /dev/sdb 00:00:01 ( ERROR )
create empty partition 00:00:00 ( SUCCESS )
path: /dev/sdb1
start: 2048
end: 15466495
size: 15464448 (7.37 GiB)
set partition type on /dev/sdb1 00:00:01 ( SUCCESS )
new partition type: fat32
create new fat32 file system 00:00:00 ( ERROR )
mkdosfs -F32 -v -n "PATRIOT" /dev/sdb1
mkdosfs 3.0.12 (29 Oct 2011)
mkdosfs: /dev/sdb1 contains a mounted file system.
========================================
I still can't help but feel it's spacefm doing something funny (automounting when it shouldn't)
Last edited by omgitsaheadcrab (2012-06-22 12:31:36)

Similar Messages

  • [SOLVED] Thunar (XFCE4) Does not Auto-mount USB Drive

    After reading some posts related to USB auto-mounting in Thunar and yet still having the problem, I decided to post this. Thunar used to detect the USB drives and auto-mount them. These days (I GUESS after moving to systemd), It cannot do so. Still, there is the icon of USB drive on the left side panel, but when I click on it to browse it, I get this error:
    Failed to mount "USB_LABLE".
    Error when getting information for file
    '/media/usbhd-sdc1': Transport endpoint is not connected.
    I am still able to use "sudo mount..." and get the job done, but I would prefer the convenient way it used to work. Here are some information about my system:
    command> cat ~/.xinitrc
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    exec startxfce4
    command> loginctl show-session $XDG_SESSION_ID
    Id=1
    Timestamp=Sat, 2012-11-10 20:35:51 CET
    TimestampMonotonic=34276379
    DefaultControlGroup=name=systemd:/user/username/1
    VTNr=7
    Display=:0.0
    Remote=no
    RemoteUser=root
    Service=slim
    Leader=297
    Audit=1
    Type=x11
    Class=user
    Active=yes
    State=active
    KillProcesses=no
    IdleHint=no
    IdleSinceHint=0
    IdleSinceHintMonotonic=0
    command> systemctl status polkit
    polkit.service - Authorization Manager
    Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
    Active: active (running) since ...
    Docs: man:polkit(8)
    Main PID: 305 (polkitd)
    CGroup: name=systemd:/system/polkit.service
    305 /usr/lib/polkit-1/polkitd --no-debug
    command> dmesg
    Attached scsi generic sg1 type 0
    [sdc] 15470592 512-byte logical blocks: (7.92 GB/7.37 GiB)
    [sdc] Write Protect is off
    [sdc] Mode Sense: 23 00 00 00
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through sdc: sdc1
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through
    [sdc] Attached SCSI removable disk
    I'd rather not edit the /etc/fstab; the way Thunar used to behave, was working with every new USB. I wonder if anybody can shed some lights.
    Last edited by Shahab (2012-11-10 21:56:24)

    The error looks suspiciously like one I had not so long ago and it turned out I still had an 11-media-by-label-auto-mount.rule in /etc/udev/rules.d.  Once I removed that and rebooted everything was fine again.

  • [solved] USB drives won't auto mount

    When I plug in a drive, I get this error message:
    Rejected send message, 1 matched rules; type="method_call", sender=":1.24" (uid=1000 pid=4499 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3069 comm="/usr/sbin/hald)).
    2nd harddrive:
    Rejected send message, 1 matched rules; type="method_call", sender=":1.20" (uid=1000 pid=3537 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3058 comm="/usr/sbin/hald)).
    There are fixes in other forums, but they are all radically differnet, and the one's I tried aren't working.
    I have an eee pc with xfce and slim.
    I know this is a perimssion problems since auto mount works fine for root. Could anyone tell me the (probably simple) fix for this? Thanks.
    Last edited by Meskarune (2010-04-15 04:21:08)

    HAL:
    http://wiki.archlinux.org/index.php/HAL#Troubleshooting
    Also check your .xinitrc and make sure your lines matches this:
    exec ck-launch-session startxfce4
    Lastly, you can also use udev to automount your drives:
    http://wiki.archlinux.org/index.php/Ude … SB_devices

  • Auto mount of USB sticks and hard drives?

    Hello.
    I'd like ArchLinux to auto-mount USB sticks, hard drives, etc... when plugging them in. How do I manage to do this?
    These are my daemons: DAEMONS=(syslog-ng network netfs crond dbus hal ntpd alsa gdm)
    Thank you in advance.
    EDIT: Somehow, autofs does not work.
    And btw, I use Thunar as file manager.
    Last edited by rik (2011-04-24 13:24:40)

    You need to have gvfs and thunar-volman installed. Make sure you are a member of the storage group. https://wiki.archlinux.org/index.php/Xf … le_Devices
    Last edited by yugrotavele (2011-04-24 14:55:59)

  • Help me, why i canot auto mount Usb harddisk?

    hi all,
    i have install a new archlinux, but i found i cant auto mount Usb harddisk
    Canot mount volume
    Canot get volume.fstype.alternative
    i have install hal,dbus , ntfs-3g, and add hal,dbus to rc.conf, why it still donnot work?

    yes, i add to storage group:
    [root@myhost figo]# groups figo
    wheel network video audio optical storage power users dbus hal stb-admin figo
    [root@myhost figo]#
    i have confuse, i use dolpin which is kde4 program, i cant mount my usb harddisk, but
    i have nautilus ,it canot mount.
    [root@myhost figo]# hal-device /dev/sdb1
    libhal.c 522 : invalid udi: /dev/sdb1 doesn't startwith '/org/freedesktop/Hal/devices/'.
    (null): (null)
    [root@myhost figo]#
    what is the problem?

  • Auto-mounting USB storage devices doesn't work

    Hi all,
    I have some problems with the auto-mounting of USB storage devices. I already installed udisks and ntfs-3g.
    When I connect the external device (it's an external hard disk WD My Passport 500GB, but I have the same problem with a SanDisk USB stick 8GB) the auto-mount doesn't work. I see a shorcut in the left panel of Thunar but if I try to use it Thunar crash without any message error.
    I try with the manual mount and it works, but the left panel of Thunar continue to have the same problem.
    In the italian Arch forum a friend suggest me to open Thunar from bash and close it. If I do it I receive this error log:
    $ thunar
    thunar: symbol lookup error: /usr/lib/libstdc++.so.6: undefined symbol: _ZNSt14error_categoryD2Ev, version GLIBCXX_3.4.15
    and this is the reply of dmesg command:
    [ 340.826768] usb 1-1: new high speed USB device number 2 using ehci_hcd
    [ 341.591397] Initializing USB Mass Storage driver...
    [ 341.592166] scsi6 : usb-storage 1-1:1.0
    [ 341.592345] usbcore: registered new interface driver usb-storage
    [ 341.592349] USB Mass Storage support registered.
    [ 341.599805] usbcore: registered new interface driver uas
    [ 342.591094] scsi 6:0:0:0: Direct-Access WD My Passport 070A 1032 PQ: 0 ANSI: 4
    [ 342.591474] sd 6:0:0:0: Attached scsi generic sg1 type 0
    [ 342.592845] scsi 6:0:0:1: CD-ROM WD Virtual CD 070A 1032 PQ: 0 ANSI: 4
    [ 342.593048] scsi 6:0:0:1: Attached scsi generic sg2 type 5
    [ 342.594050] sd 6:0:0:0: [sdb] 975400960 512-byte logical blocks: (499 GB/465 GiB)
    [ 342.594814] scsi 6:0:0:2: Enclosure WD SES Device 1032 PQ: 0 ANSI: 4
    [ 342.595141] scsi 6:0:0:2: Attached scsi generic sg3 type 13
    [ 342.596546] sd 6:0:0:0: [sdb] Write Protect is off
    [ 342.596553] sd 6:0:0:0: [sdb] Mode Sense: 23 00 10 00
    [ 342.596557] sd 6:0:0:0: [sdb] Assuming drive cache: write through
    [ 342.599163] sd 6:0:0:0: [sdb] Assuming drive cache: write through
    [ 342.618228] sdb: sdb1
    [ 342.621039] sd 6:0:0:0: [sdb] Assuming drive cache: write through
    [ 342.621046] sd 6:0:0:0: [sdb] Attached SCSI disk
    [ 342.665174] sr0: scsi3-mmc drive: 51x/51x caddy
    [ 342.665180] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 342.665447] sr 6:0:0:1: Attached scsi CD-ROM sr0
    [ 342.665654] ses 6:0:0:2: Attached Enclosure device
    [ 349.105348] [b]Thunar[996]: segfault at 0 ip b6de1660 sp bfe586f4 error 4 in libglib-2.0.so.0.2800.8[b6d6f000+ed000][/b]
    Do you have any suggestion?
    Thank you very much,
    Gianluca

    Are you using [testing]? Partially updated system?
    The error looks like you have a different version of gcc-libs / glibc than the app was built against.
    Last edited by Mr.Elendig (2011-06-20 19:16:33)

  • LG USB drive won't (auto)mount

    Hi guys,
    This is my first post, and I'm not sure if this thread goes here, but anyways, I have a problem with my LG USB External Drive.
    Ok, this is what happened. When I connected the drive the activity LED turned on but the volume didn't appear in Thunar, so I went to check if it was at least detected but neither GParted nor lsusb show the USB disk listed. I connected the drive to a netbook with Xubuntu 9.10 and it automounts correctly, also in the same netbook with Windows 7. I've been looking for information about evdev, udev, HAL and Xorg but I couldn't fix the error. The drive worked sporadically one month ago, but I reinstalled Arch and now it won't work.
    Here is all the additional data.
    * Desktop Environment: XFCE 4.6.1
    * lsusb:
    Bus 002 Device 002: ID 043d:0057 Lexmark International, Inc. Z35 Printer
    Bus 002 Device 004: ID 045e:070f Microsoft Corp.
    Bus 002 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 005: ID 18e3:9101 Fitipower Integrated Technology Inc
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    * rc.conf: http://dpaste.com/163807/
    * mkinitcpio.conf:  http://dpaste.com/163810/
    * xorg.conf: http://dpaste.com/163811/
    * /etc/udev/rules.d/11-media-by-label-auto-mount.rules: http://dpaste.com/163815/
    This is all I have (or I think so).
    Thanks in advance

    Hi scar,
    This is the output.
    sd 4:0:0:3: Attached scsi generic sg5 type 0
    usb-storage: device scan complete
    sd 4:0:0:0: [sdb] Attached SCSI removable disk
    sd 4:0:0:1: [sdc] Attached SCSI removable disk
    sd 4:0:0:3: [sde] Attached SCSI removable disk
    sd 4:0:0:2: [sdd] Attached SCSI removable disk
    EXT4-fs (sda2): mounted filesystem with ordered data mode
    Adding 1951888k swap on /dev/sda3.  Priority:-1 extents:1 across:1951888k
    forcedeth 0000:00:07.0: irq 27 for MSI/MSI-X
    fuse init (API version 7.13)
    Seems to be the disk is at least detected. Maybe I need further HAL/Udev configuration, well, what do you think?
    Last edited by Penguino (2010-02-24 20:39:06)

  • [SOLVED]External HD: Auto-mount in read-only and only root can access

    So I followed the advice in http://bbs.archlinux.org/viewtopic.php? … 88#p583088 regarding using udev to auto-mount my external 60gb harddrive, and it works.  The only problem is, it is being mounted read-only and I can only view the contents via sudo or as the superuser.
    Can anyone guide me in the right direction I need to go to get this changed?  I have already once tried to recursively chown everything on the harddrive, but that didn't seem to work.  The syntax I used from that above article specifies "rw" as one of the options for the mount command, so I am stumped as to why this happened.
    Thanks
    Last edited by trann (2009-11-13 16:24:36)

    Wattanut wrote:
    Have you installed ntfs-3g?
    I think I've had that problem before.
    WoW, perfect solution.  This is why I love this distro. 

  • Systemd (auto)mount USB fails due to fsck

    Hi,
    I am trying to get 'hotplugging' functionality working for usb storage devices with systemd with the ultimate goal of running a backup service via systemd which will require certain devices and mounts to be active.
    After a few searchers, I decided the approach of adding the external storage device to fstab with a couple systemd options
    Here's the relevant line in my fstab
    # USB for data where CoW not desired
    UUID=964cc231-af3f-49ef-94f3-f73ffd551fda /media/storage_nocow ext4 noauto,x-systemd.automount 0 2
    That worked nicely. The device is mounted anytime the mountpoint is requested (e.g. by cd'ing into that directory) provided that the device has not been unmounted.
    If the device has been unmounted (with systemctl stop media-storage_nocow.mount) or removed, and then plugged back in, the mount unit fails with very vague error message. I looked around but didn't find anything definitive on how to address the issue
    systemctl status media-storage_nocow.mount | tail -n 2
    #May 28 11:40:57 archLenFlex systemd[1]: Dependency failed for /media/storage_nocow.
    #May 28 11:40:57 archLenFlex systemd[1]: Job media-storage_nocow.mount/start failed with result 'dependency'.
    I checked that the device is active
    systemctl status --full dev-disk-by\\x2dlabel-CORSAIR64.device
    ● dev-disk-by\x2dlabel-CORSAIR64.device - Voyager_VEGA CORSAIR64
    Follow: unit currently follows state of sys-devices-pci0000:00-0000:00:14.0-usb3-3\x2d1-3\x2d1:1.0-host4-target4:0:0-4:0:0:0-block-sdb-sdb1.device
    Loaded: loaded
    Active: active (plugged) since Thu 2015-05-28 15:43:36 EDT; 2h 2min ago
    Device: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
    The messages from journalctl were of little help. I dug around into the unit files which are generated from fstab and found that the mount requires a couple services
    RequiresOverridable=systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service
    After=systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service
    [Mount]
    What=/dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda
    Where=/media/storage_nocow
    Type=ext4
    Options=nofail,rw,noauto,x-systemd.automount
    the requires/after units failed
    systemctl status --full systemd-fsck@dev-disk-by\\x2duuid-964cc231\\x2daf3f\\x2d49ef\\x2d94f3\\x2df73ffd551fda.service
    ● systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service - File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; static; vendor preset: disabled)
    Active: inactive (dead) since Thu 2015-05-28 15:43:26 EDT; 30min ago
    Docs: man:[email protected](8)
    Process: 797 ExecStart=/usr/lib/systemd/systemd-fsck %f (code=exited, status=0/SUCCESS)
    Main PID: 797 (code=exited, status=0/SUCCESS)
    May 28 15:31:27 archLenFlex systemd[1]: Starting File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda...
    May 28 15:31:27 archLenFlex systemd-fsck[797]: CORSAIR64: clean, 12/3784704 files, 283568/15123984 blocks
    May 28 15:31:27 archLenFlex systemd[1]: Started File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda.
    May 28 15:43:26 archLenFlex systemd[1]: Stopped File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda.
    May 28 15:43:26 archLenFlex systemd[1]: Stopping File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda...
    May 28 15:45:22 archLenFlex systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda.
    May 28 15:45:22 archLenFlex systemd[1]: Job systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service/start failed with result 'dependency'.
    Looking further into those units - the fsck service has a couple dependencies:
    After=%i.device systemd-fsck-root.service local-fs-pre.target
    Before=shutdown.target
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/usr/lib/systemd/systemd-fsck %f
    StandardOutput=journal+console
    TimeoutSec=0
    The only one that failed was the sytemd-fsck-root.service - the other two were active/successful.
    ● systemd-fsck-root.service - File System Check on Root Device
    Loaded: loaded (/usr/lib/systemd/system/systemd-fsck-root.service; static; vendor preset: disabled)
    Active: inactive (dead)
    Docs: man:systemd-fsck-root.service(8)
    So, I figured I can skip the fsck in fstab and it should work. This is the case, with the following fstab line for the device,
    UUID=964cc231-af3f-49ef-94f3-f73ffd551fda /media/storage_nocow ext4 noauto,x-systemd.automount 0 0
    From there, requesting the mountpoint activates the mount via the automount, provided the mount unit was stopped but the device wasn't unplugged. If the device is unplugged, it is necessary stop the mount unit and reload the systemctl daemon.
    I think it is preferable to have the device fsck'd.
    So can anyone advise why the fsck is failing and how to get the mount to work while keeping the fsck option in fstab? Why does the usb device mount even require the root fsck? I would think it should only require its own fsck.
    Thanks in advance.
    Last edited by akpol (2015-05-28 22:16:44)

    Hi,
    I am trying to get 'hotplugging' functionality working for usb storage devices with systemd with the ultimate goal of running a backup service via systemd which will require certain devices and mounts to be active.
    After a few searchers, I decided the approach of adding the external storage device to fstab with a couple systemd options
    Here's the relevant line in my fstab
    # USB for data where CoW not desired
    UUID=964cc231-af3f-49ef-94f3-f73ffd551fda /media/storage_nocow ext4 noauto,x-systemd.automount 0 2
    That worked nicely. The device is mounted anytime the mountpoint is requested (e.g. by cd'ing into that directory) provided that the device has not been unmounted.
    If the device has been unmounted (with systemctl stop media-storage_nocow.mount) or removed, and then plugged back in, the mount unit fails with very vague error message. I looked around but didn't find anything definitive on how to address the issue
    systemctl status media-storage_nocow.mount | tail -n 2
    #May 28 11:40:57 archLenFlex systemd[1]: Dependency failed for /media/storage_nocow.
    #May 28 11:40:57 archLenFlex systemd[1]: Job media-storage_nocow.mount/start failed with result 'dependency'.
    I checked that the device is active
    systemctl status --full dev-disk-by\\x2dlabel-CORSAIR64.device
    ● dev-disk-by\x2dlabel-CORSAIR64.device - Voyager_VEGA CORSAIR64
    Follow: unit currently follows state of sys-devices-pci0000:00-0000:00:14.0-usb3-3\x2d1-3\x2d1:1.0-host4-target4:0:0-4:0:0:0-block-sdb-sdb1.device
    Loaded: loaded
    Active: active (plugged) since Thu 2015-05-28 15:43:36 EDT; 2h 2min ago
    Device: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1
    The messages from journalctl were of little help. I dug around into the unit files which are generated from fstab and found that the mount requires a couple services
    RequiresOverridable=systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service
    After=systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service
    [Mount]
    What=/dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda
    Where=/media/storage_nocow
    Type=ext4
    Options=nofail,rw,noauto,x-systemd.automount
    the requires/after units failed
    systemctl status --full systemd-fsck@dev-disk-by\\x2duuid-964cc231\\x2daf3f\\x2d49ef\\x2d94f3\\x2df73ffd551fda.service
    ● systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service - File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; static; vendor preset: disabled)
    Active: inactive (dead) since Thu 2015-05-28 15:43:26 EDT; 30min ago
    Docs: man:[email protected](8)
    Process: 797 ExecStart=/usr/lib/systemd/systemd-fsck %f (code=exited, status=0/SUCCESS)
    Main PID: 797 (code=exited, status=0/SUCCESS)
    May 28 15:31:27 archLenFlex systemd[1]: Starting File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda...
    May 28 15:31:27 archLenFlex systemd-fsck[797]: CORSAIR64: clean, 12/3784704 files, 283568/15123984 blocks
    May 28 15:31:27 archLenFlex systemd[1]: Started File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda.
    May 28 15:43:26 archLenFlex systemd[1]: Stopped File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda.
    May 28 15:43:26 archLenFlex systemd[1]: Stopping File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda...
    May 28 15:45:22 archLenFlex systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/964cc231-af3f-49ef-94f3-f73ffd551fda.
    May 28 15:45:22 archLenFlex systemd[1]: Job systemd-fsck@dev-disk-by\x2duuid-964cc231\x2daf3f\x2d49ef\x2d94f3\x2df73ffd551fda.service/start failed with result 'dependency'.
    Looking further into those units - the fsck service has a couple dependencies:
    After=%i.device systemd-fsck-root.service local-fs-pre.target
    Before=shutdown.target
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/usr/lib/systemd/systemd-fsck %f
    StandardOutput=journal+console
    TimeoutSec=0
    The only one that failed was the sytemd-fsck-root.service - the other two were active/successful.
    ● systemd-fsck-root.service - File System Check on Root Device
    Loaded: loaded (/usr/lib/systemd/system/systemd-fsck-root.service; static; vendor preset: disabled)
    Active: inactive (dead)
    Docs: man:systemd-fsck-root.service(8)
    So, I figured I can skip the fsck in fstab and it should work. This is the case, with the following fstab line for the device,
    UUID=964cc231-af3f-49ef-94f3-f73ffd551fda /media/storage_nocow ext4 noauto,x-systemd.automount 0 0
    From there, requesting the mountpoint activates the mount via the automount, provided the mount unit was stopped but the device wasn't unplugged. If the device is unplugged, it is necessary stop the mount unit and reload the systemctl daemon.
    I think it is preferable to have the device fsck'd.
    So can anyone advise why the fsck is failing and how to get the mount to work while keeping the fsck option in fstab? Why does the usb device mount even require the root fsck? I would think it should only require its own fsck.
    Thanks in advance.
    Last edited by akpol (2015-05-28 22:16:44)

  • Gnome auto mounts SD cards... umount them from the shell? [SOLVED]

    Subject says it all.  I wrote a trivial script to unload pics from an SD card inserted into my card reader.  I'd like to add a line that umounts the SD card but I'm not sure how to do this since gvfs-fuse-daemon auto-mounted it for me.
    $ mount
    gvfs-fuse-daemon on /home/user1/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=user1)
    /dev/sde1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1003)
    I can do it in two lines, but is there a better way?
    sudo umount -l ~/.gvfs
    sudo umount /media/disk
    Last edited by graysky (2009-08-25 19:52:24)

    Try gvfs-mount -u /media/disk

  • [SOLVED] xfce 4.8 = auto mount doesn't work at boot

    Hi
    I installed arch linux with xfce as DE. auto mount doesn't work at boot. I read the wiki about policykit and I have
    ck-launch-session
    at my .xinitrc but still no luck. I have dbus running as a daemon and my user belong to appropriate groups (storage and ...)
    I don't want to use auto mount rules instead of xfce auto mount.
    thanks in advanced
    Last edited by sasy360 (2011-07-02 03:16:35)

    Jodell wrote:Do you have gvfs installed?
    Oh that was all. thanks!
    Did you read the wiki entry for Xfce?
    yes but it did not mention to install gvfs.

  • External hard drive and SD card won't auto mount

    I am using MBP with retina on Yosemite. MacBook Pro (Retina, 15-inch, Late 2013).
    On Maverick, all my external drives used to auto mount. The same was true just after Yosemite was installed. Lately, only my Time Machine hard drive auto mounts and others don't, e.g. my backup drive that I use with Super Duper! and my camera SD card. I have to go to disk utility and mount them manually. I did not see any option for auto mount in disk utility.
    Could you please guide me on how to get auto mount back?
    Thanks in advance

    I have been dealing with this same issue for the past several months. Running a Macbook Pro (Mid 2010) with OS X Yosemite 10.10.1. This problem occurs when I plug in Firewire, USB, or SD card. The external hardware appear to be working fine, it has to be either a setting, or a quirk that needs corrected with Yosemite. I have run all OS systems since Snow Leopard. Never had this problem. Anyone have any ideas?

  • How do I stop a CCC partition auto mounting in Lion

    I have an external USB drive with 2 partitions. The first partition has a CCC Clone of my drive before Lion. The second is used for Time Machine. This drive auto mounts on boot which is fine but the CCC partition causes problems with the App Store as it sees Apps that I installed in the Clone backup as installed on Lion. The easy way for me to fix this is just to eject the CCC partition but I have to do this every time I boot. Is there a way of just stopping this drive from auto mounting on boot and manually mounting if need be. Any help would be appreciated. Many Thanks in advance.

    I just upgraded to the latest version of Lion--I don't know why it didn't change the info. under my Apple icon.  And I know I can uncheck the box while signing off, but you have to do it each time--I'm looking for a way to uncheck it and recheck whenever I want, the way the dock options are supposed to work (although it doesn't for me anymore with Lion).
    Checked the Users and Groups--the only login items listed are basically 4 apps that I had back when I had my PC and I no longer have them--I may have had Growl for awhile but I deleted it.  There are yellow triangles by them.  No other apps listed there.
    I guess I'll have to uncheck the box each time I sign off.  Tedious, but that's the way it is.  Wish I had Snow Leopard back!
    Thanks for your suggestions though--just wish they worked.

  • Usb stick not working (solved)

    I copied some files to my usb stick and made sure it was working. Then I copied a open office file from my wifes computer running vista. After placing the usb stick back into my computer I got the following message
    A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    I went to xsessions and got the following message.
    kded: ERROR: mount failed for /org/freedesktop/Hal/devices/volume_uuid_709E_ED39: org.freedesktop.DBus.Error.AccessDenied - A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    kded: ERROR: mounting /org/freedesktop/Hal/devices/volume_uuid_709E_ED39 returned A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    Seeing as the stick worked before I copied a file from vista, did the vista change something in the usb so it will not work in anything but windows? Is there anything I can do?
    changed /dev/sdc1 /mnt/usb vfat noauto,users 0 0
    to /dev/sdc1 /mnt/usb auto noauto,users 0 0
    and now everything works fine
    Last edited by smcsw2000 (2008-02-03 11:56:28)

    Try gparted to see what is loaded into your usb device partitions.....

  • Working auto-mount?

    Hi all,
    I have a xfce4 desktop installed. I want an automount service. I tried autoFS, with the following settings:
    auto.master
    /media /etc/autofs/auto.custom --timeout=15
    auto.custom
    disc -fstype=auto,ro,nodev,nosuid :/dev/cdrom
    Backup -fstype=auto,user,rw,async,umask=000,gid=users,noatime,nodiratime :/dev/disk/by-uuid/f569bba5-8007-40f5-8b3c-36960c5796d5
    ## Backup -fstype=ext4,user,rw,async,umask=000,gid=users,noatime,nodiratime :/dev/disk/by-uuid/f569bba5-8007-40f5-8b3c-36960c5796d5
    Shared -fstype=ntfs-3g,user,rw,async,umask=000,gid=users,noatime,nodiratime :/d ev/disk/by-uuid/565AF3085AF2E421
    ReaderCard -fstype=vfat,flush,user,rw,async,umask=000,gid=users,noatime,nodirat
    ime :/dev/disk/by-uuid/0102-0304
    ##ReaderInt -fstype=auto,async,nodev,nosuid,umask=000,gid=users :
    ## Other medium here
    # floppy -fstype=auto,async,nodev,nosuid,umask=000 :/dev/fl
    The files are formatted following the instructions. The partition Backup, however, does not come up ("no such file or directory", even when root).
    Backup is ext4 and it's kept on an external hard drive, the same of Shared. Mounting it manually works. I have tried with simpler options (as simple as
    Backup -fstype=auto :/dev/disk/by-uuid/f569bba5-8007-40f5-8b3c-36960c5796d5
    with no results. Autofs won't do.
    As an alternative I have tried xfce volume manager, but that doesn't work with ANY external device.
    Please help. Thank you.

    That would be a solution - if it worked. I tried that too. The Arch wiki just glances on the setup, solving the whole question with a one liner "Thunar-volman's automount doesn't work currently because of the hal to udev switch, Sept 2010"
    The section on udev is obscure, mentioning to check policykit to "properly start your session".
    However the policykit page is also obscure, containing no mention about starting X session properly or even improperly for what matters.
    The default setting produces no result at all.
    Nowhere I was able to find a five-lines working example of set up. I have used Linux daily since 2000 (and I know it should not take more than 5 line explanation to setup an auto-mount).
    I am really embittered by this interpretation of "the arch way". The documentation on certain core tools such as policykit is completely insufficient and the defaults do not solve basic problems (hours to set up a basic auto-mount? incomplete wiki pages referring each other?).
    Arch could be a perfect desktop distribution with just a pinch of attention to put the obvious features, when correctly disabled by default, at easy reach through complete examples. (Shutdown buttons? Same story: one line reference to policykit, dbus and other 10 tools with not the barest explanation about how to use them in synergy for the purpose. Result? Manual shutdown for the moment).
    If you could provide a working setup for thunar volume manager I'll be happy to use and add it to the wiki.
    Thank you.

Maybe you are looking for

  • How to find Screen element names in a program programatically

    Hi Experts,   I have to find out all the table control names in a program. I am able to find all the screen numbers for a program from the table D020S. Is there any functionality to find out the table controls in a program or atleast screen elements

  • SecurityAgent Logon Error - 10.7.5 update

    Seeing this issue (again) after updating from 10.7.4 to 10.7.5 on MacBook Pro. It occurs when a non-admin AD user attempts to login over PEAP wireless (WPA2 Enterprise). The error is: "SecurityAgent wants to make changes. Type an administrator's name

  • Default size of new browser window launched from community links portlet

    Does anyone know of a way to control the size of the new browser window that is launched when the user clicks a link in a Community Links portlet (or any other links that launch a new browser window)? We default all users to open links in a new brows

  • Thinkpad X201 usually suddenly shuts down!

    Dear all!   I have two problems with my Thinkpad x201. 1/ When I use it with battery and charging then I plug adapter out, it suddenly shuts down. I take it to my office or repair service and do the same but it not suddenly shuts down. 2/ it has been

  • HOW DO I TAP TEMPO IN LOGIC 8?

    CAN ANYONE TELL ME HOW TO TAP TEMPO IN LOGIC 8?