OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: roter_planet on April 26, 2004, 09:40:02 am
-
hi,
i don\'t know maybe this is a known bug, but i haven\'t figured something out about this. generally writing/reading with sd-card was possible. until now!
cd /mnt/card
ls
sends following error:
ls: ./home: input/output error
ls: ./usr: input/output error
and dmesg shows following error:
pxa_sd_wait response: response time out (cmd=07.....)
sd_write_multiple(239964): select error
sd flush : ERROR adr=122386 ...
[SD]-R 1d01e600 0400 ERROR!
EXT2-fs error (device mmcd(60,1)) : ext2_read_inode: unable to read inode block- inode=...
has anybody an idea to solve this problem or where are some posted infos about it?
thanks stephan
c760 running pdaxrom, sandisk 512sd, ibm microdrive
-
You need to unmount the SD coard and fsck it:
umount /mnt/card
e2fsck /dev/mmcda1
mount /mnt/card
You may need to eject and re-insert the card before unmounting it. SD cards are notorious for getting mysterious I/O errors on many PDA\'s.
Chris.
-
hii,
thanks. but I\'ve done this already. that dos not help.. after trying to mount the device
following error:
/dev/mmcda1: invalid argument
mount: you must specify the filesystem type
rescan with e2fsck shows:
e2fsck: invalid argument while trying to open /dev/mmcda1
the superblock could not be read or does not describe a correct ext2 filesystem.....
and so on!
any further ideas ?
iin a forum i also read that these problems are typical fot the new sandisk sd-cards.
because they have a non-conform driver to talk with them.
ii don\'t know what\'s the truth?
stephan
-
Is it a new card? Or one that used to work?
I\'ve had exactly that error and the problem with e2fsck. When it occurs I immediately eject the card, wait a few seconds then re-insert it. Then:
umount /mnt/card
e2fsck /dev/mmcda1
mount /mnt/card
And it has always worked. If it is still not working you may want to try reformatting it. Or try it in a card reader on a PC and see if anything is wrong with it.
-
Here\'s the fun error I get with my SD card when I run e2fsck /dev/mmcda1:
e2fsck: Invalid argument while trying to open /dev/mmcda1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
I\'ve tried the later as well.
any suggestions? I just got his card middle of last month and it had been working like a champ until I did a
mkfs.ext2 on it.
-
Here\'s the fun error I get with my SD card when I run e2fsck /dev/mmcda1:
e2fsck: Invalid argument while trying to open /dev/mmcda1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
I\'ve tried the later as well.
any suggestions? I just got his card middle of last month and it had been working like a champ until I did a
mkfs.ext2 on it.
Some of the Sandisk (and Lexar) cards have been reported to have problems after reformatting with ext2; some will not ever run reliably after that.
could you try this:
physically eject and reinsert the card
(then fsck, whatever you want)
then write some small files (less than a mb)
then write some larger files (over 10mb)
and see if you have any success.
Also check out this thread: (where I\'m trying to resolve the assorted SD io issues)
http://www.zaurususergroup.com/index.php?n...iewtopic&t=3787 (https://www.oesf.org/forums/index.php?showtopic=3787)
-
i have still the same problems with my sd-card. it\'s matter if msdos or ext2 fs is on it.
i had also that error which nakor described.
pdaxrom.org offered a new sd-module ipk.
does anybody knows how to setup it and if it helps? i think it must be a module which needs to be integrated with insmod or modprobe. or ist it a simple application?
how to get rid of the sharp_mmcsd_m.o module, which is allways running? even if no card is inserted.
has anybody experiences with lexar 512mb sd-cards?
thanks for any reply.
stephan
-
Curiously enough pdaXrom didn\'t like my MMC card and I used to get the same kind of io errors whenever I tried to install anything. Then I\'d have to stick it in my 5500 (running OZ) which was able to fix the problem (pdaXrom wasn\'t able to fix it).
I\'m now running OZ which seems to do this less often (like just once in a month, rather than twice a week. BTW my 5500 never suffered). I don\'t know why, but would be interested to find out.
Si
-
Actually I had a similar experience with a Sandisk 256MB SD card.
At first it worked OK, but then I formatted it as ext2, put many small files on it and then it broke. At least I thought so for two months.
I could not see files on it, writing and reading failed. I couldn\'t even format it on a PC card reader. But I found a solution:
umount /mnt/card
fdisk /dev/mmcda1
when I printed the partition table using \'p\' I saw only garbage. So I used the \"o\" option to create a new empty partition table. And wrote the table to the card.
Afterwards I created an empty FAT16 partition and wrote it again to the card. Then I was able to format it again using a PC card reader.
The card works since then :-)
-
You can try mke2fs with the read write tests. Of course you will lose all data in it. I use ext3 so the command for me is:
mke2fs -c -c -j /dev/mmcda1
To see if you have any bad blocks. This solved the problem for me with SD card not being able to be formatted.
-
mke2fs -c -c -j /dev/mmcda1
You can also use e2fsck -c -c which is non-destructive (it reads, tests, and then rewrites the original data)
-
I have had similar problems with my Lexar 256MB SD card.
After finishing a complete e2fsck -c -c check on the card I found that I have one bad block, block 0!
Can anyone confirm that the card is basically screwed, since I can not get fdisk to write anything to block 0( without the first 4 blocks you can not write a filesystem) ?
I have tried both mmcsd modules (5500), even attempted to zero out the first block using dd, but with block 0 bad it fails to read the card.
Just seeing if there are any fdisk tricks that I haven\'t yet attempted on my 2 week old SD card
-
Hi all
I am experiencing exactly the same problems with my brand new Sandisk 215MB SD card (SANDISK SECURE DIGITAL ULTRA II (SD) 512MB)
I just called the local hepdesk here in Sweden and they accepted to replace the faulty SD card without even discussing what had happened. Maybe it is a known error? :-/ The card worked fine the first two weeks and then it just failed, no unclean eject or similar... This is the symptoms I experience when running the card.
When I checked for badblocks all blocks from 438025 and to the end of the disk are corrupt (bad). (I think it is something like 10% of the total). Block 0 also seems to be inconsistent, sometimes it works and sometimes not.
When copying large amounts of small files to the disk it fails fatally after some time, no files can be read after the failue.
# cp /mnt/cf/card-backup/cramfs/zsdk-1.0.5.1.cramfs .
cp: unable to open `./zsdk-1.0.5.1.cramfs\': Input/output error
# dmesg
pxa_sd_wait_response: responce time out (cmd=07 MMC_STAT=0x2142)
sd_write_multiple(239964) : select error
sd flush : ERROR adr = 122368 (0x1de00) , len = 1024 (0x400)
[SD]-R 1501e200 0400 ERROR!
EXT3-fs error (device mmcd(60,1)): read_inode_bitmap: Cannot read inode bitmap - block_group = 42, inode_bitmap = 344066
EXT3-fs error (device mmcd(60,1)) in ext3_new_inode: IO failure
pxa_sd_wait_response: responce time out (cmd=07 MMC_STAT=0x2142)
sd_write_multiple(239964) : select error
sd flush : ERROR adr = 122368 (0x1de00) , len = 1024 (0x400)
Anyhow, I have to wait until I get the new card to see if it performes better or if the same applies for that.
Anyone got a Sandisk Ultra II 512MB card that works?
/MH
-
Uh oh... seems like I also had the same problem. I have had my SD card (Lexar 256MB, 32x) for 2 months. Once it arrived, I \"mkfs.ext2\" it without doing the fdisk ritual first (i.e. without changing the partition type to EXT2). Oh, well. I didn\'t realize it needed to to be done until yesterday. Anyway, the card worked fine with the EXT2 filesystem for these days, until 2 days ago when I tried to untar an archive, and it gives a lot of I/O error. See here for some kernel error messages it gave:
http://www.zaurususergroup.com/index.php?n...iewtopic&t=4778 (https://www.oesf.org/forums/index.php?showtopic=4778)
After that error happened, I thought first it was a software error (i.e. merely filesystem error). I tried to e2fsck it. Once \"fixed\", trying to write to the card would result in same kind of errors again (pxa_sd_wait_response error and so on). At that time one of the inode that was problematic was 40432. It always happened there, so I thought, well, may be this is a bad sector. Tried to reformat the card doesn\'t help (fdisk + mke2fs). Then I reformatted the card under Windows 2000 (to vfat16). To make the long story short, writing data to the card with FAT16 partition would result in errors, too (of course, I don\'t know what they are since Windows doesn\'t tell you them). So now the card seems to be completely unusable. Everytime I tried to re-format the card with fdisk+mke2fs in my zaurus, it won\'t do it. It seemed to be successful, but at the same time dmesg shows a lot of errors (pxa_sd_wait_response et al., again).
All I want to do right now is to return the card and obtain a replacement or a refund (!).
* Does anyone know how to \"recondition\" the card, if somehow I\'ve messed it up? Is the hardware truly NOT reusable anymore?
* Do you know why the EXT2 partition caused too much problems with SD card, as posted many times in this forum? It seemed too illogical to me that it should happen. After all, whether it\'s FAT16 or EXT2, they are on the software level, and has nothing to do with the hardware.
-
has anybody experiences with lexar 512mb sd-cards?
thanks for any reply.
stephan
Yes... mine does exactly what you say here. Most of the time you can
umount, e2fsck, mount...
sometimes, though, you will need to power off the Z... etc.
it\'s a royal pain. In my mind sd on z is 100% useless.
That is with a 512mb sd.
I have a 256mb lexar -- and it hasn\'t shown any problems... yet.
I bought 2 512mb sandisk -- I haven\'t formatted them. I will format one
ext2 and then compare their use and lives.
Scott
-
Sandisk SD Cards seems to be a major pain in the $%&. I\'ve used a 256 MB SanDisk SD Card in my Zaurus for several months. Corruptions once a week. Interestingly enough these cards work without problems in my digicam.
Last week I finally bought a new 512 MB Lexar 32x High-Speed SD-Card (rated ~4.7MB/s). This thing screams!
Access/filecreation and -deletion times are fast. And I haven\'t had any problems copying very small, average and big files to this card. Finally a good card for running even big programs directly of.
-
Well, it hasn\'t yet answered my question. Why are there problems with SD cards with Z? It just doesn\'t make sense to me! If the Z is supposed to be able to accept SD cards, then it should be compatible with it. The only possibilit(ies) are: (1) the Z\'s hardware interface is buggy, or (2) the card uses a bizzare (nonstandard) protocol, or (3) there\'s bug in the Z\'s OS. Can anybody point out to why the SD cards could cause so many problems in Z? Has anybody discussed it in ZUG forum(s)?
-
Hi
I have got a new Sandisk 512MB SD-card and tested it for a while (my previous card failed bigtime and I had to return it to the vendor). This new card will unfortunately also become corrupt if I run it as a usual card (normal mount parameters). I found out that adding the sync parameter to the fstab file fixes my problems, anyone seen the same? The major drawback is that the performance sucks now...
Could the problems be related to concurrent read/writes?
/Marcus
-
I have similar problems as well, but they seem to be related to my Z more so than the SD cards I have.
I first had a PNY 256 mb for a while which worked fine. I then copied some mp3s onto it using a proprietary program for my mp3 player. Apparently that borked it for my Z, which has since refused to read any SD card, including a store-bought SanDisk 128 I got a few days ago. With the new card, dmesg simply says "VFS: Disk change detected on mmcd(60,1)" or something, but doesn't mount it or even read it. When I "mount -t vfat /dev/mmcda1 /mnt/card" it says "mmcda1 is not a valid block device." I've tried just about anything. I might try updating the sd modules, but I doubt that would change anything. Its definately the fault of my Z, because my mp3 player still reads both cards, as well as my computer, both windows and linux.
I'm about ready to give up with SD cards and use the empty SD card slot to store used gum or something.
-
Well, it hasn't yet answered my question. Why are there problems with SD cards with Z? It just doesn't make sense to me! If the Z is supposed to be able to accept SD cards, then it should be compatible with it. The only possibilit(ies) are: (1) the Z's hardware interface is buggy, or (2) the card uses a bizzare (nonstandard) protocol, or (3) there's bug in the Z's OS. Can anybody point out to why the SD cards could cause so many problems in Z? Has anybody discussed it in ZUG forum(s)?
Ditto.
I've spent hours looking for some definitive information on the apparently epidemic SD problems (besides "it works" and "it doesn't work" and "try fsck"). And of course my 1G Sandisk bit the dust days after formatting to ext2!
Are there any gurus out there who can set this stuff straight? Or at least offer some detailed information about what's going on here, like where the problem really is...
many thanks for the help
-
hallo,
i recently tried a kingston sd-card and it worked really great without any problems so far.
i've tested it since 2 weeks. really no problems. i don't know what sandisk is going to intend, but their sd-cards are bullshit (cf is working!!). i've tested 3 ones and neither of them worked. i can only recommend the kingston sd-cards! Don't buy sandisk sd-cards.
the are not working! it's wasted money!!
stephan
-
I don't know if this is entirely true, or partially true (ie: depending on brand, etc).
I have seen it mentioned that simple doing a newfs (are people calling this a format?)
is ok -- as long as the partition table isn't changed.
I don't know if changing the partition ID from, say, fat to extX is too much, or if it
is resizing that is too much.
I have an SD that had no problems after using as ext2 under a c700. After I used
it in my 760, it went flaky (in both).
I now have 2 more 512mb SDs... I have done a "newfs" on one of them, and I have
not had any problems -- but I have not tested it heavily.. and I have not pulled it
while writing or shut off the power while writing.
my 256mb card doesn't have any problems.
my 512 with issues is lexar.
my 256 without issues is lexar.
my two new 512s are sandisk ($79ea, couldn't resist)
I also don't know if formatting in a camera helps/fixes the issue.
My new camera takes Cf (I figured they were larger capacity and cheaper --
I get 9000 pics at low res with a 1GB cf! 400 at max res)
Scott
-
well i've been trying to get my Z to load to a ext3 for a while after reading posts hear i went out and got a kingston sd card , tried again and now it works.
i don't get the input output errors any more.
so i must tell everyone don't buy scan disk cards .
-
I use Sandisk 512 MB and 1.0GB cards,
Both have the same problem with ext2. (I formatted with and without the cfdisk step, single and multiple partitions, all the same problems)
I reformatted the 512 MB back to vfat and it works OK now, but I didn't transfer a lot of files to it using my Z up to now.
Yesterday I suspended my C860 (kathrin rom) while xmms was on pause from playing a directory on the SD card. After resume I had to reboot it before being able to run an e2fsck on the SD card. The whole directory of mp3's was removed during the file check.
Copying files to the SD card using sftp from my pc works like a charm until I suspend my Z, afterwards the files are often(but not always) not to be found on the SD card.
Copying a lot of files from the CF card to the SD card sometimes is problematic, the other way around always worked up to now.
It looks like a sync problem to me, that could explain why standard sandisk (a bit slower than the rest?) have more problems.
I'll try setting the sync option in my fstab file.
My first post, I like PdaXrom.
didac