LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-13-2010, 09:12 PM   #1
jone kim
Member
 
Registered: Apr 2010
Posts: 185

Rep: Reputation: 16
command to find the SD card


How to find info and contents of the SD card via linux terminal. I found a command "mount"in internet. According to it it's in dev/sdb/.. but I didn't found such. I saw dev/sdc/.

Can anyone help me?
 
Old 06-13-2010, 09:23 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
After you insert the card type
Code:
dmesg|tail
in a terminal.
 
Old 06-13-2010, 09:57 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,386
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
dmesg will help you find out how Linux is seeing the card. More about dmesg here.

When you find it in the output of dmesg or dmesg | tail, the easiest way is to then enter it as root in your fstab and mount it using the mount command.

Here's what I experienced in mounting a USB drive. The drive was different, but the procedure is the same.
 
Old 06-14-2010, 05:52 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You can also use:

Code:
blkid
It is the one with the VFAT filesystem, I doubt anything else uses this, unless you have more than one.
 
Old 06-15-2010, 06:48 AM   #5
jone kim
Member
 
Registered: Apr 2010
Posts: 185

Original Poster
Rep: Reputation: 16
Ok guys thanks for the reply. I will try with your commands.
 
Old 06-15-2010, 08:10 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
For my money I always do a
Code:
su
fdisk -l
for Debian/Ubuntu distros replace "su" with "sudo su".

This will display all the disks and their partitions.

From the size of the disk I can find out if it is a USB device and its device names directly from the kernel.

A device, if has a vaild filing system, say it is sdc1 can be mounted manually by commands
Code:
mkdir /mnt/sdc1
mount /dev/sdc1 /mnt/sdc1
ls /mnt/sdc1
The last command list the contents of sdc1. By such time the folder /mnt/sdc1 of the device will be displayable in the GUI to do drag and drop.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 05:55 PM
Single find command to find multiple files? thok Linux - Newbie 7 01-31-2009 04:45 PM
what is the command to find the video card babu198649 Linux - Newbie 3 04-25-2008 05:13 AM
arp command find ethernet card address Fond_of_Opensource Linux - Networking 1 06-15-2007 06:22 AM
command to find sound card in RHEL version 3 hsmukunda Linux - Enterprise 4 11-29-2006 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:57 PM.

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
Open Source Consulting | Domain Registration