LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 09-08-2018, 05:19 PM   #1
Erentigionation
LQ Newbie
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 28

Rep: Reputation: Disabled
SD card isn't registering with devfs.


I listed the contents of /dev and the SD card partitions do not show up. I know for a fact that the card is partitioned, so that's not a problem. I am using tmux, which is a first. I'm not sure if that would affect Arch Linux's ability to read an external device. But it's the only thing I can think of. I need someone to elucidate this problem for me.
 
Old 09-08-2018, 05:30 PM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,546

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624
Do yo get any useful kernel output when you insert the SD card?
 
Old 09-08-2018, 06:09 PM   #3
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,737

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
To check if the card is recognized at all: Run lsblk or list /sys/class/block. Use dmesg to see any kernel messages.

To see if udev gets informed that the card is inserted, use udevadm monitor.

tmux most definitely has nothing to do with the problem.
 
Old 09-08-2018, 06:35 PM   #4
Erentigionation
LQ Newbie
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Do yo get any useful kernel output when you insert the SD card?
I actually do. There are some "print_req_error" messages and "Buffer I/O Error" messages. I have no idea what those mean other than that the kernel can't do I/O on the device for some reason.
 
Old 09-08-2018, 07:11 PM   #5
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,546

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624
Run
Code:
dmesg -w
then insert an SD Card. Copy/paste the output derived. Enclose that output within [code]/[cod.] tags when posting here.

Do the same with
Code:
udevadm monitor
as already advised.
 
Old 09-09-2018, 05:53 AM   #6
Erentigionation
LQ Newbie
 
Registered: May 2016
Location: Somewhere between order and chaos
Distribution: Ubuntu, Slackware, Arch Linux
Posts: 28

Original Poster
Rep: Reputation: Disabled
I ran dmsg and searched for "sdc". This is a snippet of what I got (there were a lot of repeat messages):

