You are not logged in.

#1 2012-07-15 03:08:34

BAJ716
Member
Registered: 2011-02-13
Posts: 32

[SOLVED] Can't Shutdown, Can't kill a process

I was behind on my updates a bit and did it (pacman -Syu, yaourt -Syu) over the 4th holiday.  Since then I haven't been able to shutdown my laptop.  I've done several updates since the 4th trying to resolve.  Running Arch with Gnome.

I found that there is one process using ~100% of one core (i7 processor), all the time, which I cannot kill:

[arch ~]$ ps aux
...
root       467 99.7  0.0  10700  1004 ?        R    13:02 514:09 /bin/mount -o relatime /dev/sda4 /media/usbhd-sda4

I'm still a bit of a noob and am not sure what is mounting sda4 in the /media folder, but I also have duplicate mounts of my other partitions in /media:

[arch ~]$ df -l
Filesystem             1K-blocks      Used Available Use% Mounted on
rootfs                   9613540   7863028   1261080  87% /
dev                      8179732         0   8179732   0% /dev
run                      8182708       528   8182180   1% /run
/dev/sda5                9613540   7863028   1261080  87% /
shm                      8182708       160   8182548   1% /dev/shm
/dev/sda3                  93195     18656     69646  22% /media/boot
/dev/sda2               51097596  40705248  10392348  80% /media/usbhd-sda2
/dev/sda7              660006040 531011460  95462476  85% /media/home
/dev/sda3                  93195     18656     69646  22% /boot
/dev/sda7              660006040 531011460  95462476  85% /home
[arch ~]$

I'm not even sure where to start.  I looked in everything.log, but nothing pops out.  It does seem like UDEV takes a lot longer to complete during start up that it did before.

Any suggestions?

Thanks,
-Brad

Last edited by BAJ716 (2012-07-16 04:11:26)

Offline

#2 2012-07-15 17:39:58

BAJ716
Member
Registered: 2011-02-13
Posts: 32

Re: [SOLVED] Can't Shutdown, Can't kill a process

I am pretty sure sda4 is my / (root) partition.

Offline

#3 2012-07-15 17:45:39

Psyconaughty
Member
Registered: 2012-07-07
Posts: 11

Re: [SOLVED] Can't Shutdown, Can't kill a process

Can you show the output of

fdisk -l 
df -h

It looks like your root partition is on sda5

Last edited by Psyconaughty (2012-07-15 18:32:32)

Offline

#4 2012-07-15 18:27:54

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [SOLVED] Can't Shutdown, Can't kill a process

I'm a bit confused, have you not been able to shut down the laptop at all in the last eleven days?
Anyway, have you tried manually to unmount /media/usbhd-sda2?
Also, do as the previous poster said, and remember to use root permission.

Offline

#5 2012-07-15 21:47:19

BAJ716
Member
Registered: 2011-02-13
Posts: 32

Re: [SOLVED] Can't Shutdown, Can't kill a process

Thanks for the replies.  My bad, it does appear sda5 is root.  I might have to dig back through my set up notes to see what sda4 is.

@Arctus, I have to press and hold the power button to turn it off.  Doing "init 1" in a terminal seems to help shut most things down.  SIGTERM and SIGKILL both fail.

@Psyconaughty, here's the output you requested:

[root@arch]# fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x38036f00

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   102402047    51097600    7  HPFS/NTFS/exFAT
/dev/sda3       102402048   102594559       96256   83  Linux
/dev/sda4       102594560  1465147391   681276416    5  Extended
/dev/sda5       102596608   122130431     9766912   83  Linux
/dev/sda6       122132480   124090367      978944   82  Linux swap / Solaris
/dev/sda7       124092416  1465147391   670527488   83  Linux

Disk /dev/mapper/truecrypt1: 42.9 GB, 42949410816 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83885568 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@arch]#

and

[root@arch]# df -h
Filesystem              Size  Used Avail Use% Mounted on
rootfs                  9.2G  7.5G  1.3G  87% /
dev                     7.9G     0  7.9G   0% /dev
run                     7.9G  528K  7.9G   1% /run
/dev/sda5               9.2G  7.5G  1.3G  87% /
shm                     7.9G  8.5M  7.8G   1% /dev/shm
/dev/sda3                92M   19M   69M  22% /media/boot
/dev/sda2                49G   39G   10G  80% /media/usbhd-sda2
/dev/sda7               630G  506G   92G  85% /media/home
/dev/sda3                92M   19M   69M  22% /boot
/dev/sda7               630G  506G   92G  85% /home
/dev/mapper/truecrypt1   40G   28G   11G  74% /home/bjohnson/my_documents/Jobs
[root@arch]#

Offline

#6 2012-07-16 02:45:09

Psyconaughty
Member
Registered: 2012-07-07
Posts: 11

Re: [SOLVED] Can't Shutdown, Can't kill a process

Can you try:

shutdown -h now

and see if there is any errors or if it just works.

Also use 'top' too see what process is using your CPU.

I've never seen this /media/usbhd-sda2 directory before, but looks to be on what looks to be your Windows partition. Do you know what it is? If not you may want to look at this thread: https://bbs.archlinux.org/viewtopic.php?id=89394

Offline

#7 2012-07-16 03:32:42

BAJ716
Member
Registered: 2011-02-13
Posts: 32

Re: [SOLVED] Can't Shutdown, Can't kill a process

Thanks.

'shutdown -h now' doesn't work.  I've tried it both with 'init 1' and without.  It just hangs, no HDD LED activity.  I will look into top.  Yes, sda2 (and sda1) are Win7 and the fun extra partition Win7 makes.  It appears sda4 is the extended partition that contains root, swap, and home?

I'm digging into udisks and related wrappers now to see if that could be the culprit.  Perhaps there's a blacklist feature I need to add sda* to?

Offline

#8 2012-07-16 04:10:20

BAJ716
Member
Registered: 2011-02-13
Posts: 32

Re: [SOLVED] Can't Shutdown, Can't kill a process

Thank you all.  Fixed it.  Psyconaughty, I think your link helped, I removed all the undesirable folders in /media after umount.

I also found the suggestions in this link:
https://wiki.archlinux.org/index.php/Ud … ormal_user
to change the KERNEL!=sd[a-z] .... to KERNEL!=sd[b-z].... in the files /etc/udev/rules.d/

Shutdown works now, and the 100% cpu process is no longer present.

Offline

Board footer

Powered by FluxBB