Author Topic: Holy Moly - Zaurus Cannot Find Half Of My Programs  (Read 2453 times)

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Holy Moly - Zaurus Cannot Find Half Of My Programs
« on: November 27, 2006, 09:02:15 pm »
My zaurus was rock solid. a 3200 with fluxbox and kopi. rock solid. suspend worked every time.  

I installed SCITE from one of the feeds (I only had official and contrib feeds) and then soon "rm" "find" "touch" "chgrp" "dmesg" etc was not found!!

I rebooted (Big Mistake) and now I can't even get to a prompt.

I get tons of errors, a bunch in /etc/rc.d/rc.sysinit about different commands being not found.

Then tons of:

INIT: cannot execute "/sbin/getty"



Then the last two are:

INIT: Id "ln" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel


then the all the INIT errors repeat again ...


HOLY CRAP DOES ANYONE HAVE A CLUE WHAT HAPPENED BECAUSE I AM CLUELESS.

THANKS SO MUCH!
Frank

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #1 on: November 27, 2006, 09:36:27 pm »
Quote
My zaurus was rock solid. a 3200 with fluxbox and kopi. rock solid. suspend worked every time. 

I installed SCITE from one of the feeds (I only had official and contrib feeds) and then soon "rm" "find" "touch" "chgrp" "dmesg" etc was not found!!

I rebooted (Big Mistake) and now I can't even get to a prompt.

I get tons of errors, a bunch in /etc/rc.d/rc.sysinit about different commands being not found.

Then tons of:

INIT: cannot execute "/sbin/getty"



Then the last two are:

INIT: Id "ln" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel


then the all the INIT errors repeat again ...


HOLY CRAP DOES ANYONE HAVE A CLUE WHAT HAPPENED BECAUSE I AM CLUELESS.

THANKS SO MUCH!
Frank
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147379\"][{POST_SNAPBACK}][/a][/div]

What release are you running?

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #2 on: November 27, 2006, 11:12:40 pm »
Ack, Beta3. Sorry I can't believe I forgot that!

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #3 on: November 28, 2006, 01:20:49 am »
Quote
I installed SCITE from one of the feeds (I only had official and contrib feeds) and then soon "rm" "find" "touch" "chgrp" "dmesg" etc was not found!!

...

INIT: cannot execute "/sbin/getty"
All of those programs including getty are handled by busybox (you *should* see them as symlinks to /bin/busybox).

If you can get into a rescue mode prompt somehow, I guess you'd start by checking whether either busybox is missing or the symlinks are gone and replacing these. It seems really strange that installing a package would do that sort of damage though! Hopefully you don't have many files missing!

Good luck
SL6000-L, RC12

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #4 on: November 28, 2006, 01:23:29 am »
Quote
Quote
I installed SCITE from one of the feeds (I only had official and contrib feeds) and then soon "rm" "find" "touch" "chgrp" "dmesg" etc was not found!!

...

INIT: cannot execute "/sbin/getty"
All of those programs including getty are handled by busybox (you *should* see them as symlinks to /bin/busybox).

If you can get into a rescue mode prompt somehow, I guess you'd start by checking whether either busybox is missing or the symlinks are gone and replacing these. It seems really strange that installing a package would do that sort of damage though! Hopefully you don't have many files missing!

Good luck
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147390\"][{POST_SNAPBACK}][/a][/div]

Oh Crap!  I did remove busybox I think by accident when trying to remove the other *box stuff since I'm running fluxbox.  Crap.  Any suggestions on how to get it back on there?

Can I run ipkg from the recovery console?

Thanks,
Frank

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #5 on: November 28, 2006, 04:39:29 am »
When you boot up does it initialise your lan/wireless and sshd, on bootup on my 3200 the CF wireless card light comes on half way through boot, and if you have a hang after that you could connect remotely with ssh from another machine and then reinstall the package.

Alternatively, is there any way to mount the root filesystem from the recovery shell? I've never tried but if you can then you would need to extract the files from the busybox ipk and place them in the root retaining the folder structure in  the ipk.

I'm surprised that a critical package such as busybox is un-installable, looks like we need to be careful there.

Another way - if you have no precious files in the root filesystem - is to reinstall without reformatting the microdrive, as long as the original partition layout is intact you should be able to reinstall without wiping it. Not sure what happens if you have a /home partition on the flash memory though.

Hope you get it fixed

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #6 on: November 28, 2006, 05:06:22 am »
Hi,

maybe you could
 - take the cf/sd card out of the zaurus
 - plug it in a linux box
 - copy the original zaurus busybox executable for your distro to the card
 - insert the card in the zaurus
 - run busybox from the card to copy itself to where it should be
 - redo the links for other linux commands

HTH
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #7 on: November 28, 2006, 08:05:17 am »
Hi,

he doesn't even get to a prompt because getty is not there.

It should work this way:
Boot into the rescue Linux system using D+B boot (Remove AC and battery, hold D+B keys down while inserting the battery and switching battery switch to "on" position). This should boot into an intact rescue linux.

From there you can mount the actual root:

mount -t jffs /dev/mtdblock2 /mnt

Then copy the attached busybox binary (unzip first!) from a CF or SD card to /mnt/bin

The links with names "getty", "mount" etc. should still exist, as only their target has been deleted.

Reboot.

Good luck!

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #8 on: November 29, 2006, 02:06:50 pm »
Quote
mount -t jffs /dev/mtdblock2 /mnt
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147409\"][{POST_SNAPBACK}][/a][/div]
Slightly different...

mkdir /mnt/temp
mount -t jffs2 /dev/mtdblock2 /mnt/temp

there may already be mounted filesystems in /mnt so best to make a new mount point first - my SD card automounted in the recovery console. Also fs type should read jffs2

works a treat!

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Holy Moly - Zaurus Cannot Find Half Of My Programs
« Reply #9 on: November 30, 2006, 05:44:32 pm »
Thanks so much everyone! especially daniel3000!  I am back in business!!

Thanks a lot!