You are not logged in.

#1 2017-07-06 10:30:22

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 274

[Solved] PCManFM: USB Drive not mounting

hi,
i have installed ArchLinux x64 on a new hdd but now i have a problem: automounting usb drive of pcmanfm doesn't work anymore (pendrive doesn't appear in the left sidebar). i have installed gvfs and udisks2.

$ pacman -Q|grep pcmanfm
pcmanfm 1.2.5-2
$ pacman -Q|grep gvfs
gvfs 1.32.1+3+gd852665e-1
gvfs-mtp 1.32.1+3+gd852665e-1
$ pacman -Q|grep udisk
udisks2 2.7.0-1
$ $ cat /etc/fstab 
# 
# /etc/fstab: static file system information
#
# <file system>   <dir>   <type>   <options>   <dump>   <pass>
# UUID=cb6378d9-d3b2-4e0f-ab1e-fa0d7d35ee5e LABEL=arch64
/dev/sdb1              /            ext4         rw,relatime,data=ordered0 1

# /dev/sdb1 LABEL=arch64
UUID=cb6346d9-d5b2-4e0f-ab1e-fa0d4d35ee5e   /            ext4         rw,relatime,data=ordered   0 1
tmpfs   /media         tmpfs   nodev,nosuid,size=2G          0  0
UUID=476cee8e-91b6-446f-acaf-23426727f243 none swap defaults 0 0
# cat /etc/polkit-1/rules.d/00-mount-internal.rules
 polkit.addRule(function(action, subject) {
     if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" &&
        subject.local && subject.active && subject.isInGroup("storage")))
        {
           return polkit.Result.YES;
        }
  });
$ cat /etc/udev/rules.d/99-udisks2.rules
# UDISKS_FILESYSTEM_SHARED
# ==1: mount filesystem to a shared directory (/media/VolumeName)
# ==0: mount filesystem to a private directory (/run/media/$USER/VolumeName)
# See udisks(8)
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1"

Last edited by quellen (2017-07-06 12:51:14)


sorry for my bad english

Offline

#2 2017-07-06 12:06:50

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] PCManFM: USB Drive not mounting

Does it register on dmesg when you plug it in? Is it in the output of lsusb?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2017-07-06 12:15:32

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 274

Re: [Solved] PCManFM: USB Drive not mounting

yes, all the usb drive work if i mount it manually with "# mount /dev/sdb1 /tmp/goofey"

[ 2290.263228] usb 1-1.4: new high-speed USB device number 9 using ehci-pci
[ 2290.362038] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 2290.366281] scsi host2: usb-storage 1-1.4:1.0
[ 2291.391822] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
[ 2291.395391] sd 2:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[ 2291.397263] sd 2:0:0:0: [sdb] Write Protect is off
[ 2291.397270] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 2291.398590] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 2291.410119]  sdb: sdb1
[ 2291.414140] sd 2:0:0:0: [sdb] Attached SCSI removable disk
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 111,8G  0 disk 
├─sda1   8:1    0  89,7G  0 part /
├─sda2   8:2    0     2G  0 part [SWAP]
└─sda3   8:3    0  20,2G  0 part 
sdb      8:16   1   7,5G  0 disk 
└─sdb1   8:17   1   7,5G  0 part 

maybe is a polkit permission problem?

$ ls -l /etc/polkit-1/
totale 4
drwxr-x--- 2 root polkitd 4096  6 lug 14.12 rules.d
$ sudo cat /etc/polkit-1/rules.d/50-default.rules
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

// DO NOT EDIT THIS FILE, it will be overwritten on update
//
// Default rules for polkit
//
// See the polkit(8) man page for more information
// about configuring polkit.

polkit.addAdminRule(function(action, subject) {
    return ["unix-group:wheel"];
});

Last edited by quellen (2017-07-06 12:21:33)


sorry for my bad english

Offline

#4 2017-07-06 12:40:47

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 274

Re: [Solved] PCManFM: USB Drive not mounting

i noticed this error on boot:

Jul 06 14:35:06 localhost systemd-fstab-generator[155]: Failed to create mount unit file /run/systemd/generator/-.mount, as it already exists. Duplicate entry in /etc/fstab?
Jul 06 14:35:06 localhost systemd[151]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with error code 1.
$ cat /run/systemd/generator/-.mount
# Automatically generated by systemd-fstab-generator

[Unit]
SourcePath=/etc/fstab
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
Before=local-fs.target

[Mount]
Where=/
What=/dev/sdb1
Type=ext4
Options=rw,relatime,data=ordered

EDIT:
SOLVED: fstab was poorly formatted (# didn't cover the line below where it was /dev/sdb1)

Last edited by quellen (2017-07-06 12:51:00)


sorry for my bad english

Offline

Board footer

Powered by FluxBB