Author Topic: Troubles After Crash In R121  (Read 2717 times)

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Troubles After Crash In R121
« on: January 18, 2007, 08:33:50 am »
Hi,

As the topic says, I'm having some (a lot of) troubles.

Yesterday I was using tuxcards on my zaurus through ssh on my laptop. I didn't notice the battery on my laptop going down and my laptop suddenly went into hibernation-mode.
This caused my Z (which was x-forwarding tuxcards) to freeze with a blank screen.
Nothing helped, I couldn't get the ssh-connection back up, ctrl-alt-bs didn't work to get out of X, couldn't suspend any more, ...
I pulled out the battery, rebooted and now it always says "no space left on device" and I can't do anything that needs disk-access.

dmesg gives me a lot of "Argh, couldn't do this or that ...... no space left ...."

df gives me about 18Mb free on /, so I do have some space left.
Cleaning /var or /tmp is not an option : rm doesn't work "no space left ..."

I rebooted and I remounted / -> no go.

Any suggestions ??

Not having fun,
Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Troubles After Crash In R121
« Reply #1 on: January 18, 2007, 09:51:10 am »
Quote
Hi,

As the topic says, I'm having some (a lot of) troubles.

Yesterday I was using tuxcards on my zaurus through ssh on my laptop. I didn't notice the battery on my laptop going down and my laptop suddenly went into hibernation-mode.
This caused my Z (which was x-forwarding tuxcards) to freeze with a blank screen.
Nothing helped, I couldn't get the ssh-connection back up, ctrl-alt-bs didn't work to get out of X, couldn't suspend any more, ...
I pulled out the battery, rebooted and now it always says "no space left on device" and I can't do anything that needs disk-access.

dmesg gives me a lot of "Argh, couldn't do this or that ...... no space left ...."

df gives me about 18Mb free on /, so I do have some space left.
Cleaning /var or /tmp is not an option : rm doesn't work "no space left ..."

I rebooted and I remounted / -> no go.

Any suggestions ??

Not having fun,
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151517\"][{POST_SNAPBACK}][/a][/div]

unfortunately, the only way to fix itthat i know off  is to reformat the partition.
i had this happen to me before when my root partition was full. couln't delete files cause there was no space left to unlink the files to. hope you hav recent backups...
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

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Troubles After Crash In R121
« Reply #2 on: January 18, 2007, 11:12:30 am »
This is just theoretical ... I have not experimented but ...
Try booting with the emergency system ... then mount the normal system  jffs2 root filesystem and see if this way you can clean up stuff.
This way the jffs2 filesystem mounted is not a live root and you may be able to manage it better.
Or leaving it unmounted you may be able to run some sort of fsck tool on the device ...
« Last Edit: January 18, 2007, 11:24:35 am by louigi600 »
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Troubles After Crash In R121
« Reply #3 on: January 18, 2007, 02:31:01 pm »
Thanks for the answers, there's nothing really important on /

I'll go for the reflash.

Having fun again,
Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Troubles After Crash In R121
« Reply #4 on: January 18, 2007, 02:34:38 pm »
It may be a good idea to try louigi600's idea, if you haven't flashed already, so people know if it works.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

joeabbott

  • Newbie
  • *
  • Posts: 2
    • View Profile
Troubles After Crash In R121
« Reply #5 on: January 18, 2007, 04:46:40 pm »
Quote
Thanks for the answers, there's nothing really important on /

I'll go for the reflash.

Having fun again,
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151558\"][{POST_SNAPBACK}][/a][/div]

If you haven't already reflashed, and you can get to a command line, take a look at your home directory. I have found a .raw file in my home directory on occasion, that fills my partition and gives me a similar situation. I never tried to figure out what causes it, but simply deleting this file frees up space without having to reflash.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Troubles After Crash In R121
« Reply #6 on: January 18, 2007, 05:50:44 pm »
Quote
Quote
Thanks for the answers, there's nothing really important on /

I'll go for the reflash.

Having fun again,
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151558\"][{POST_SNAPBACK}][/a][/div]

If you haven't already reflashed, and you can get to a command line, take a look at your home directory. I have found a .raw file in my home directory on occasion, that fills my partition and gives me a similar situation. I never tried to figure out what causes it, but simply deleting this file frees up space without having to reflash.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151576\"][{POST_SNAPBACK}][/a][/div]

This is a catch 22 situation. You need to delete some big file because it used up all your space. You cannot add/modify/remove any files because you don't have any free space left.

Unfortunately, there is also no fsck.jffs2
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

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Troubles After Crash In R121
« Reply #7 on: January 19, 2007, 02:29:01 am »
Quote
Quote
Quote
Thanks for the answers, there's nothing really important on /

I'll go for the reflash.

Having fun again,
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151558\"][{POST_SNAPBACK}][/a][/div]

If you haven't already reflashed, and you can get to a command line, take a look at your home directory. I have found a .raw file in my home directory on occasion, that fills my partition and gives me a similar situation. I never tried to figure out what causes it, but simply deleting this file frees up space without having to reflash.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151576\"][{POST_SNAPBACK}][/a][/div]

This is a catch 22 situation. You need to delete some big file because it used up all your space. You cannot add/modify/remove any files because you don't have any free space left.

Unfortunately, there is also no fsck.jffs2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151582\"][{POST_SNAPBACK}][/a][/div]

I tried to clean things through the emergency system, but indeed there is no fsck.jffs2. I also tried to clean var and tmp, and some "lock-files" in my home-dir, but no go. I admit I only tried for about 30 minutes. then I decided to flash and take some notes on the settings I do, somebody might be interested. In fact, I was doing something like this on tuxcards when this thing happened. (the tuxcards-file was saved, I only lost what I did during the last 15 minutes)

My problem wasn't a big file or something like that. I had 18Mb free on /. But somehow the filesystem seemed to be corrupt.

Good thing : I never save data to / (not on the Z, not on my ubuntu-laptop, not even on my windows-box) , On the Z I have a "Documents" in my homedir which is a symlink to a folder on external media and I have backups of my settings.
Now I have a chance to start from a clean system ...    

Thanks for the answers.

Have fun,
Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Troubles After Crash In R121
« Reply #8 on: January 19, 2007, 02:46:21 am »
Quote
This is a catch 22 situation. You need to delete some big file because it used up all your space. You cannot add/modify/remove any files because you don't have any free space left.

Unfortunately, there is also no fsck.jffs2

Well if you start up the emergency system you can mount the jffs2, I have checked this, it takes a bit to complete the mount but it is possible:
mount -t jffs2 /dev/mtdblock2 /mnt/<somewhere>

#what follows is again theoretical ... but might still be usefull

by the mere fact that you do not have a live root mounted on it you may have sufficient space to delete something, if not you can do  ">" on a useless file, which will free up space.
You could for example zero out the logs in /mnt/<somewhere>/var/logs/*
which may give you enough space to do more stuff.

If you are accusing joeabbott's .raw files you coulod zero out the .raw files and then remove....


Meanie ....
Is there no fsck tool at all for jffs2 or none on pdaXrom? (by fsck tool I mean any file system consistency check tool)
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing