Discussion:
[arch-general] Arch linux doesn't recognises micro SD card
Csányi Pál
2015-02-25 10:36:59 UTC
Permalink
Hi,

I'm running Arch linux on my laptop.
The laptop has Multi-in-1 card reader.

I just bought a micro SD card with an adapter so I can it plug in into
this card reader.

But the Arch linux system doesn't recognise it so I can't use it.
I tried with Gparted too without any success:
I get Gparted error:
Output/Input error during read on /dev/mmcblk0

whyle on the virtual console I get error messages:

mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response
0x900, card status 0x0
Buffer I/O error on dev mmcblk0, logical block 0, async page read

However, this same micro SD card has been recognised on MS Windows system.

What can I do to solve this problem on my Arch linux system?
--
Regards from Pal
psycho
2015-02-25 22:43:15 UTC
Permalink
Post by Csányi Pál
Hi,
I'm running Arch linux on my laptop.
The laptop has Multi-in-1 card reader.
I just bought a micro SD card with an adapter so I can it plug in into
this card reader.
But the Arch linux system doesn't recognise it so I can't use it.
Output/Input error during read on /dev/mmcblk0
mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response
0x900, card status 0x0
Buffer I/O error on dev mmcblk0, logical block 0, async page read
However, this same micro SD card has been recognised on MS Windows system.
What can I do to solve this problem on my Arch linux system?
--
Regards from Pal
Hello,

I have experienced the same issue on a Sony Vaio (VPCEJ-1M1E) which only
has an SD port. The SD cards are working flawlessly while micro SD cards
used with SD adapters aren't working at all. I have given the micro SD
card to a classmate, otherwise would've tried it again.

Yours truly,
--
/*
p s
y c
h o
*/
Aaron Caffrey
2015-02-25 22:58:06 UTC
Permalink
Install udisks, udisks2.
Create /etc/polkit-1/rules.d/10-enable-mount.rules

polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system"
&& subject.isInGroup("storage")) {
return polkit.Result.YES;
}
});
Post by Csányi Pál
Hi,
I'm running Arch linux on my laptop.
The laptop has Multi-in-1 card reader.
I just bought a micro SD card with an adapter so I can it plug in into
this card reader.
But the Arch linux system doesn't recognise it so I can't use it.
Output/Input error during read on /dev/mmcblk0
mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response
0x900, card status 0x0
Buffer I/O error on dev mmcblk0, logical block 0, async page read
However, this same micro SD card has been recognised on MS Windows system.
What can I do to solve this problem on my Arch linux system?
--
Regards from Pal
Csányi Pál
2015-02-26 17:41:24 UTC
Permalink
Post by Aaron Caffrey
Install udisks, udisks2.
Create /etc/polkit-1/rules.d/10-enable-mount.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system"
&& subject.isInGroup("storage")) {
return polkit.Result.YES;
}
});
I did follow your advice and did create this config file.
I have installed udisks and udisks2.

I can follow these steps:
http://archlinuxarm.org/platforms/armv6/raspberry-pi

to the step 4. where the following command:
mkfs.ext4 /dev/sdX2

can't be completed successfully, because after I run it, I can't mount
the new second partition formatted to have ext4 type filesystem.

I tried these steps by using Gparted too, but at this step Gparted
can't read partitions from the during read on

/dev/mmcblk0

Gparted gives the error message:
I/O error during read on /dev/mmcblk0

What can I do to solve this problem?
--
Regards from Pal
Sean Greenslade
2015-02-26 18:25:08 UTC
Permalink
Post by Csányi Pál
I tried these steps by using Gparted too, but at this step Gparted
can't read partitions from the during read on
/dev/mmcblk0
I/O error during read on /dev/mmcblk0
What can I do to solve this problem?
Your hardware has issues, and I don't think any software will fix it. My
guess is that the issue is in one of three places:

1: Your SD card is damaged / broken. To test this, try it in
a known-working reader. Note that Windows will not understand Linux /
RPi partitions (but should be able to at least see the boot partition).

2. If you're using a microSD to SD adapter, I've seen plenty of those be
flaky and crappy. Try a different adapter, or get a reader that supports
uSD directly.

