You are not logged in.

#1 2011-05-28 03:08:01

rg_arc
Member
Registered: 2011-03-20
Posts: 507

My computer freezes after trying to unmount an external hard drive

I recently updated my kernel to a newer version as well as many other programs, I can't remember the full list of programs to be honest. I right click the external hard drive in the file list and I click "Safely Remove" afterwards everything freezes and I am forced to shutdown my computer manually...

I suspect it might have something to do with the new kernel or maybe a change I made in /usr/share/polkit-l/actions/org.freedesktop.udisks.policy_

<action id="org.freedesktop.udisks.filesystem-mount">
    <description>Mount a device</description>
    <description xml:lang="da">Montér en enhed</description>
    <message>Authentication is required to mount the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at montere et fil system<$
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

I changed "<allow_active>auth_admin_keep</allow_active>" to ">yes<".. I had seen a fix not too long ago that enabled access to a filesystem without needing to type in the admin password every time you mount.  I am not sure if this is causing the problem or I need to also put yes for removing the device too? This doesn't happen when I mount an internal filesystem, this only happens when I mount my external hard drive.

Offline

#2 2011-05-28 03:12:51

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: My computer freezes after trying to unmount an external hard drive

Does it work if you unmount via the command line?

sudo umount /media/whatever

Also, you can figure out what programs were updated on a given day, month and year. Look at

cat /var/log/pacman.log | grep 'YYYY-MM-DD'

6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2011-05-28 03:23:09

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: My computer freezes after trying to unmount an external hard drive

It seems to not recognize it I think:

$ sudo umount /media/FreeAgent Drive/
umount: /media/FreeAgent Drive/: not found

also I found this with the log.. would this have anything to do with this problem?

[2011-05-27 16:08] >>> MKINITCPIO SETUP
[2011-05-27 16:08] >>> ----------------
[2011-05-27 16:08] >>> If you use LVM2, Encrypted root or software RAID,
[2011-05-27 16:08] >>> Ensure you enable support in /etc/mkinitcpio.conf .
[2011-05-27 16:08] >>> More information about mkinitcpio setup can be found here:
[2011-05-27 16:08] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
[2011-05-27 16:08] 
[2011-05-27 16:08] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2011-05-27 16:08] ==> Building image "default"
[2011-05-27 16:08] ==> Running command: /sbin/mkinitcpio -k 2.6.38-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
[2011-05-27 16:08] :: Begin build

Offline

#4 2011-05-28 03:47:38

nitroguy
Member
Registered: 2009-10-16
Posts: 16

Re: My computer freezes after trying to unmount an external hard drive

No, unless for some crazy reason you are using LVM with your external hard drive (you're not).  Btw, you need to quote anything with spaces in all known shells to me.  So for you, you would need to do:

sudo umount "/media/FreeAgent Drive/"

Also, you can figure out where it was mounted in the first place by simply typing:

[someuser@somebox somedir]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=218758,mode=755)
/dev/sda3 on / type ext4 (rw,relatime,barrier=1,data=ordered)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw,nosuid,nodev)
/dev/sda1 on /boot type ext2 (rw)
none on /proc/bus/usb type usbfs (rw,busgid=108,busmode=0775,devgid=108,devmode=0664)
/dev/loop0 on /home/someuser/fd0 type vfat (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)

See how there is /dev/loop0 mounted?  I can just do:

[someuser@somebox somedir]$ sudo umount /dev/loop0

And btw, you can call umount with the dev or the mountpoint :-)

Last edited by nitroguy (2011-05-28 03:48:31)

Offline

#5 2011-05-28 04:24:56

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: My computer freezes after trying to unmount an external hard drive

awesome...

$ sudo umount /dev/sdb1

that works fine... so for "safely removing" the drive again... how would I fix that glitch so that it doesn't freeze my computer again.

Offline

#6 2011-05-31 02:57:00

nitroguy
Member
Registered: 2009-10-16
Posts: 16

Re: My computer freezes after trying to unmount an external hard drive

Sorry, for that I don't have much experience.  The config you showed up top looks good to me.  Are you starting your session with

exec ck-launch-session openbox-session

or without ck-launch-session?  I _think_ that may help.

Offline

#7 2011-05-31 03:39:18

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: My computer freezes after trying to unmount an external hard drive

exec ck-launch-session gnome-session

This is what I am running currently

Offline

Board footer

Powered by FluxBB