LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-26-2012, 07:52 PM   #1
Mobile1
Member
 
Registered: Jun 2006
Location: Abbotsford, B.C.
Distribution: Slackware64 14.1
Posts: 106

Rep: Reputation: 7
SD Card Not Working Or Found


I have discovered my sd card slot is not working, and also it's not found on boot. Any ideas?

It's an HP Laptop dv6-2140ca - it has a single slot for sd mem cards.

I have searched the forums here but I haven't come across anything related to my problem.

Thanks,
 
Old 07-26-2012, 08:13 PM   #2
mrascii
Member
 
Registered: Jun 2012
Location: on the Net
Distribution: Slackware
Posts: 100

Rep: Reputation: Disabled
When you put a card in the slot does dmesg show a device such as /dev/sdc1? If yes, then the slot is recognized but not being automagically mounted. You should be able to mount it by hand if recognized.

DNA
AKA mrascii

Last edited by mrascii; 07-26-2012 at 08:15 PM.
 
Old 07-26-2012, 08:43 PM   #3
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,242

Rep: Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573
Try this command as root. See what shows up.

Code:
blkid
 
Old 07-26-2012, 11:03 PM   #4
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
My card reader depends on the scsi subsystem being loaded. Try loading the sg module. IIRC this is something new with Slackware-current/14, and effects cd burning as well. Previously this was done automagically.

Code:
modprobe sg
 
Old 07-27-2012, 01:06 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,153

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I have a different HP system, and the BIOS does not report the presence of the SD card. AFTER the kernel boots, the card is found and available, but not until the standard drivers are loaded. I.e., you can't use it as a boot drive, but it can be mounted during the boot. (I have a 8GB miniSD card - $5 at Big Lots - that I reference in my /etc/fstab, and use mostly as a swap drive.)

Code:
$ dmesg | grep sdc
[    5.942896] sd 4:0:0:0: [sdc] 15564800 512-byte logical blocks: (7.96 GB/7.42 GiB)
[    5.945886] sd 4:0:0:0: [sdc] Write Protect is off
[    5.945896] sd 4:0:0:0: [sdc] Mode Sense: 03 00 00 00
[    5.946807] sd 4:0:0:0: [sdc] No Caching mode page present
[    5.950956] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[    5.959796] sd 4:0:0:0: [sdc] No Caching mode page present
[    5.963877] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[    5.973779]  sdc: sdc1 sdc2
[    5.977611] sd 4:0:0:0: [sdc] No Caching mode page present
[    5.981708] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[    5.985911] sd 4:0:0:0: [sdc] Attached SCSI removable disk
[   10.435126] Adding 5119996k swap on /dev/sdc2.  Priority:0 extents:1 across:5119996k
 
Old 07-27-2012, 01:41 AM   #6
Mobile1
Member
 
Registered: Jun 2006
Location: Abbotsford, B.C.
Distribution: Slackware64 14.1
Posts: 106

Original Poster
Rep: Reputation: 7
Thanks for the input gang, I was able to make it work. I put the card in, rebooted, and there it was, I was able to handle my chore of moving pictures.

Thanks again
 
Old 07-27-2012, 11:07 PM   #7
Mobile1
Member
 
Registered: Jun 2006
Location: Abbotsford, B.C.
Distribution: Slackware64 14.1
Posts: 106

Original Poster
Rep: Reputation: 7
OK, sd cards only work if I boot with the card in the slot, how do I make it work without having to reboot with the card?????
 
Old 07-28-2012, 12:11 AM   #8
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
I think dmesg is the boot up messages so we leave that alone

when system booted, we need to look at /var/log/messages with root powers and a short command can be

Code:
sudo tail -n 30 /var/log/messages
We are looking for the kernel detecting the hardware and using a kermel module to enable the partitions

2) its possible that the sd card has lots its format

if the messages log says your internal drive is sda you could run

Code:
sudo su
umount /dev/sdb1 (to umount the sd card)
fdisk /dev/sdb
pls post the contents of the command p (for print on screen while in fdisk) please
 