3. The reader is broken. Since it's the built-in one on the laptop, the
only way to test this is to try a different card / try on a different OS
(live boot USB drives are useful for this).

In any case, seeing IO errors in dmesg means that there are hardware
problems. Udisk will not in any way solve those, and is not needed for
imaging SD cards for the Pi. If your edit to the polkit config broke
your login, undo it.

--Sean
Csányi Pál
2015-02-26 18:58:13 UTC
Permalink
Post by Sean Greenslade
Post by Csányi Pál
I tried these steps by using Gparted too, but at this step Gparted
can't read partitions from the during read on
/dev/mmcblk0
I/O error during read on /dev/mmcblk0
What can I do to solve this problem?
Your hardware has issues, and I don't think any software will fix it. My
1: Your SD card is damaged / broken. To test this, try it in
a known-working reader. Note that Windows will not understand Linux /
RPi partitions (but should be able to at least see the boot partition).
I can mount it's first partition, that with FAT32 type filesystem.
I can't only format it's second partition, with ex4 type filesystem.

Still does it mean that the uSD card is damaged?
Post by Sean Greenslade
2. If you're using a microSD to SD adapter, I've seen plenty of those be
flaky and crappy. Try a different adapter, or get a reader that supports
uSD directly.
Yes, I'm using a microSD card to SD adapter. I shall try another brand
of SD adapter, that I have.
Post by Sean Greenslade
3. The reader is broken. Since it's the built-in one on the laptop, the
only way to test this is to try a different card / try on a different OS
(live boot USB drives are useful for this).
I shall try that too.
Post by Sean Greenslade
In any case, seeing IO errors in dmesg means that there are hardware
problems. Udisk will not in any way solve those, and is not needed for
imaging SD cards for the Pi. If your edit to the polkit config broke
your login, undo it.
I did remove the configuration file, and did remove udisks; I have now
installed udisks2 only.
--
Regards from Pal
Guus Snijders
2015-02-26 20:02:15 UTC
Permalink
Post by Csányi Pál
Post by Sean Greenslade
Post by Csányi Pál
I tried these steps by using Gparted too, but at this step Gparted
can't read partitions from the during read on
/dev/mmcblk0
I/O error during read on /dev/mmcblk0
What can I do to solve this problem?
Your hardware has issues, and I don't think any software will fix it. My
1: Your SD card is damaged / broken. To test this, try it in
a known-working reader. Note that Windows will not understand Linux /
RPi partitions (but should be able to at least see the boot partition).
I can mount it's first partition, that with FAT32 type filesystem.
I can't only format it's second partition, with ex4 type filesystem.
Still does it mean that the uSD card is damaged?
Post by Sean Greenslade
2. If you're using a microSD to SD adapter, I've seen plenty of those be
flaky and crappy. Try a different adapter, or get a reader that supports
uSD directly.
Yes, I'm using a microSD card to SD adapter. I shall try another brand
of SD adapter, that I have.
Post by Sean Greenslade
3. The reader is broken. Since it's the built-in one on the laptop, the
only way to test this is to try a different card / try on a different OS
(live boot USB drives are useful for this).
I shall try that too.
One thing I ran into was the difference between sd versions; sdhc cards
wont work in an (standard) sd reader. I don't know how to check the reader
from Linux, but it's probably in the hardware specs.

Mvg, Guus
Sean Greenslade
2015-02-27 00:41:49 UTC
Permalink
Post by Csányi Pál
Post by Sean Greenslade
1: Your SD card is damaged / broken. To test this, try it in
a known-working reader. Note that Windows will not understand Linux /
RPi partitions (but should be able to at least see the boot partition).
I can mount it's first partition, that with FAT32 type filesystem.
I can't only format it's second partition, with ex4 type filesystem.
Still does it mean that the uSD card is damaged?
If when you attempt to do an operation on it, you get IO errors in
dmesg, yes, that means your card OR card reader OR card adapter is
broken. If it is partition-specific, I would assume that it is the card
that is broken.

