Unable to read SD cards linux
I'm unable to read any SD card from Linux. I already tried both SD cards that I have here in different machines (windows and Linux) and they work flawlessly, I also booted from a live USB (the same kernel and distro I have installed) and they also work, so it must be something in my current Kali Linux install that is causing this.
First of all, these are the logs I receive when inserting the SD card:
Jan 4 22:41:42 matrix kernel: [ 2028.923668] mmc0: card lacks mandatory switch function, performance might suffer
Jan 4 22:41:42 matrix kernel: [ 2028.923685] mmc0: new SD card at address aaaa
Jan 4 22:41:42 matrix kernel: [ 2028.924358] mmcblk0: mmc0:aaaa DSC16 256 MiB (ro)
Jan 4 22:41:42 matrix kernel: [ 2029.006966] mmcblk0: p1
Jan 4 22:41:42 matrix kernel: [ 2029.006980] mmcblk0: p1 size 31108096 extends beyond EOD, truncated
Jan 4 22:41:43 matrix kernel: [ 2029.611115] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:43 matrix kernel: [ 2029.746877] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:43 matrix kernel: [ 2029.882571] print_req_error: I/O error, dev mmcblk0, sector 524674
Jan 4 22:41:43 matrix kernel: [ 2030.017980] print_req_error: I/O error, dev mmcblk0, sector 524675
Jan 4 22:41:43 matrix kernel: [ 2030.153261] print_req_error: I/O error, dev mmcblk0, sector 524676
Jan 4 22:41:44 matrix kernel: [ 2030.288366] print_req_error: I/O error, dev mmcblk0, sector 524677
Jan 4 22:41:44 matrix kernel: [ 2030.424021] print_req_error: I/O error, dev mmcblk0, sector 524678
Jan 4 22:41:44 matrix kernel: [ 2030.559682] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:44 matrix kernel: [ 2030.966821] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:44 matrix kernel: [ 2031.101915] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:45 matrix kernel: [ 2031.913602] Buffer I/O error on dev mmcblk0, logical block 65584, async page read
Jan 4 22:41:48 matrix kernel: [ 2034.631681] print_req_error: 21 callbacks suppressed
Jan 4 22:41:48 matrix kernel: [ 2034.631686] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:48 matrix kernel: [ 2034.631701] Buffer I/O error on dev mmcblk0p1, logical block 64560, async page read
This is my the output of lspci -v, more specifically, the SD card reader:
02:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) (prog-if 01)
Subsystem: Lenovo SD/MMC Card Reader Controller
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at e1301000 (32-bit, non-prefetchable) [size=4K]
Memory at e1300000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
output of lsmod | grep mmc
mmc_block 45056 0
mmc_core 172032 4 sdhci,cqhci,mmc_block,sdhci_pci
dmesg boot output related to the mmc:
[ 1.271406] mmc0: Unknown controller version (3). You may experience problems.
[ 1.271639] mmc0: SDHCI controller on PCI [0000:02:00.0] using ADMA
This is my kernel:
Linux matrix 4.18.0-kali2-amd64 #1 SMP Debian 4.18.10-2kali1 (2018-10-09) x86_64 GNU/Linux
Things that I already tried:
- Disable and enable sdhci with modprobe
- Change debug_quirk value of shdci_pci (options sdhci debug_quirks=0x40)
To be honest, I'm lost and found nothing else except recompiling the kernel.
Thanks in advance for your help and a happy 2019.
kernel kali-linux sd-card mmc
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I'm unable to read any SD card from Linux. I already tried both SD cards that I have here in different machines (windows and Linux) and they work flawlessly, I also booted from a live USB (the same kernel and distro I have installed) and they also work, so it must be something in my current Kali Linux install that is causing this.
First of all, these are the logs I receive when inserting the SD card:
Jan 4 22:41:42 matrix kernel: [ 2028.923668] mmc0: card lacks mandatory switch function, performance might suffer
Jan 4 22:41:42 matrix kernel: [ 2028.923685] mmc0: new SD card at address aaaa
Jan 4 22:41:42 matrix kernel: [ 2028.924358] mmcblk0: mmc0:aaaa DSC16 256 MiB (ro)
Jan 4 22:41:42 matrix kernel: [ 2029.006966] mmcblk0: p1
Jan 4 22:41:42 matrix kernel: [ 2029.006980] mmcblk0: p1 size 31108096 extends beyond EOD, truncated
Jan 4 22:41:43 matrix kernel: [ 2029.611115] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:43 matrix kernel: [ 2029.746877] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:43 matrix kernel: [ 2029.882571] print_req_error: I/O error, dev mmcblk0, sector 524674
Jan 4 22:41:43 matrix kernel: [ 2030.017980] print_req_error: I/O error, dev mmcblk0, sector 524675
Jan 4 22:41:43 matrix kernel: [ 2030.153261] print_req_error: I/O error, dev mmcblk0, sector 524676
Jan 4 22:41:44 matrix kernel: [ 2030.288366] print_req_error: I/O error, dev mmcblk0, sector 524677
Jan 4 22:41:44 matrix kernel: [ 2030.424021] print_req_error: I/O error, dev mmcblk0, sector 524678
Jan 4 22:41:44 matrix kernel: [ 2030.559682] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:44 matrix kernel: [ 2030.966821] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:44 matrix kernel: [ 2031.101915] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:45 matrix kernel: [ 2031.913602] Buffer I/O error on dev mmcblk0, logical block 65584, async page read
Jan 4 22:41:48 matrix kernel: [ 2034.631681] print_req_error: 21 callbacks suppressed
Jan 4 22:41:48 matrix kernel: [ 2034.631686] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:48 matrix kernel: [ 2034.631701] Buffer I/O error on dev mmcblk0p1, logical block 64560, async page read
This is my the output of lspci -v, more specifically, the SD card reader:
02:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) (prog-if 01)
Subsystem: Lenovo SD/MMC Card Reader Controller
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at e1301000 (32-bit, non-prefetchable) [size=4K]
Memory at e1300000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
output of lsmod | grep mmc
mmc_block 45056 0
mmc_core 172032 4 sdhci,cqhci,mmc_block,sdhci_pci
dmesg boot output related to the mmc:
[ 1.271406] mmc0: Unknown controller version (3). You may experience problems.
[ 1.271639] mmc0: SDHCI controller on PCI [0000:02:00.0] using ADMA
This is my kernel:
Linux matrix 4.18.0-kali2-amd64 #1 SMP Debian 4.18.10-2kali1 (2018-10-09) x86_64 GNU/Linux
Things that I already tried:
- Disable and enable sdhci with modprobe
- Change debug_quirk value of shdci_pci (options sdhci debug_quirks=0x40)
To be honest, I'm lost and found nothing else except recompiling the kernel.
Thanks in advance for your help and a happy 2019.
kernel kali-linux sd-card mmc
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Possible duplicate of Why is Kali Linux so hard to set up? Why won't people help me?
– RalfFriedl
19 mins ago
add a comment |
I'm unable to read any SD card from Linux. I already tried both SD cards that I have here in different machines (windows and Linux) and they work flawlessly, I also booted from a live USB (the same kernel and distro I have installed) and they also work, so it must be something in my current Kali Linux install that is causing this.
First of all, these are the logs I receive when inserting the SD card:
Jan 4 22:41:42 matrix kernel: [ 2028.923668] mmc0: card lacks mandatory switch function, performance might suffer
Jan 4 22:41:42 matrix kernel: [ 2028.923685] mmc0: new SD card at address aaaa
Jan 4 22:41:42 matrix kernel: [ 2028.924358] mmcblk0: mmc0:aaaa DSC16 256 MiB (ro)
Jan 4 22:41:42 matrix kernel: [ 2029.006966] mmcblk0: p1
Jan 4 22:41:42 matrix kernel: [ 2029.006980] mmcblk0: p1 size 31108096 extends beyond EOD, truncated
Jan 4 22:41:43 matrix kernel: [ 2029.611115] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:43 matrix kernel: [ 2029.746877] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:43 matrix kernel: [ 2029.882571] print_req_error: I/O error, dev mmcblk0, sector 524674
Jan 4 22:41:43 matrix kernel: [ 2030.017980] print_req_error: I/O error, dev mmcblk0, sector 524675
Jan 4 22:41:43 matrix kernel: [ 2030.153261] print_req_error: I/O error, dev mmcblk0, sector 524676
Jan 4 22:41:44 matrix kernel: [ 2030.288366] print_req_error: I/O error, dev mmcblk0, sector 524677
Jan 4 22:41:44 matrix kernel: [ 2030.424021] print_req_error: I/O error, dev mmcblk0, sector 524678
Jan 4 22:41:44 matrix kernel: [ 2030.559682] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:44 matrix kernel: [ 2030.966821] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:44 matrix kernel: [ 2031.101915] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:45 matrix kernel: [ 2031.913602] Buffer I/O error on dev mmcblk0, logical block 65584, async page read
Jan 4 22:41:48 matrix kernel: [ 2034.631681] print_req_error: 21 callbacks suppressed
Jan 4 22:41:48 matrix kernel: [ 2034.631686] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:48 matrix kernel: [ 2034.631701] Buffer I/O error on dev mmcblk0p1, logical block 64560, async page read
This is my the output of lspci -v, more specifically, the SD card reader:
02:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) (prog-if 01)
Subsystem: Lenovo SD/MMC Card Reader Controller
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at e1301000 (32-bit, non-prefetchable) [size=4K]
Memory at e1300000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
output of lsmod | grep mmc
mmc_block 45056 0
mmc_core 172032 4 sdhci,cqhci,mmc_block,sdhci_pci
dmesg boot output related to the mmc:
[ 1.271406] mmc0: Unknown controller version (3). You may experience problems.
[ 1.271639] mmc0: SDHCI controller on PCI [0000:02:00.0] using ADMA
This is my kernel:
Linux matrix 4.18.0-kali2-amd64 #1 SMP Debian 4.18.10-2kali1 (2018-10-09) x86_64 GNU/Linux
Things that I already tried:
- Disable and enable sdhci with modprobe
- Change debug_quirk value of shdci_pci (options sdhci debug_quirks=0x40)
To be honest, I'm lost and found nothing else except recompiling the kernel.
Thanks in advance for your help and a happy 2019.
kernel kali-linux sd-card mmc
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm unable to read any SD card from Linux. I already tried both SD cards that I have here in different machines (windows and Linux) and they work flawlessly, I also booted from a live USB (the same kernel and distro I have installed) and they also work, so it must be something in my current Kali Linux install that is causing this.
First of all, these are the logs I receive when inserting the SD card:
Jan 4 22:41:42 matrix kernel: [ 2028.923668] mmc0: card lacks mandatory switch function, performance might suffer
Jan 4 22:41:42 matrix kernel: [ 2028.923685] mmc0: new SD card at address aaaa
Jan 4 22:41:42 matrix kernel: [ 2028.924358] mmcblk0: mmc0:aaaa DSC16 256 MiB (ro)
Jan 4 22:41:42 matrix kernel: [ 2029.006966] mmcblk0: p1
Jan 4 22:41:42 matrix kernel: [ 2029.006980] mmcblk0: p1 size 31108096 extends beyond EOD, truncated
Jan 4 22:41:43 matrix kernel: [ 2029.611115] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:43 matrix kernel: [ 2029.746877] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:43 matrix kernel: [ 2029.882571] print_req_error: I/O error, dev mmcblk0, sector 524674
Jan 4 22:41:43 matrix kernel: [ 2030.017980] print_req_error: I/O error, dev mmcblk0, sector 524675
Jan 4 22:41:43 matrix kernel: [ 2030.153261] print_req_error: I/O error, dev mmcblk0, sector 524676
Jan 4 22:41:44 matrix kernel: [ 2030.288366] print_req_error: I/O error, dev mmcblk0, sector 524677
Jan 4 22:41:44 matrix kernel: [ 2030.424021] print_req_error: I/O error, dev mmcblk0, sector 524678
Jan 4 22:41:44 matrix kernel: [ 2030.559682] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:44 matrix kernel: [ 2030.966821] print_req_error: I/O error, dev mmcblk0, sector 524672
Jan 4 22:41:44 matrix kernel: [ 2031.101915] print_req_error: I/O error, dev mmcblk0, sector 524673
Jan 4 22:41:45 matrix kernel: [ 2031.913602] Buffer I/O error on dev mmcblk0, logical block 65584, async page read
Jan 4 22:41:48 matrix kernel: [ 2034.631681] print_req_error: 21 callbacks suppressed
Jan 4 22:41:48 matrix kernel: [ 2034.631686] print_req_error: I/O error, dev mmcblk0, sector 524679
Jan 4 22:41:48 matrix kernel: [ 2034.631701] Buffer I/O error on dev mmcblk0p1, logical block 64560, async page read
This is my the output of lspci -v, more specifically, the SD card reader:
02:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) (prog-if 01)
Subsystem: Lenovo SD/MMC Card Reader Controller
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at e1301000 (32-bit, non-prefetchable) [size=4K]
Memory at e1300000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
output of lsmod | grep mmc
mmc_block 45056 0
mmc_core 172032 4 sdhci,cqhci,mmc_block,sdhci_pci
dmesg boot output related to the mmc:
[ 1.271406] mmc0: Unknown controller version (3). You may experience problems.
[ 1.271639] mmc0: SDHCI controller on PCI [0000:02:00.0] using ADMA
This is my kernel:
Linux matrix 4.18.0-kali2-amd64 #1 SMP Debian 4.18.10-2kali1 (2018-10-09) x86_64 GNU/Linux
Things that I already tried:
- Disable and enable sdhci with modprobe
- Change debug_quirk value of shdci_pci (options sdhci debug_quirks=0x40)
To be honest, I'm lost and found nothing else except recompiling the kernel.
Thanks in advance for your help and a happy 2019.
kernel kali-linux sd-card mmc
kernel kali-linux sd-card mmc
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 23 mins ago
K7AAY
380319
380319
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 29 mins ago
Jean Novak
11
11
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Jean Novak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Possible duplicate of Why is Kali Linux so hard to set up? Why won't people help me?
– RalfFriedl
19 mins ago
add a comment |
Possible duplicate of Why is Kali Linux so hard to set up? Why won't people help me?
– RalfFriedl
19 mins ago
Possible duplicate of Why is Kali Linux so hard to set up? Why won't people help me?
– RalfFriedl
19 mins ago
Possible duplicate of Why is Kali Linux so hard to set up? Why won't people help me?
– RalfFriedl
19 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Jean Novak is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492608%2funable-to-read-sd-cards-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Jean Novak is a new contributor. Be nice, and check out our Code of Conduct.
Jean Novak is a new contributor. Be nice, and check out our Code of Conduct.
Jean Novak is a new contributor. Be nice, and check out our Code of Conduct.
Jean Novak is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f492608%2funable-to-read-sd-cards-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of Why is Kali Linux so hard to set up? Why won't people help me?
– RalfFriedl
19 mins ago