Code:
[ 8476.423229] sd 7:0:0:0: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 8476.425868] sd 7:0:0:0: [sdc] Write Protect is off
[ 8476.425875] sd 7:0:0:0: [sdc] Mode Sense: 03 00 00 00
[ 8476.426739] sd 7:0:0:1: [sdd] Attached SCSI removable disk
[ 8476.427976] sd 7:0:0:0: [sdc] No Caching mode page found
[ 8476.428037] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[ 8476.445714]  sdc: sdc1
[ 8476.453744] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 8611.042928] sd 7:0:0:0: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 8611.065032]  sdc: sdc1
[ 8619.170243] sd 7:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8619.170249] sd 7:0:0:0: [sdc] tag#0 Sense Key : Not Ready [current]
[ 8619.170255] sd 7:0:0:0: [sdc] tag#0 Add. Sense: Medium not present
[ 8619.170261] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 da cb f0 00 00 08 00
[ 8619.170265] print_req_error: I/O error, dev sdc, sector 31116272
[ 8619.172527] sd 7:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8619.172535] sd 7:0:0:0: [sdc] tag#0 Sense Key : Not Ready [current]
[ 8619.172542] sd 7:0:0:0: [sdc] tag#0 Add. Sense: Medium not present
[ 8619.172549] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 da cb f0 00 00 08 00
[ 8619.172553] print_req_error: I/O error, dev sdc, sector 31116272
[ 8619.172654] Buffer I/O error on dev sdc, logical block 3889534, async page read
[ 8800.039532] usb 2-1.1: USB disconnect, device number 4
[ 8823.601455] usb 1-1.2: new high-speed USB device number 7 using ehci-pci
[ 8823.705779] usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0716, bcdDevice=97.32
[ 8823.705783] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[ 8823.705786] usb 1-1.2: Product: USB Storage
[ 8823.705788] usb 1-1.2: SerialNumber: 000000009732
[ 8823.706622] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 8823.707132] scsi host7: usb-storage 1-1.2:1.0
[ 8824.719820] scsi 7:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9732 PQ: 0 ANSI: 0
[ 8824.890852] scsi 7:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9732 PQ: 0 ANSI: 0
[ 8824.894749] sd 7:0:0:0: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 8824.896968] sd 7:0:0:1: [sdd] Attached SCSI removable disk
[ 8824.899546] sd 7:0:0:0: [sdc] Write Protect is off
[ 8824.899553] sd 7:0:0:0: [sdc] Mode Sense: 03 00 00 00
[ 8824.901091] sd 7:0:0:0: [sdc] No Caching mode page found
[ 8824.901194] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[ 8824.925141]  sdc: sdc1
[ 8824.934226] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 8833.039631] sd 7:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8833.039637] sd 7:0:0:0: [sdc] tag#0 Sense Key : Not Ready [current]
[ 8833.039643] sd 7:0:0:0: [sdc] tag#0 Add. Sense: Medium not present
[ 8833.039649] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 da cb f0 00 00 08 00
[ 8833.039653] print_req_error: I/O error, dev sdc, sector 31116272
[ 8833.042053] sd 7:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8833.042057] sd 7:0:0:0: [sdc] tag#0 Sense Key : Not Ready [current]
[ 8833.042061] sd 7:0:0:0: [sdc] tag#0 Add. Sense: Medium not present
[ 8833.042065] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 da cb f0 00 00 08 00
[ 8833.042067] print_req_error: I/O error, dev sdc, sector 31116272
[ 8833.042122] Buffer I/O error on dev sdc, logical block 3889534, async page read
[ 8854.531458] usb 1-1.2: reset high-speed USB device number 7 using ehci-pci
[ 8854.815651] sd 7:0:0:0: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 8854.835051]  sdc: sdc1
[ 8862.956625] sd 7:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8862.956632] sd 7:0:0:0: [sdc] tag#0 Sense Key : Not Ready [current]
[ 8862.956638] sd 7:0:0:0: [sdc] tag#0 Add. Sense: Medium not present
[ 8862.956644] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 da cb f0 00 00 08 00
[ 8862.956649] print_req_error: I/O error, dev sdc, sector 31116272
[ 8862.959116] sd 7:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8862.959122] sd 7:0:0:0: [sdc] tag#0 Sense Key : Not Ready [current]
[ 8862.959127] sd 7:0:0:0: [sdc] tag#0 Add. Sense: Medium not present
[ 8862.959132] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 da cb f0 00 00 08 00
[ 8862.959135] print_req_error: I/O error, dev sdc, sector 31116272
[ 8862.959206] Buffer I/O error on dev sdc, logical block 3889534, async page read
[ 8866.405645] usb 1-1.2: USB disconnect, device number 7
[ 8866.804780] usb 1-1.2: new high-speed USB device number 8 using ehci-pci
[ 8866.909133] usb 1-1.2: New USB device found, idVendor=05e3, idProduct=0716, bcdDevice=97.32
[ 8866.909138] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[ 8866.909140] usb 1-1.2: Product: USB Storage
[ 8866.909143] usb 1-1.2: SerialNumber: 000000009732
[ 8866.909893] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Reading through these I think I can actually see what went wrong. I think the USB plug is just not very strong and it's getting jostled while it's in the port. That's just an educated guess though, and there could be something else I'm not seeing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My Internet card isn't working ender764 Linux - Wireless Networking 7 01-25-2011 08:21 AM
PCMCIA NW-Card isnīt recognized zuttel Slackware - Installation 5 12-25-2006 11:00 AM
Wireless card was working fine. Now it isn't. Savet Linux - Wireless Networking 9 06-06-2005 11:25 PM
Linksys wireless card isn't working... pbjorge12 Linux - Laptop and Netbook 1 06-18-2004 04:07 PM
To devfs, or not devfs - advice please JamesM Linux - General 7 08-13-2003 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration