You are not logged in.

#1 2010-11-16 04:55:33

noMaster
Member
Registered: 2009-07-05
Posts: 70

Can't unmount hard drives

I have KDE4 + pcmanfm-mod-prov. Everything works fine, but when I try to unmount any flash or hard drive by pcmanfm I see a massage
The volume "7win" was probably mounted manually on the command line , for example
There is a part of /usr/share/polkit-1/actions/org.freedesktop.udisks.policy

  <action id="org.freedesktop.udisks.filesystem-unmount-others">
    <description>Unmount a device mounted by another user</description>
    <description xml:lang="en">Unmount a device installed by another user</description>
    <message>Authentication is required to unmount devices mounted by another user</message>
    <message xml:lang="en">Authorization is required to remove the devices installed by another user</message>
    <defaults>
      <allow_any>yes</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

I disable any automount in 'systemsettings'. But hard drives (including ntfs) are already mounted when KDE4 started. And it is not 'fstab'.
I really don't know what to do sad

Offline

#2 2010-11-16 19:50:19

xvello
Member
Registered: 2010-05-15
Posts: 81
Website

Re: Can't unmount hard drives

Hello

Please give me the output of the following commands :
> mount
> lsof /win
> umount /win
> umount /win   (as root)

Cheers

Offline

#3 2010-11-17 09:00:25

noMaster
Member
Registered: 2009-07-05
Posts: 70

Re: Can't unmount hard drives

mount

[ku@ku-pc ~]$ mount
proc on /proc type proc (rw,relatime)
sys on /sys type sysfs (rw,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
/dev/sda7 on / type reiser4 (rw,relatime,atom_max_size=0x2f1cc,atom_max_age=0x2bf20,atom_min_size=0x100,atom)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda9 on /media/b1 type ext4 (rw,relatime,barrier=1,data=ordered,commit=360,commit=0)
/dev/sda5 on /media/data type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,b)
/dev/sda1 on /media/7win type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,b)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw,nosuid,nodev)
/dev/sda6 on /boot type ext4 (rw,commit=0)
/dev/sda8 on /home type reiser4 (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,size=1500M,nr_inodes=1m)

lsof /win
In my case the partition name is '7win'

[ku@ku-pc ~]$ cd /media
[ku@ku-pc media]$ lsof 7win
[ku@ku-pc media]$ 

umount

[ku@ku-pc media]$ umount 7win
umount: /media/7win is not in the fstab (and you are not root)

umount (as root)

[ku@ku-pc media]$ sudo umount 7win
Password: 
[ku@ku-pc media]$ 

When I unmount it as root and then mount again by pcmanfm everything works fine! After this steps I can mount/unmount drives with file manager. But it are already mounted when system have started, I have not any ideas

Offline

#4 2010-11-17 17:36:48

xvello
Member
Registered: 2010-05-15
Posts: 81
Website

Re: Can't unmount hard drives

Hello

You ntfs partitions seems to be automatically mounted with the root user, that's why you cannot write on them or umount them as a regular user.
The solution for this is to add them to your fstab, with the noauto option (disabling automount). Try to add :
/dev/sda1  /media/7win  fuseblk user,noauto  0  0

Offline

#5 2010-11-17 19:47:04

noMaster
Member
Registered: 2009-07-05
Posts: 70

Re: Can't unmount hard drives

In this case when I try to unmount drive by pcmanfm browser is closing.

[ku@ku-pc ~]$ pcmanfm-mod
Segmentation fault

Drive is still mount auto

Offline

Board footer

Powered by FluxBB