Author Topic: Mtdblock3 Won't Mount!  (Read 4143 times)

Luke-Jr2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Mtdblock3 Won't Mount!
« on: May 31, 2005, 12:10:08 pm »
I'm having problems getting to my home partition--
1. at boot, I need to Ctrl-C, or it will never finish
2. after this, /home is unmounted
3. I don't notice any problems in dmesg
4. mount -t jffs2 /dev/mtdblock3 /home <-- hangs and uses 100% CPU as a zombie (unkillable) process

Any ideas?

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Mtdblock3 Won't Mount!
« Reply #1 on: May 31, 2005, 03:40:32 pm »
Quote
I'm having problems getting to my home partition--
1. at boot, I need to Ctrl-C, or it will never finish
2. after this, /home is unmounted
3. I don't notice any problems in dmesg
4. mount -t jffs2 /dev/mtdblock3 /home <-- hangs and uses 100% CPU as a zombie (unkillable) process

Any ideas?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82281\"][{POST_SNAPBACK}][/a][/div]

Details, friend, details! Which Zaurus? Which OS?

Quote
1. at boot, I need to Ctrl-C, or it will never finish

Boot how? Have you tried a D+B to command line & then attempted to mount mtdblock3?

You need to be very specific in order to get useful help.
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

Luke-Jr2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Mtdblock3 Won't Mount!
« Reply #2 on: June 11, 2005, 01:32:11 am »
Quote
Quote
I'm having problems getting to my home partition--
1. at boot, I need to Ctrl-C, or it will never finish
2. after this, /home is unmounted
3. I don't notice any problems in dmesg
4. mount -t jffs2 /dev/mtdblock3 /home <-- hangs and uses 100% CPU as a zombie (unkillable) process

Any ideas?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82281\"][{POST_SNAPBACK}][/a][/div]

Details, friend, details! Which Zaurus? Which OS?
SL-C760 running my fork of OpenZaurus.
Quote
Quote
1. at boot, I need to Ctrl-C, or it will never finish

Boot how?
Booting... starting the daemons and such.
Quote
Have you tried a D+B to command line & then attempted to mount mtdblock3?
What's D+B? I can try mounting mtdblock3 after it boots (using Ctrl-C), but as I said... it uses 100% CPU and hangs.

I've restored a NAND image to make the Z usable again, but I still have the jffs2 image of mtdblock3 I'd like to recover data from. Attempting to do the whole loopback/mtdram stuff causes both my x86 server and x86_64 desktop (both running Gentoo) to freeze up.

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Mtdblock3 Won't Mount!
« Reply #3 on: June 12, 2005, 02:20:40 pm »
Quote
SL-C760 running my fork of OpenZaurus.
S'OK. OZ I am only a little familiar with. But perhaps it will help get some one else to add their info also.


Quote
Booting... starting the daemons and such.
Well, there ARE a couple of different ways to boot (G). I don't *think* that CTRL-C stops the regular Sharp ROM's boot process. But then I may be wrong since I've never tried it. But one of the other ways to boot is by holding the D+B keys, more of which below.


Quote
What's D+B? I can try mounting mtdblock3 after it boots (using Ctrl-C), but as I said... it uses 100% CPU and hangs.
I assume that you know the D+M boot since you mention restoring an NAND below. D+B is similar except that you hold the D+B keys and get a clean command line log in. From that, I have been able to mount /dev/mtdblock2 & /dev/mtdblock3 without any special tricks.

When booted D+B, my C860 auto mounts the CF card so copying data to external storage is not a problem, BTW.


Quote
I've restored a NAND image to make the Z usable again, but I still have the jffs2 image of mtdblock3 I'd like to recover data from. Attempting to do the whole loopback/mtdram stuff causes both my x86 server and x86_64 desktop (both running Gentoo) to freeze up.
Did you save an NAND of the system with the mtdblock3 that you want to recover? If yes, then I suggest first trying to restore that NAND, then, if the restore works, immediately booting with D+B & then try mounting the /dev/mtdblock3 from there.

I wouldn't try mounting it in it's "usual" place. Make a scrap subdirectory under /mnt then mount it to that subdir. This is what has always worked for me.

