<div class="gmail_quote">2012/1/2 Michael Rösch <span dir="ltr"><<a href="mailto:maemo@dobiwe.de">maemo@dobiwe.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 02.01.2012 12:01, schrieb Pavel Řezníček:<br>
> My dear Maemo friends,<br>
><br>
> On my N900, I use the /Debian chrooted system/ but I /very often run<br>
> into troubles/ with it.<br>
><br>
> To read quickly, go after the words /in italics/ ;-)<br>
><br>
> I just need to compile the /Lazarus Free Pascal IDE/ for my device<br>
> and/or to /develop applications with it./<br>
> Sometimes it happened when I had Debian in an image file that /my N900<br>
> suddenly crashed and switched off/ during the installation of some<br>
<div class="im">> packages into Debian. So I ran fsck, expecting some damage to the<br>
> filesystem in that image file. But the corruption appeared so heavy that<br>
</div>> it was /basically unrepairable./<br>
> This happenened /very frequently/ so I started to keep a backup of the<br>
> standard 2GiB image. Still, the loss of work was /very annoying…/ it’s a<br>
<div class="im">> bit time consuming to backup 2GiB of data after each single step, don’t<br>
> you think so?<br>
> OK, I thought it was better to use a physical device, an MMC SD card. So<br>
</div>> /I’ve formatted an 8GB card to ext3/ and /copied/ all the contents of<br>
<div class="im">> the Debian image onto it using rsync.<br>
> I’ve then modified the /home/user/.chroot configuration script accordingly.<br>
> All has worked fine except that during installation of the compiled<br>
</div>> Lazarus (make install) /a copy command has frozen for all the night./<br>
> That was strange, so I pressed /Ctrl+C with no effect./ I tried to<br>
> /Close Debian./ /It has also hung./ So I’ve turned my device off.<br>
> OK, the first run of fsck on /dev/mmcblk1p1 has just /recovered the ext3<br>
> filesystem journal./<br>
<div class="im">> I’ve been curious then if there were some errors left there, so I’ve run<br>
</div>> /fsck -f /dev/mmcblk1p1. Ouch! A destruction of the fs again!/<br>
><br>
> *The side question:*<br>
> /Is it a good idea to check an ext3 filesystem right after a journal<br>
> recovery? Or should I first mount it?/ I’m apparently lacking an<br>
> essential knowledge here.<br>
<br>
I think fsck before mounting is never a bad idea. When the fs is damaged<br>
the mount can make things even worse.<br>
<br>
> *The main question:*<br>
> /Is it possible to avoid severe filesystem damage/ during just normal<br>
> but io-intensive operations /on the Debian for armel on the N900?/<br>
><br>
<br>
I am using my debian on an ext2-Partition for over a year now on two<br>
three different cards- never had any problems like you.<br>
I also use another ext3-Partition on the same card for data, the same<br>
here: no problems.<br>
<br>
Have you ever considered your sd-card may be broken or simply not<br>
suitable for the n900?<br>
Do you have the possibility to try another one?<br>
I using a Patriot 32Gb Class 10 now, before it was a Transcend 16 GB<br>
Class 6.<br>
<br>
CU Michael<br>
<span class="HOEnZb"><font color="#888888">--<br>
BOMBING for peace is like FUCKING for virginity.<br>
_______________________________________________<br>
maemo-users mailing list<br>
<a href="mailto:maemo-users@maemo.org">maemo-users@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-users" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-users</a><br>
</font></span></blockquote></div><br>Dear Michael,<div><br></div><div>thank you for your kind response!</div><div><br></div><div>I'm glad to know that running fsck before mounting is never a bad idea <img src="cid:gtalk.328@goomoji.gmail" style="margin-top: 0px; margin-right: 0.2ex; margin-bottom: 0px; margin-left: 0.2ex; vertical-align: middle; " goomoji="gtalk.328"></div>
<div><br></div><div>OK, <i>the SD-card may really be broken,</i> that's right. I have to go for one and buy it (or via an e-shop) as soon as I have the time. Or, I may <i>test this old one for bad blocks.</i></div><div>
<i><br></i></div><div>But <i>what was then wrong with my Debian when run from an image file</i> on the internal memory storage (/home/user/MyDocs/debian-m5-v3e.img.ext2)?</div><div><br></div><div><div>As I mentioned before, during the installation process of some more packages, my N900 just went off regularly. Did you any time try to <i>upgrade your whole Debian system</i> ("sudo apt-get update; sudo apt-get upgrade" without specifying a package)? This is what I actually tried a couple of times but always ended up in a switch-off in random stages of the package installation, resulting in a severe filesystem damage inside the Debian image file…</div>
<div><br></div><div>The case with the installation of the Lazarus IDE on the SD-card and on an ext3 formatted partition might be related but also unrelated.</div><div><br></div><div>So the next step is to check the card for physically bad blocks. I'll give it a try and report the results <img src="cid:gtalk.328@goomoji.gmail" style="margin-top: 0px; margin-right: 0.2ex; margin-bottom: 0px; margin-left: 0.2ex; vertical-align: middle; " goomoji="gtalk.328"></div>
-- <br>Pavel Řezníček<br>software developer and computer network administrator</div><div>vývojář a správce počítačových sítí<br>
</div>