Author Topic: Problem With Shutdown  (Read 2003 times)

macstibs

  • Newbie
  • *
  • Posts: 17
    • View Profile
Problem With Shutdown
« on: January 20, 2006, 07:51:40 pm »
When I try to reboot from the CLI the system hangs after killing the CF services instead of cleanly rebooting.  Suspending the machine exhibits the same problem.  I think something needs to be modified to tell the CF services to only kill the wifi card instead of the wifi card and the hd, but I'm not sure where to look.

Any ideas?

I'm using 1.1.0beta1 with pivotroot

macstibs

  • Newbie
  • *
  • Posts: 17
    • View Profile
Problem With Shutdown
« Reply #1 on: January 23, 2006, 04:29:42 am »
Quote
When I try to reboot from the CLI the system hangs after killing the CF services instead of cleanly rebooting.  Suspending the machine exhibits the same problem.  I think something needs to be modified to tell the CF services to only kill the wifi card instead of the wifi card and the hd, but I'm not sure where to look.

Any ideas?

I'm using 1.1.0beta1 with pivotroot
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111761\"][{POST_SNAPBACK}][/a][/div]

*bump*

Nobody else is seeing this behavior after installing pivot_root & KDE?

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Problem With Shutdown
« Reply #2 on: January 23, 2006, 04:57:32 am »
Quote
Nobody else is seeing this behavior after installing pivot_root & KDE?

I'll take a stab at it (but I'm no expert ).

I'm using a regular install of 1.1.0beta on a c3100 (ie no pivot root), I install practically everything onto external storage - ie microdrive, and I have a swap partition.

To cut a long story short I have:

1) my hdd partitions mounted and swap enabled on startup (I have added commands to do this when pcmcia starts)

2) my hdd partitions umounted and swap disabled on shutdown/reboot (I have added commands to do this when pcmcia stops)

Originally I did not do (2) and when I reboot the hdd light stayed on and the reboot process just hung. See this thread for more details.

Now, on a regular linux system one of the last things it does on shutdown/reboot is to umount the filesystems. But because on most regular linux systems, the disks are attached to a "permanent" interface - as opposed to the pcmcia that you have on the Z (remember you pivoted your root and are now running your system from the "temporary" pcmcia interface). So I imagine the problem is that on shutdown/reboot as soon as the pcmcia service is stopped you're dead (so to speak). And a possible solution is to move the pcmcia shutdown procedure right to the very end. (Hope I haven't been talking out of my rear end   )

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Problem With Shutdown
« Reply #3 on: January 23, 2006, 08:53:19 am »
you might be on to something here. i have observed the same behaviour, ie during reboot the Z just hangs at shutting down cardmgr.

I also noticed that it seems tobe related to a corrupt file system as well. if i see a warning message during bootup about needing to run fsck, then suspend and reboot won't work, ie reboot hangs and suspend suspends with the hdd light on.

if i then drop into dm mode and fsck the hdd, then suspend and reboot work again

that said, I also sometimes get 2 lines of io error messages during reboot so I hacked S99reboot (halt) to do some extra checking before turning things off and this helped a bit, but sometimes those errors come back again. so it seems to be the reboot and suspend scripts not doing a good enough job to check for inconsistencies on the disk.

as a workaround, i have changed the pivot script (init) to fsck the disk before mounting it and doing the pivot. now while i am at it, i think i might fix it so it can pivot even when an external cf is inserted.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K