I have been able to extract SL5500 ROMs & C860 NANDs then mount them under Knoppix but haven't tried to directly mount the mtdblock3 as yet, so have no direct hands on experience to share there. If you didn't save an NAND or if the above fails, then I can try mounting a mtdblock3 and see what happens.

OK? Tag - *you're* "it" again (G).

BTW - "mount -t jffs2 /dev/mtdblock3 /home" MIGHT be part of the problem. My notes just show using "mount /dev/mtdblock3 /mnt/03" (after having made the /mnt/03 subdir, of course).
« Last Edit: June 12, 2005, 02:26:44 pm by Miami_Bob »
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Mtdblock3 Won't Mount!
« Reply #4 on: June 12, 2005, 04:19:01 pm »
Quote
BTW - "mount -t jffs2 /dev/mtdblock3 /home" MIGHT be part of the problem. My notes just show using "mount /dev/mtdblock3 /mnt/03" (after having made the /mnt/03 subdir, of course).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83955\"][{POST_SNAPBACK}][/a][/div]

Why would specifying the filesystem cause problems? It should actually cause less problems since the kernel doesn't have to guess what fstype it is.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Mtdblock3 Won't Mount!
« Reply #5 on: June 13, 2005, 04:25:49 am »
Quote
Why would specifying the filesystem cause problems? It should actually cause less problems since the kernel doesn't have to guess what fstype it is.
I keep finding that a whole LOT of things involving the Zaurii don't make logical sense. But they DO work in practice. I have half a dozen CF cards that cause a major media change glitch on suspend - resume with my C860s. One San Disk 512 Mb has the problem; a more or less identical San Disk 512 does NOT cause the glitch. Don't ask me *why*, but the behavior is repeatable every time.

Maybe the kernel can tell something about the fstype that isn't obvious to casual observation. Or maybe not. But, when all else fails - check the unlikely, IMHO.

I *know* that a simple "mount /dev/mtdblock /mnt/foobar" works on *my* machines; every time (G).

YMMV.
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

Luke-Jr2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Mtdblock3 Won't Mount!
« Reply #6 on: June 16, 2005, 05:00:27 pm »
I have an image of /dev/mtdblock3, not a NAND... The contents aren't valuable enough that I'd take the time to put it back on the Z for recovery, just if I can somehow extract it on my desktop system...

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Mtdblock3 Won't Mount!
« Reply #7 on: June 16, 2005, 08:33:25 pm »
You want to do something like this

Code: [Select]
modprobe mtdram total_size=65536
modprobe mtdblock
dd if=initrd.bin of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 /mnt/floppy

replace initrd.bin with the name of the file image you created. If you don't have mtdblock and mtdram compiled kernel available, then you can od it on the zaurus, you might need to create another looop device but.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Miami_Bob

  • Sr. Member
  • ****
  • Posts: 483
    • View Profile
Mtdblock3 Won't Mount!
« Reply #8 on: June 17, 2005, 01:37:18 pm »
Stu is the individual from whom I learned most of the things that I know in this particular area. If he says it - bank on it (G).
Bob W - Miami FL
--------------------
"The legs of the duck are short and
 cannot be lengthened without distress
 to the duck.

The legs of the crane are long and
 cannot be shortened without distress
 to the crane."

Chuang-tzu

--------------------
C860 main - Sharp 1.40 JP ROM
Language conversion by hand

alts: Cacko 1.22 / OZ 3.5.1 / pdaXrom
512Mb SanDisk SD (x2) / 512Mb SanDisk CF (x2)
Lexar 1Gb CF / AmbiCom WL1100C-CF 802.11b WiFi

Out of Hp200LX, from HP100LX, via HP95LX
--------------------
Desktop MegaTower c/ twin DataPort HD racks;
12 removable HDs with multi OSs - no waiting.

--------------------

Luke-Jr2

  • Newbie
  • *
  • Posts: 28
    • View Profile
Mtdblock3 Won't Mount!
« Reply #9 on: June 25, 2005, 05:02:21 pm »
Quote
You want to do something like this

Code: [Select]
modprobe mtdram total_size=65536
modprobe mtdblock
dd if=initrd.bin of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 /mnt/floppy

replace initrd.bin with the name of the file image you created. If you don't have mtdblock and mtdram compiled kernel available, then you can od it on the zaurus, you might need to create another looop device but.
That's what I tried. It froze/crashed both systems (x86_64 and x86).