You are not logged in.

#1 2008-07-07 09:13:49

Auguste
Member
Registered: 2008-04-26
Posts: 11

[SOLVED]Pmount can't mount - says "could not lock the mount directory"

As of several hours ago, I haven't been able to mount anything via Pmount.  I always get the same error (see below).  Earlier today I had no trouble mounting USB drives.  I've tried all that I can think of.  I've tried removing Pmount and reinstalling it as well as rebooting.  I also tried regular Mount, which works perfectly.

I'm using an ASUS Eee PC 701 4G, but I can't see how that is directly related to the issue, which is why I'm posting this outside the Eee PC thread.

Here is the output of Pmount with the --debug option.

[david@Jericho dev]$ pmount --debug /dev/sdb1
resolved /dev/sdb1 to device /dev/sdb1
mount point to be used: /media/sdb1
no iocharset given, current locale encoding is ANSI_X3.4-1968
Cleaning lock directory /var/lock/pmount_dev_sdb1
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:17
find_sysfs_device: checking whether /dev/sdb1 is on /sys/block/sda (8:0)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:0
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:1
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:2
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:3
find_sysfs_device: checking whether /dev/sdb1 is on /sys/block/sdb (8:16)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:16
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:17
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sdb
device_removable: corresponding block device for /dev/sdb1 is /sys/block/sdb
get_blockdev_attr: value of /sys/block/sdb/removable == 1
policy check passed
spawnv(): executing /usr/sbin/cryptsetup '/usr/sbin/cryptsetup' 'isLuks' '/dev/sdb1'
spawn(): /usr/sbin/cryptsetup terminated with status 234
device is not LUKS encrypted, or cryptsetup with LUKS support is not installed
locking mount point directory
lock_dir(): creat: No such file or directory
Error: could not lock the mount directory. Another pmount is probably running for this mount point.

I had a quick search here and couldn't find anything helpful, and I couldn't find any help through Google.  Does anbody have any idea how to fix this?

Thanks for reading.

Last edited by Auguste (2008-07-08 21:48:35)

Offline

#2 2008-07-07 15:52:03

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED]Pmount can't mount - says "could not lock the mount directory"

Did you install any software since the last time pmount worked?  Upgraded any?

Offline

#3 2008-07-08 07:03:03

Auguste
Member
Registered: 2008-04-26
Posts: 11

Re: [SOLVED]Pmount can't mount - says "could not lock the mount directory"

Thanks, I didn't even think about any changes in my installed packages.  Earlier yesterday I went through and removed about ten packages after making sure nothing depended on them first.  I just reinstalled those packages and Pmount is working normally again.  I guess I must have removed something Pmount indirectly depended on.

Cheers for the help.

Offline

#4 2008-07-08 14:27:24

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED]Pmount can't mount - says "could not lock the mount directory"

You're welcome.  smile  Please mark this thread as solved.

Offline

Board footer

Powered by FluxBB