Old 07-28-2012, 12:28 AM   #9
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Quote:
Originally Posted by disturbed1 View Post
My card reader depends on the scsi subsystem being loaded. Try loading the sg module. IIRC this is something new with Slackware-current/14, and effects cd burning as well. Previously this was done automagically.

Code:
modprobe sg
.....
 
Old 07-28-2012, 12:31 AM   #10
e5150
Member
 
Registered: Oct 2005
Location: Sweden
Distribution: Slackware
Posts: 76

Rep: Reputation: 42
Quote:
Originally Posted by Mobile1 View Post
OK, sd cards only work if I boot with the card in the slot, how do I make it work without having to reboot with the card?????
I don't know how you're managing your pluggable devices, but I recently read about a similar problem with newer udisks2, which will mount devices at /run/media/`whoami` if they are plugged in after login, but mounting them in /media if they're plugged in at boot.
http://lists.fedoraproject.org/piper...ad.html#106855
(I use neither udev, dbus or udisks, so I can't comment on whether this behaviour applies to slackware or not.)
 
Old 07-28-2012, 03:58 PM   #11
Mobile1
Member
 
Registered: Jun 2006
Location: Abbotsford, B.C.
Distribution: Slackware64 14.1
Posts: 106

Original Poster
Rep: Reputation: 7
The Fedora link is a specific Gnome issue, I'm running KDE that comes with Slackware 13.37 Upgrades. Also, loading "modprobe sg" doesn't do anything that I can see.
 
Old 07-28-2012, 04:09 PM   #12
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Reboot with the sd card in (so its seen), then look at the differences between lsmod when the card is seen, and on a reboot when the card is not seen.

Just to make sure .....
You are in the correct groups (plugdev ....)
Does(not) work as root
cat /proc/partitions does(not) show the device

Last edited by disturbed1; 07-28-2012 at 04:14 PM.
 
Old 07-28-2012, 04:59 PM   #13
Mobile1
Member
 
Registered: Jun 2006
Location: Abbotsford, B.C.
Distribution: Slackware64 14.1
Posts: 106

Original Poster
Rep: Reputation: 7
Howdy,

Well, when booting with the sd card in a couple things of note:

cat /proc/partitions

mmcblk0

mmcblk0p1

and then on lsmod:

mmc_core - mmc_block, sdhci

And when booting without the sd card - none of the above show up.

Last edited by Mobile1; 07-28-2012 at 05:04 PM.
 
Old 07-28-2012, 05:21 PM   #14
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
with a reboot without the card inserted --- do a modprobe {mmc_core,mmc_block,sdhci} then insert the card and see if that fixes the issue. If so, I'd add the modprobe line{s} to rc.local. I had to do the same with the sg module to enable cd burning and access to my usb multi-card reader.
 
Old 07-28-2012, 05:43 PM   #15
Mobile1
Member
 
Registered: Jun 2006
Location: Abbotsford, B.C.
Distribution: Slackware64 14.1
Posts: 106

Original Poster
Rep: Reputation: 7
I ran the string, but the card did not show up plugging it in...although, mmc_core shows up when running lsmod of course : )

I suspect it's because I'm running slack in root I'll assume?
 
  


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
Network card stop working irregularly and after resetting its start working. a.anand385 Linux - Networking 2 06-21-2012 09:22 AM
[SOLVED] PCI sata card not working when pci wifi card connected. Boot fails (HDD not found) tessx Linux - Hardware 3 01-16-2012 04:29 AM
Belkin F6D4050 wireless card (usb) - module loaded properly but card not working saavedra29 Linux - Networking 2 06-19-2011 06:57 AM
Fortemedia FM801 card not working under FC5 on Intel 845 but working with windows morningkiran Linux - Hardware 0 11-30-2006 08:57 AM
Working PCMCIA Net Card Not Found On Reboot mortovski Linux - Laptop and Netbook 3 03-23-2005 06:51 PM


All times are GMT -5. The time now is 04:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration