[opensuse] writing to a flash card
This morning I was trying to write a JeOS image to a 16Gb microSD card. After having written it, I had two partitions which I then tried to mount to verify the contents. The first partition was fine, the second kept showing weird filesystem errors. I tried running fsck etc., all to no avail. I began to suspect the image was bad, no matter how far fetched that sounds - until I tried a different machine. It suddenly worked just fine. Machine#1 (where it fails): Lenovo laptop, openSUSE Leap422, device is /dev/mmcblk0. The card reader appears connected via USB (internally, Realtek RTS5129). Machine#2 (where it works): Toshiba laptop, openSUSE 12.3, device is /dev/sdb The card reader is connected via USB (internally, Realtek RTS5138). I'm copying the image file with something like this: dd if=image of=/dev/sdb bs=1M iflag=fullblock oflag=direct Machine#1 is brand new, I'm a bit annoyed that it doesn't work. The question is - hardware problem or driver problen? -- Per Jessen, Zürich (4.5°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Per Jessen <per@computer.org> [02-07-17 10:59]:
This morning I was trying to write a JeOS image to a 16Gb microSD card. After having written it, I had two partitions which I then tried to mount to verify the contents. The first partition was fine, the second kept showing weird filesystem errors. I tried running fsck etc., all to no avail. I began to suspect the image was bad, no matter how far fetched that sounds - until I tried a different machine. It suddenly worked just fine.
Machine#1 (where it fails): Lenovo laptop, openSUSE Leap422, device is /dev/mmcblk0. The card reader appears connected via USB (internally, Realtek RTS5129).
Machine#2 (where it works): Toshiba laptop, openSUSE 12.3, device is /dev/sdb The card reader is connected via USB (internally, Realtek RTS5138).
I'm copying the image file with something like this:
dd if=image of=/dev/sdb bs=1M iflag=fullblock oflag=direct
Machine#1 is brand new, I'm a bit annoyed that it doesn't work. The question is - hardware problem or driver problen?
Check that your reader supports the version of the sd card. I have several older readers that will not read newer cards, especially sd cards as they have several newer types. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 Photos: http://wahoo.no-ip.org/piwigo @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan wrote:
* Per Jessen <per@computer.org> [02-07-17 10:59]:
This morning I was trying to write a JeOS image to a 16Gb microSD card. After having written it, I had two partitions which I then tried to mount to verify the contents. The first partition was fine, the second kept showing weird filesystem errors. I tried running fsck etc., all to no avail. I began to suspect the image was bad, no matter how far fetched that sounds - until I tried a different machine. It suddenly worked just fine.
Machine#1 (where it fails): Lenovo laptop, openSUSE Leap422, device is /dev/mmcblk0. The card reader appears connected via USB (internally, Realtek RTS5129).
Machine#2 (where it works): Toshiba laptop, openSUSE 12.3, device is /dev/sdb The card reader is connected via USB (internally, Realtek RTS5138).
I'm copying the image file with something like this:
dd if=image of=/dev/sdb bs=1M iflag=fullblock oflag=direct
Machine#1 is brand new, I'm a bit annoyed that it doesn't work. The question is - hardware problem or driver problen?
Check that your reader supports the version of the sd card.
How do I do that? Not to mention - the older Toshiba is the one that works, the newer Lenovo doesn't. The card itself is maybe a year, maybe 2 old. Kingston or Transcend Class 10. -- Per Jessen, Zürich (3.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 07/02/2017 à 17:22, Per Jessen a écrit :
How do I do that? Not to mention - the older Toshiba is the one that works, the newer Lenovo doesn't. The card itself is maybe a year, maybe 2 old. Kingston or Transcend Class 10.
sd less than 4Gb, SDHC 32Gb or less, SDXC up to 128Go or more try an external reader I never had problem with a pc reader, but who knows jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Per Jessen <per@computer.org> [02-07-17 11:23]:
Patrick Shanahan wrote: [....]
Check that your reader supports the version of the sd card.
How do I do that? Not to mention - the older Toshiba is the one that works, the newer Lenovo doesn't. The card itself is maybe a year, maybe 2 old. Kingston or Transcend Class 10.
perhaps hwinfo or maybe using the info from hwinfo to research the chipset capabilities probably a usb device even though it is internal. maybe from the computer specs.... -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 Photos: http://wahoo.no-ip.org/piwigo @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/07/2017 11:19 AM, Patrick Shanahan wrote:
Check that your reader supports the version of the sd card. I have several older readers that will not read newer cards, especially sd cards as they have several newer types.
+1 to that. Check the archives. I ran into problems with speed and the list advised me to buy a Transcend USB3 (external) reader even when dealing with USB2 sockets. I did that and all is well and it performs wonderfully. Per: It may be that the older Toshiba works because it is USB2 with a USB2 reader but there is a problem with your USB2 reader on the newer USB3 socket on the newer Lenovo. I can't think why, there should be backward compatibility, but these things happen and Nature and manufacturers send them to vex us. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Anton Aylward wrote:
On 02/07/2017 11:19 AM, Patrick Shanahan wrote:
Check that your reader supports the version of the sd card. I have several older readers that will not read newer cards, especially sd cards as they have several newer types.
+1 to that. Check the archives. I ran into problems with speed and the list advised me to buy a Transcend USB3 (external) reader even when dealing with USB2 sockets. I did that and all is well and it performs wonderfully.
Per: It may be that the older Toshiba works because it is USB2 with a USB2 reader but there is a problem with your USB2 reader on the newer USB3 socket on the newer Lenovo.
Anton, it's a built-in card reader, no external devices involved. I'm not sure if the Lenovo has USB3, it's not the latest and greatest. -- Per Jessen, Zürich (2.8°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/07/2017 10:18 AM, Per Jessen wrote:
I'm not sure if the Lenovo has USB3, it's not the latest and greatest.
Just to be clear, was it READING the card that failed, or Writing? -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
John Andersen wrote:
On 02/07/2017 10:18 AM, Per Jessen wrote:
I'm not sure if the Lenovo has USB3, it's not the latest and greatest.
Just to be clear, was it READING the card that failed, or Writing?
It appears to be writing that fails, but you only see the file system problems when you try to read it. Anyway, see my posting from 2seconds ago, it's a driver issue. -- Per Jessen, Zürich (3.3°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/07/2017 01:18 PM, Per Jessen wrote:
Anton, it's a built-in card reader, no external devices involved.
OK, but regardless, you might want to try an external reader, just as JDD suggests. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Anton Aylward wrote:
On 02/07/2017 01:18 PM, Per Jessen wrote:
Anton, it's a built-in card reader, no external devices involved.
OK, but regardless, you might want to try an external reader, just as JDD suggests.
Hmm, I'm not sure what that will bring? As for as achieving my main objective, I can use the Toshiba laptop, everything works fine. What is annoying is that the newer Lenovo laptop with the newer openSUSE distro does _not_ work. That is the issue I am pursuing. The question is if it is a hardware issue (in which case I return the laptop for repair) or if it is a driver issue. Second, I'd also like to understand why the flash card is available as /dev/sdx on the older platform and /dev/mmcblkx on the newer, and in particular if it makes a difference. -- Per Jessen, Zürich (2.1°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 07/02/2017 à 22:37, Per Jessen a écrit :
available as /dev/sdx on the older platform and /dev/mmcblkx on the newer, and in particular if it makes a difference.
seems normal to me. jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On February 7, 2017 1:48:52 PM PST, jdd <jdd@dodin.org> wrote:
Le 07/02/2017 à 22:37, Per Jessen a écrit :
available as /dev/sdx on the older platform and /dev/mmcblkx on the newer, and in particular if it makes a difference.
seems normal to me.
jdd
Yup. This is just due to progress in Linux development over the years. Probably no small part of that change is due to systemd handling of block devices. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-02-07 22:37, Per Jessen wrote:
Anton Aylward wrote:
On 02/07/2017 01:18 PM, Per Jessen wrote:
Anton, it's a built-in card reader, no external devices involved.
OK, but regardless, you might want to try an external reader, just as JDD suggests.
Hmm, I'm not sure what that will bring? As for as achieving my main objective, I can use the Toshiba laptop, everything works fine. What is annoying is that the newer Lenovo laptop with the newer openSUSE distro does _not_ work. That is the issue I am pursuing. The question is if it is a hardware issue (in which case I return the laptop for repair) or if it is a driver issue. Second, I'd also like to understand why the flash card is available as /dev/sdx on the older platform and /dev/mmcblkx on the newer, and in particular if it makes a difference.
Using the same external reader on both machines would serve to determine if it is the internal reader on the new computer that is the problem, or it is the card. I'm surprised at the different device. I just tried a memcard on this laptop that runs 42.2, and it worked the same as always, /dev/sdb. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 02/07/2017 06:46 PM, Carlos E. R. wrote:
On 2017-02-07 22:37, Per Jessen wrote:
Anton Aylward wrote:
On 02/07/2017 01:18 PM, Per Jessen wrote:
Anton, it's a built-in card reader, no external devices involved.
OK, but regardless, you might want to try an external reader, just as JDD suggests.
Hmm, I'm not sure what that will bring? As for as achieving my main objective, I can use the Toshiba laptop, everything works fine. What is annoying is that the newer Lenovo laptop with the newer openSUSE distro does _not_ work. That is the issue I am pursuing. The question is if it is a hardware issue (in which case I return the laptop for repair) or if it is a driver issue. Second, I'd also like to understand why the flash card is available as /dev/sdx on the older platform and /dev/mmcblkx on the newer, and in particular if it makes a difference.
Using the same external reader on both machines would serve to determine if it is the internal reader on the new computer that is the problem, or it is the card. I'm surprised at the different device.
I just tried a memcard on this laptop that runs 42.2, and it worked the same as always, /dev/sdb.
I just did the same. I have a build in reader slot on this old Dell Inspiron 9400. When I insert a 16gig SdHC card in the reader there is an absolute shit storm of messages spewed by journalctl -ef. Including stack traces and all shorts of scary stuff. Then the card comes available in /run/media/jsa/disk/ and is perfectly readable. The underlying device is /dev/mmcblk0 with one partition /dev/mmcblk01 Then I get my portable USB Multi-Slot reader, and plug that in. No drama in the logs. But it can't read the Sdhc card. It will read an old CF card I happened to have. It comes up as /dev/sdb with one partition /dev/sdb1 Stranger and Stranger. -- After all is said and done, more is said than done.
Le 08/02/2017 à 04:28, John Andersen a écrit :
Stranger and Stranger.
pcmcia interface as I seems to have noted in my (incomplete) howto (2009): http://www.tldp.org/HOWTO/Partition-Mass-Storage-Definitions-Naming-HOWTO/x9... jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 08/02/2017 à 04:28, John Andersen a écrit :
Stranger and Stranger.
pcmcia interface
On my new Lenovo laptop, where the SD card appears as /dev/mmcblk0, "lspcmcia" produces nothing, whereas lsusb lists the card reader controller. I don't know what to believe. -- Per Jessen, Zürich (3.1°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 08/02/2017 à 09:45, Per Jessen a écrit :
jdd wrote:
Le 08/02/2017 à 04:28, John Andersen a écrit :
Stranger and Stranger.
pcmcia interface
On my new Lenovo laptop, where the SD card appears as /dev/mmcblk0, "lspcmcia" produces nothing, whereas lsusb lists the card reader controller.
I don't know what to believe.
probably described somewhere in the kernel sources as this is kernel work :-) may be this? http://developer.toradex.com/knowledge-base/sd-mmc-card-(linux) mmc is for Multi Media Card https://en.wikipedia.org/wiki/MultiMediaCard similar (but not same) as sd cards jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/07/2017 10:28 PM, John Andersen wrote:
Then I get my portable USB Multi-Slot reader, and plug that in. No drama in the logs. But it can't read the Sdhc card. It will read an old CF card I happened to have. It comes up as /dev/sdb with one partition /dev/sdb1
Stranger and Stranger.
Indeed. I have, as mentioned a long time ago on the list, and older card reader. it would read my older (and slower) pocket camera's SDXC and my phone's micro- albeit s..l..o..w..l..y. I was recommended a Transend USB3 reader even if my opti[lex 755 only has USB2 slots. Not only does this read those old cards, but it also reads the 60mb/s and 80msb/s cards used for video in my DSLR. The older card reader won't handle those at all. <====== You don't say what cards, what speed. You don't say what type of reader. My experience is that it makes a difference. YMMV However .... If this was anything else you'd insist on the OS number/release etc. The same applies here. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-02-08 14:21, Anton Aylward wrote:
You don't say what cards, what speed. You don't say what type of reader. My experience is that it makes a difference. YMMV
He did :-) It is the internal reader of the laptop. Also, it was found to be a driver issue. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On 02/08/2017 05:21 AM, Anton Aylward wrote:
You don't say what cards, what speed. You don't say what type of reader. My experience is that it makes a difference. YMMV
However ....
If this was anything else you'd insist on the OS number/release etc. The same applies here.
Yes, if I was asking for help I would give those details, but I'm not. I was just replying to Carlos and Per about different readers/slots treating the removable storage as different device types, depending on the actual interface and drivers marshaled to handle the task. But since you asked so nicely.... It was 42.2 A built in reader on a dell laptop that worked, and appears as /dev/mmcblk0. An ancient USB multi-slot adaptor, Made in China, sold by Crucial long before the advent of SDHC cards. I didn't expect it to work on a 16 gig card, but on media types it works with it still shows up as /dev/sdx. I should probably cut and paste the mentioned log spewing of stack traces into a Bug Report somewhere. But spewing and still working probably garners nobody's attention. -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
On 2017-02-07 22:37, Per Jessen wrote:
Anton Aylward wrote:
On 02/07/2017 01:18 PM, Per Jessen wrote:
Anton, it's a built-in card reader, no external devices involved.
OK, but regardless, you might want to try an external reader, just as JDD suggests.
Hmm, I'm not sure what that will bring? As for as achieving my main objective, I can use the Toshiba laptop, everything works fine. What is annoying is that the newer Lenovo laptop with the newer openSUSE distro does _not_ work. That is the issue I am pursuing. The question is if it is a hardware issue (in which case I return the laptop for repair) or if it is a driver issue. Second, I'd also like to understand why the flash card is available as /dev/sdx on the older platform and /dev/mmcblkx on the newer, and in particular if it makes a difference.
Using the same external reader on both machines would serve to determine if it is the internal reader on the new computer that is the problem, or it is the card.
There must be some logic I can't follow here - the card works, it was flashed, the target machine (nanopi) is booting from it and I can read with the Leonovo. It seems quite clear that the issue is with the Lenovo, but again, hardware or driver? (if the card didn't work, it would be easier&cheaper to get hold of a new card than an external reader). Uh wait, I've just seen a pile of error messages on the Lenovo: http://files.jessen.ch/lenovo-sdcard.txt I think I might open a bugreport.
I'm surprised at the different device.
Me too. Especially when the hookup looks so similar - Realtek, USB, RTS5129, RTS5138. On the old Toshiba, usb storage is obviously being loaded, somehow that doesn't happen on the new Lenovo.
I just tried a memcard on this laptop that runs 42.2, and it worked the same as always, /dev/sdb.
What kind of interface is it - USB etc? Plug the card in, then run lsusb. -- Per Jessen, Zürich (2.4°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-02-08 07:54, Per Jessen wrote:
Carlos E. R. wrote:
I just tried a memcard on this laptop that runs 42.2, and it worked the same as always, /dev/sdb.
What kind of interface is it - USB etc? Plug the card in, then run lsusb.
Bus 007 Device 003: ID 0bda:0159 Realtek Semiconductor Corp. RTS5159 Card Reader Controller -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))
On Tuesday, 7 February 2017 16:57:57 CET Per Jessen wrote:
Machine#1 (where it fails): Lenovo laptop, openSUSE Leap422, device is /dev/mmcblk0. The card reader appears connected via USB (internally, Realtek RTS5129).
Machine#2 (where it works): Toshiba laptop, openSUSE 12.3, device is /dev/sdb The card reader is connected via USB (internally, Realtek RTS5138).
I'm copying the image file with something like this:
dd if=image of=/dev/sdb bs=1M iflag=fullblock oflag=direct
Machine#1 is brand new, I'm a bit annoyed that it doesn't work. The question is - hardware problem or driver problen?
this goes back a year but perhaps not backported to 42.2 kernel Fix for RTS5129 USB MMC card reader on Linux 3.16+ kernels https://github.com/asymingt/rts5139 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
nicholas wrote:
On Tuesday, 7 February 2017 16:57:57 CET Per Jessen wrote:
Machine#1 (where it fails): Lenovo laptop, openSUSE Leap422, device is /dev/mmcblk0. The card reader appears connected via USB (internally, Realtek RTS5129).
Machine#2 (where it works): Toshiba laptop, openSUSE 12.3, device is /dev/sdb The card reader is connected via USB (internally, Realtek RTS5138).
I'm copying the image file with something like this:
dd if=image of=/dev/sdb bs=1M iflag=fullblock oflag=direct
Machine#1 is brand new, I'm a bit annoyed that it doesn't work. The question is - hardware problem or driver problen?
this goes back a year but perhaps not backported to 42.2 kernel Fix for RTS5129 USB MMC card reader on Linux 3.16+ kernels https://github.com/asymingt/rts5139 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579748
Aha, brilliant! exactly the same error messages I'm seeing. Right, so it's a driver issue. Thanks for finding that, Nicholas. -- Per Jessen, Zürich (3.2°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Anton Aylward
-
Carlos E. R.
-
jdd
-
John Andersen
-
nicholas
-
Patrick Shanahan
-
Per Jessen