You are not logged in.

#1 2010-04-15 02:37:20

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

Console/terminal hangs on mount, sync & shutdown

I have no clue what's going on here, but a few hours ago I tried to mount a USB drive:

$ mount /mnt/usb

and the terminal halted. Nothing worked: Ctrl-C, kill... Ok, I forget about it, no matter I can't access the important data on it I need before I go on holiday (just within a few hours). So an hour ago I wanted to shut the machine down using

$ sudo shutdown -h now   (called from an X menu)

The console appeared with the well-known message that the "system is going down for system halt NOW!" message, accompanied by its fellow "waiting for X server to shut down". Again, nothing. So I went back to X and logged out (I don't use xdm/gdm/whatever at the moment, just a console login).

To vc 2, logged in as root, tried 'reboot'. Again, nothing.

Ok, let's try at least a sync. Logged in as normal user on another vc, issued 'sync', guess what...

Hmmm, how do I safely shut down this computer without bluntly pulling out the power plug? Just some more info:

$ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   1688   312 ?        Ss   Apr13   0:04 init [3]  
root         2  0.0  0.0      0     0 ?        S    Apr13   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Apr13   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S    Apr13   0:00 [ksoftirqd/1]
root         5  0.0  0.0      0     0 ?        S    Apr13   0:03 [events/0]
root         6  0.0  0.0      0     0 ?        R    Apr13   0:02 [events/1]
root         7  0.0  0.0      0     0 ?        S    Apr13   0:00 [khelper]
root         8  0.0  0.0      0     0 ?        S    Apr13   0:00 [async/mgr]
root         9  0.0  0.0      0     0 ?        S    Apr13   0:00 [sync_supers]
root        10  0.0  0.0      0     0 ?        S    Apr13   0:00 [bdi-default]
root        11  0.0  0.0      0     0 ?        S    Apr13   0:03 [kblockd/0]
root        12  0.0  0.0      0     0 ?        S    Apr13   0:00 [kblockd/1]
root        13  0.0  0.0      0     0 ?        S    Apr13   0:00 [kacpid]
root        14  0.0  0.0      0     0 ?        S    Apr13   0:00 [kacpi_notify]
root        15  0.0  0.0      0     0 ?        S    Apr13   0:00 [kacpi_hotplug]
root        16  0.0  0.0      0     0 ?        S    Apr13   0:00 [ata/0]
root        17  0.0  0.0      0     0 ?        S    Apr13   0:00 [ata/1]
root        18  0.0  0.0      0     0 ?        S    Apr13   0:00 [ata_aux]
root        19  0.0  0.0      0     0 ?        S    Apr13   0:00 [ksuspend_usbd]
root        20  0.0  0.0      0     0 ?        D    Apr13   0:00 [khubd]
root        21  0.0  0.0      0     0 ?        S    Apr13   0:00 [kseriod]
root        24  0.0  0.0      0     0 ?        S    Apr13   0:19 [kswapd0]
root        25  0.0  0.0      0     0 ?        S    Apr13   0:00 [aio/0]
root        26  0.0  0.0      0     0 ?        S    Apr13   0:00 [aio/1]
root        27  0.0  0.0      0     0 ?        S    Apr13   0:00 [jfsIO]
root        28  0.0  0.0      0     0 ?        S    Apr13   0:00 [jfsCommit]
root        29  0.0  0.0      0     0 ?        S    Apr13   0:00 [jfsCommit]
root        30  0.0  0.0      0     0 ?        S    Apr13   0:00 [jfsSync]
root        31  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfs_mru_cache]
root        32  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfslogd/0]
root        33  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfslogd/1]
root        34  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfsdatad/0]
root        35  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfsdatad/1]
root        36  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfsconvertd/0]
root        37  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfsconvertd/1]
root        38  0.0  0.0      0     0 ?        S    Apr13   0:00 [crypto/0]
root        39  0.0  0.0      0     0 ?        S    Apr13   0:00 [crypto/1]
root        50  0.0  0.0      0     0 ?        S    Apr13   0:01 [i915]
root        51  0.0  0.0      0     0 ?        S    Apr13   0:00 [scsi_eh_0]
root        52  0.0  0.0      0     0 ?        S    Apr13   0:00 [scsi_eh_1]
root        55  0.0  0.0      0     0 ?        S    Apr13   0:00 [usbhid_resumer]
root       575  0.0  0.0   2020   384 ?        S<s  Apr13   0:00 /sbin/udevd --daemon
root       737  0.0  0.0      0     0 ?        S    Apr13   0:00 [kpsmoused]
root       771  0.0  0.0      0     0 ?        S    Apr13   0:00 [scsi_eh_2]
root       788  0.0  0.0      0     0 ?        S    Apr13   0:00 [usb-storage]
root       875  0.0  0.0      0     0 ?        S    Apr13   0:00 [hd-audio0]
root      1017  0.0  0.0      0     0 ?        S    Apr13   0:07 [flush-8:0]
root      1020  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfsbufd]
root      1021  0.0  0.0      0     0 ?        S    Apr13   0:01 [xfsaild]
root      1022  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfssyncd]
root      1023  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfsbufd]
root      1024  0.0  0.0      0     0 ?        S    Apr13   0:01 [xfsaild]
root      1025  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfssyncd]
root      1026  0.0  0.0      0     0 ?        S    Apr13   0:14 [kjournald]
root      1027  0.0  0.0      0     0 ?        S    Apr13   0:01 [xfsbufd]
root      1028  0.0  0.0      0     0 ?        S    Apr13   0:01 [xfsaild]
root      1029  0.0  0.0      0     0 ?        S    Apr13   0:00 [xfssyncd]
root      1110  0.0  0.0   1724   640 tty4     D+   04:22   0:00 shutdown -h 0 w
root      1112  0.0  0.0   1724   636 ?        Ds   04:22   0:00 /sbin/shutdown -t3 -r 0 w
mk        1114  0.0  0.2   4980  1820 tty5     S    04:23   0:00 -bash
mk        1128  0.0  0.1   4924  1376 tty5     S+   04:23   0:00 /bin/sh /usr/bin/startx
root      1137  0.0  0.0   4968    84 ?        S    Apr13   0:00 supervising syslog-ng
root      1138  0.0  0.0   5148   720 ?        Ss   Apr13   0:00 /usr/sbin/syslog-ng
mk        1148  0.0  0.0   2948   812 tty5     S+   04:23   0:00 xinit /home/mk/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.Cm79j45tCC
root      1149  2.1  1.5  25400 13808 tty7     S<s+ 04:23   0:12 /usr/bin/X -nolisten tcp
mk        1152  0.3  0.5  10748  4880 tty5     S    04:23   0:02 icewm
mk        1154  0.0  0.5  10624  4732 tty5     S    04:23   0:00 xterm -geometry 100x50+494+51
mk        1155  0.0  0.6  11340  5448 tty5     S    04:23   0:00 xterm -geometry 100x20+494-0
mk        1156  0.0  0.2   5100  1860 pts/0    Ss   04:23   0:00 bash
mk        1157  0.0  0.1   4976  1804 pts/2    Ss   04:23   0:00 bash
mk        1160  0.0  0.1   4920  1360 pts/0    S+   04:23   0:00 /bin/sh /usr/bin/firefox
root      1169  0.0  0.0   1880   204 ?        Ss   Apr13   0:00 /sbin/dhcpcd -q eth0
mk        1174  0.0  0.1   4924  1400 pts/0    S+   04:23   0:00 /bin/sh /usr/lib/firefox-3.6.3/run-mozilla.sh /usr/lib/firefox-3.6.3/firefox-bin
mk        1178  4.9  8.8 236484 80092 pts/0    Sl+  04:23   0:28 /usr/lib/firefox-3.6.3/firefox-bin
mk        1186  0.0  0.0   3108   684 pts/0    S+   04:23   0:00 dbus-launch --autolaunch bba660677e68fff5f93355bb4b794744 --binary-syntax --close-stderr
mk        1187  0.0  0.1   2284   932 ?        Ss   04:23   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
mk        1189  0.0  0.2   6212  2388 ?        S    04:23   0:00 /usr/lib/GConf/gconfd-2
root      1199  0.0  0.0   1736   376 ?        Ss   Apr13   0:00 /usr/sbin/crond -S -l info
root      1201  0.0  0.0   1900   288 ?        Ss   Apr13   0:05 /usr/sbin/gpm -m /dev/input/mice
root      1205  0.0  0.0   4592   636 ?        Ss   Apr13   0:07 /usr/bin/ntpd -g
http      1208  0.0  0.0   4368   604 ?        S    Apr13   0:02 lighttpd -f /etc/lighttpd/lighttpd.conf
root      1213  0.0  0.0   2388   284 tty1     Ss   Apr13   0:00 /bin/login --   
root      1214  0.0  0.0   2388   404 tty2     Ss   Apr13   0:00 /bin/login --     
root      1215  0.0  0.0   2388   404 tty3     Ss   Apr13   0:00 /bin/login --     
root      1216  0.0  0.0   2388   404 tty4     Ss   Apr13   0:00 /bin/login --   
root      1217  0.0  0.1   2388  1144 tty5     Ss   Apr13   0:00 /bin/login --   
root      1218  0.0  0.0   1688   220 tty6     Ss+  Apr13   0:00 /sbin/agetty -8 38400 tty6 linux
mk        1219  0.0  0.0   4980   380 tty1     S    Apr13   0:00 -bash
mk        1233  0.0  0.1   4280  1016 pts/2    R+   04:33   0:00 ps aux
root      1547  0.0  0.0   4180   276 ?        S    Apr13   0:00 su
root      1548  0.0  0.0   5084   384 ?        S    Apr13   0:00 bash
root      4374  0.0  0.0      0     0 ?        S    Apr14   0:00 [scsi_eh_3]
root      4375  0.0  0.0      0     0 ?        S    Apr14   0:00 [usb-storage]
root      4392  0.0  0.0   3872   332 ?        D    Apr14   0:00 mount /mnt/usb/
root      4409  0.0  0.0   3824   308 ?        D    Apr14   0:00 mount /mnt/usb/
root      4418  0.0  0.0   4180   380 ?        S    Apr14   0:00 su
root      4419  0.0  0.0   5084   484 ?        S    Apr14   0:00 bash
root      5718  0.0  0.0   1908   556 ?        S<   03:20   0:00 /sbin/udevd --daemon
root      5720  0.0  0.0   1908   272 ?        S<   03:20   0:00 /sbin/udevd --daemon
root      5737  0.0  0.0   1724   340 ?        D    03:22   0:00 shutdown -r 0 w
root      5742  0.0  0.0   1724   340 tty1     D+   03:22   0:00 shutdown -r 0 w
root      5744  0.0  0.0   5092   480 tty2     S    03:23   0:00 -bash
root      5763  0.0  0.0   1724   340 tty2     D+   03:23   0:00 shutdown -r 0 w
root      5765  0.0  0.0   4980   480 tty3     S    03:24   0:00 -bash
root      5781  0.0  0.0   3656   220 tty3     D+   03:24   0:00 sync
mk        5782  0.0  0.1   4980  1052 tty4     S    03:25   0:00 -bash

(notice the two instances of mount, the many instances of shutdown, etc.)

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6             2.4G  189M  2.2G   8% /
udev                   10M  200K  9.9M   2% /dev
shm                   441M   12K  441M   1% /dev/shm
/dev/sda7             2.9G   98M  2.8G   4% /var
/dev/sda4             380M   21M  359M   6% /boot
/dev/sda8             5.8G  4.6G  1.2G  80% /usr
/dev/sda9             1.9G  4.2M  1.9G   1% /opt
/dev/sda10             25G   22G  2.9G  89% /home
/dev/sda12            6.2G  1.6G  4.6G  26% /var/cache/pacman

(nothing wrong with disk space)

Anyone?

Offline

#2 2010-10-28 09:12:59

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: Console/terminal hangs on mount, sync & shutdown

I have the exact same problem at the moment. rtorrent was running, I wanted to restart it. I can't (it won't die now matter how I try to kill it).

Tried a "sudo reboot", which does nothing. sad

Offline

Board footer

Powered by FluxBB