LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-03-2009, 10:42 AM   #16
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled

modprobe sdhci should work (you might also need sdhci-pci.) This should chain load mmc_core and mmc_block. The partitions should also show up in /dev with the same names they have in /var/log/messages when you plug the card in. If not, go to /sys/block/mmcblk0 and cat dev to see the major/minor device numbers (same with subdirectories mmcblk0p?.) Use mknod to create the devices if needed.

I came across this post because I'm installing slamd64 onto an SD card but the setup program doesn't recognize these devices as places it can install to. I suppose that's sort of a side conversation. I think I'll just have to manually mount them.
Kevin Barry

PS This is only regarding the SD card question.

Last edited by ta0kira; 04-03-2009 at 12:06 PM.
 
Old 04-03-2009, 10:59 AM   #17
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,071

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You can use Gparted to mount/unmount and identify the USB.
 
Old 04-03-2009, 11:22 AM   #18
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Is there an easier way to find out which /dev/sdx1 the flash drive gets tied to after I plug the flash drive into the computer?
I'm surprised nobody has mentioned udev
You can write a udev rule so different devices are always mounted and then linked to a sensible devicename eg /dev/Lisas-Nikon or /dev/1TB-Backup
This page
http://www.reactivated.net/writing_udev_rules.html
tells you how, and there are some good examples to help get you started.
 
Old 04-03-2009, 12:09 PM   #19
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by tredegar View Post
I'm surprised nobody has mentioned udev
You can write a udev rule so different devices are always mounted and then linked to a sensible devicename eg /dev/Lisas-Nikon or /dev/1TB-Backup
This page
http://www.reactivated.net/writing_udev_rules.html
tells you how, and there are some good examples to help get you started.
Yes, udev rules work very well for this sort of thing. I use one to run a script when a certain flash drive is inserted. The script mounts the flash drive, loops a few encrypted file systems on the hard drive with the key I have stored on the flash drive, then unmounts the flash drive. It does take some work up front just to learn how to use the system, however; especially identifying the particular device you want the rule to apply to.
Kevin Barry

Last edited by ta0kira; 04-03-2009 at 12:10 PM.
 
Old 04-09-2009, 04:28 PM   #20
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
@trist007

Well, did the advice in this thread enable you to fix your problem?

A follow-up would be appreciated
 
Old 04-09-2009, 07:01 PM   #21
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 991

Original Poster
Rep: Reputation: 56
I ran a
Code:
ls -l /dev
and saw a mmcblk0p1 device with memory in it. I mounted up that device and lo and behold it was my SD Card. I have made no changes at all. I simply missed that device. Even looking at the output in /var/log/messages after I insert the SD Card
Code:
mmc0: new SDHC card at address 8fe4
mmcblk0: mmc0:8fe4 SD04G 3872256KiB
mmcblk0: p1
never shows mmcblk0p1 as the new device. Anyhow, it's working.
 
  


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
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM


All times are GMT -5. The time now is 03:38 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