Author Topic: Bizarre Boot Procedure  (Read 4860 times)

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Bizarre Boot Procedure
« on: March 15, 2006, 12:57:37 pm »
What a day.. 12 hours fiddling.  When the z is good, it's GOOD.  BUT when I start to fiddle... We grow through pain.

To cut the story short, I replaced the HD in my 3100 with a CF.  I couldn't format the card on my desktop (another nightmare story) so I thought I'd just throw it in and see what happened.

Not much.

After discovering the console in the bootloader (by pressing D+B after power is added - for a long time), I set the CF to the correct HDD1/2/3 values using fdisk (HDD1=1-20,83 HDD2=21-40,83 HDD3=41+ c).  At last, I could now get it to boot, but only when I choose "restore the hard disk" (or whatever it's called in the startup menu thing) - a standard try at booting just ends in the message, "Hard disk not initialised".  Well, at least it kind of boots.

OK, another 6 hours before bed - I can do this.

I then found the reason. The Z doesn't want to give you the time of day unless HDD1 and HDD2 have a few tiny, pointless files in a directory called ".sys", so I downloaded them with the intention of finishing this madness and getting some sleep (Trisoft, my hero).

And this is where I stand now.  I've got the files, I've got a machine that can eventually boot normally (with a bit of fiddling), and I can even write normally to HDD3, but I have absolutely NO idea how to copy the files onto HDD1/2 on the card.  Everytime I try to write to the card it says "Read only file system" GRRRRRH!HHHHHR!!!!!"$!"#$RSDAF!!!!!! are you doing this deliberately?  I was VERY close to demonstrating Newtons laws with the Z and a concrete floor.

2:40am, I've had enough.  How do I write those tiny little files to HDD1/HDD2 without it moaning at me?  Is there a magic command that makes a filesystem read/write? and why oh why does HDD3 work! It's teasing me, isn't it.  Playing with me for kicks.
« Last Edit: March 16, 2006, 04:38:39 am by Smuffle »

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
Bizarre Boot Procedure
« Reply #1 on: March 15, 2006, 02:20:05 pm »
Try "mount -oremount,rw /dev/hda1" (or whichever device).  This works in regular desktop linux, and it works on my zaurus 6000 (for the read-only root), so I think it will work in your case.


Quote
Is there a magic command that makes a filesystem read/write? and why oh why does HDD3 work! It's teasing me, isn't it.  Playing with me for kicks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118736\"][{POST_SNAPBACK}][/a][/div]

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Bizarre Boot Procedure
« Reply #2 on: March 15, 2006, 11:07:22 pm »
Quote
Try "mount -oremount,rw /dev/hda1" (or whichever device).  This works in regular desktop linux, and it works on my zaurus 6000 (for the read-only root), so I think it will work in your case.


Quote
Is there a magic command that makes a filesystem read/write? and why oh why does HDD3 work! It's teasing me, isn't it.  Playing with me for kicks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118736\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118746\"][{POST_SNAPBACK}][/a][/div]

Thanks derekp.  After trying what you said, it complained that "can't find it in fstab"; this is a current fstab dump:

/dev/mtdblock2   /       jffs2   noatime   1  1
/dev/mtdblock3   /home       jffs2   defaults,noatime   1  2
none      /dev/shm   tmpfs   size=1m,noauto   0  0
/dev/mmcda1   /mnt/card   auto   noauto,owner   0  0
none      /dev/pts   devpts   gid=5,mode=620   0  0

If I edit this file, and boot up without adding those little HDD1/2 files, it will come up with the usual message of "HDD not initialised", but I can't add those files because it's read-only - an annoying vicious circle.  The only way to boot up is to go through the service menu and start again (thus clearing any changes and bringing me back to square one).  I can't believe it's THIS difficult to write those files..

For extra info, here is my DF output:

Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                   32768     32768         0 100% /
/dev/root                32768     32768         0 100% /
/dev/mtdblock3           91136      6176     84960   7% /home
/dev/ram1                   44        29        15  66% /dev
none                      1024        44       980   4% /dev/shm
/dev/hda1                 9725      1043      8180  11% /hdd1
/dev/hda2                 9755      1043      8208  11% /hdd2
/dev/hda3               978856         4    978852   0% /hdd3
/dev/hdc1              1997536    396640   1600896  20% /usr/mnt.rom/cf

and I'm running Trisofts rom (the only rom that lets me actually boot!).

If anybody out there has any ideas, I'd really appreciate it; never knew how much I needed the Z until it went.
« Last Edit: March 15, 2006, 11:11:28 pm by Smuffle »

DoTheDog

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Bizarre Boot Procedure
« Reply #3 on: March 15, 2006, 11:40:43 pm »
Try this as root:

mount -o remount,rw /dev/hda1 /hdd1
Z sl-c3100, Planex GW-CF11X Wifi, Home made docking station (4 port powered hub, 60GB 2.5" HD, Belkin Wired USB 10/100 Ethernet card), Belkin F8T003 ver 2.11 BT USB Dongle
Stock Sharp ROM, Tetsu's special kernel v18b, Lots of stuff gleaned off of Meanie's Incredible Site! Debian PocketWorkstation.
Z2 sl-c1000, OZ 3.5.4.1 GPE - Trying to make it a PlutoHome Orbiter

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Bizarre Boot Procedure
« Reply #4 on: March 16, 2006, 01:24:55 am »
Fantastic!  Thanks for that, it worked a treat.  You're a lifesaver.  I feel GOOOOD!

 I plan to bottle the feeling I have now, and sell it via paypal.  Interested parties please let me know.

Amazing how the Z can just bring me to my knees like that.. worst thing is, I'm up for more punishment; I won't be happy unless debian is up and running.  You'd think I'd have learnt my lesson.

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Bizarre Boot Procedure
« Reply #5 on: March 16, 2006, 01:31:30 am »
thanks for the post.  Im planning of doing something like this to a c-3100 or c-3200 depending on what i feel like.
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Bizarre Boot Procedure
« Reply #6 on: March 16, 2006, 08:55:41 am »
The CF card idea appealed to me mainly because my batteries last longer; I have a feeling that even when the MD  "spins down", it draws a little more power than it should.

As far as my original proble, everything is fine... except one thing: I don't seem to be able to access HDD1/2 through the terminal.  I have a feeling it's an fstab thing (now at the limit of my puny knowledge).

If someone has a minute, can someone post the contents of a "standardish" fstab file?  Just so that I have an idea.  Thanks.

As soon as everything is AOK, I want to get debian up and running - mainly so that I can get access to a decent flash-card program for my studies; bit of an overkill but haven't seen anything else out there that runs directly on the Z.
« Last Edit: March 16, 2006, 08:58:59 am by Smuffle »

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Bizarre Boot Procedure
« Reply #7 on: March 16, 2006, 09:56:44 am »
yep-exactly.....flashcard program.  tkc has one "soq" but its not robust nor transferable to other card programs
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Bizarre Boot Procedure
« Reply #8 on: March 16, 2006, 11:47:13 am »
Quote
yep-exactly.....flashcard program.  tkc has one "soq" but its not robust nor transferable to other card programs
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118864\"][{POST_SNAPBACK}][/a][/div]

Got Debian up and running.. easier than I thought.. but deleted it soon after.  I think it's just too "heavy" for the 'ole Z.  Looks and acts the business, but as I said, a bit of overkill for what I use it for.  I'd also have to charge the battery a lot more often..

If you hear of any good flashcard programs out there, let me know.  "JMemorize" looks the business (interval learning, bar graphs) but my java machine is too low a version for it.