--Sean
Csányi Pál
2015-02-27 21:08:05 UTC
Permalink
Hello everyone,
Post by Sean Greenslade
Post by Csányi Pál
Post by Sean Greenslade
1: Your SD card is damaged / broken. To test this, try it in
a known-working reader. Note that Windows will not understand Linux /
RPi partitions (but should be able to at least see the boot partition).
I can mount it's first partition, that with FAT32 type filesystem.
I can't only format it's second partition, with ex4 type filesystem.
Still does it mean that the uSD card is damaged?
If when you attempt to do an operation on it, you get IO errors in
dmesg, yes, that means your card OR card reader OR card adapter is
broken. If it is partition-specific, I would assume that it is the card
that is broken.
I bought an USB microSD card reader and with it I can use the microSD card.
I completed partitioning and formatting microSD card.

I have now installed on it Arch linux.
I can boot with it the RaspberryPi.

Thank you all for helping me out.
--
Regards from Pal
Aaron Caffrey
2015-02-26 21:51:26 UTC
Permalink
Post by Csányi Pál
Post by Aaron Caffrey
Install udisks, udisks2.
Create /etc/polkit-1/rules.d/10-enable-mount.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system"
&& subject.isInGroup("storage")) {
return polkit.Result.YES;
}
});
I did follow your advice and did create this config file.
I have installed udisks and udisks2.
http://archlinuxarm.org/platforms/armv6/raspberry-pi
mkfs.ext4 /dev/sdX2
can't be completed successfully, because after I run it, I can't mount
the new second partition formatted to have ext4 type filesystem.
I tried these steps by using Gparted too, but at this step Gparted
can't read partitions from the during read on
/dev/mmcblk0
I/O error during read on /dev/mmcblk0
What can I do to solve this problem?
--
Regards from Pal
If my memory serves me correctly, you said that your card is read in
Windows.

What I would suggest you is to format it in Windows, but from the
command prompt (start menu, type "cmd" or just browse accessories and
start "command prompt"):

In the terminal/command prompt type:

diskpart.exe
list disk
select disk X
detail disk
clean
create partition primary
active
format fs=fat32 quick
assign
exit
Csányi Pál
2015-02-26 17:46:55 UTC
Permalink
Post by Aaron Caffrey
Install udisks, udisks2.
Create /etc/polkit-1/rules.d/10-enable-mount.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system"
&& subject.isInGroup("storage")) {
return polkit.Result.YES;
}
});
After I created this file and try to reboot with microSD card left
inserted in the card reader, I can't even login into my system. Why?
--
Regards from Pal
Jens Adam
2015-02-26 18:31:49 UTC
Permalink
Wed, 25 Feb 2015 11:36:59 +0100
Post by Csányi Pál
mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response
0x900, card status 0x0
Buffer I/O error on dev mmcblk0, logical block 0, async page read
This clearly indicates a hardware/kernel problem, so I don't know why
people are suggesting to paste random config snippets that won't solve
anything.

Simple googling will produce dozens of similar problems, most without
solution.

My guess: Your card reader (which one? lspci/lsusb/dmesg? laptop type and
age?) or its firmware is simply too old to recognize the card.
See https://en.wikipedia.org/wiki/Secure_Digital#Compatibility

--byte
Aaron Caffrey
2015-02-26 21:05:36 UTC
Permalink
Post by Jens Adam
Wed, 25 Feb 2015 11:36:59 +0100
Post by Csányi Pál
mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response
0x900, card status 0x0
Buffer I/O error on dev mmcblk0, logical block 0, async page read
This clearly indicates a hardware/kernel problem, so I don't know why
people are suggesting to paste random config snippets that won't solve
anything.
Simple googling will produce dozens of similar problems, most without
solution.
My guess: Your card reader (which one? lspci/lsusb/dmesg? laptop type and
age?) or its firmware is simply too old to recognize the card.
See https://en.wikipedia.org/wiki/Secure_Digital#Compatibility
--byte
Because I had exactly the same issue with different kernels, one
kernel will read my micro sd card and others wont. The solution which I
posted has helped me long time ago, that is why I shared it.

What is the purpose of this mailing list if we can't help each other ?
Loading...