Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-04-2013, 11:34 PM   #1
LQ Newbie
Registered: Jan 2013
Location: Central NY
Distribution: Mac, debian
Posts: 29

Rep: Reputation: Disabled
How do I know which /dev/something alias my flash drive can be found under?

This is something that has been bothering me. Most systems are nice enough to handle the mounting without you having to ask about it. When I tried this for the first time, I saw something briefly show up: "sda: sda1" so I assume /dev/sda1. So even though it didn't mount for me it gave me enough info on plugging in that I could figure the rest out. Because it was verbose. What about on systems where this isn't true, where you literally have to dig for info? How would you even do this?
Old 10-05-2013, 12:10 AM   #2
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,506
Blog Entries: 6

Rep: Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422Reputation: 2422
I think looking at dmesg would work on most any distro. You might need to do that as root, or give your user sudo permission.

Just plug it in then...
tail dmesg
That should show where it is.


I initially thought you were talking about a pendrive, but for a drive present at boot try...

dmesg |grep 'dev/sd'
...which will show all detected sata/scsi devices.

Last edited by astrogeek; 10-05-2013 at 12:26 AM.
Old 10-05-2013, 12:28 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,959

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
fdisk -l
parted -l
Edit: again you may require root/sudo for the latter two.

Last edited by syg00; 10-05-2013 at 12:30 AM.
1 members found this post helpful.
Old 10-05-2013, 01:15 AM   #4
LQ Guru
Registered: Dec 2011
Distribution: Slackware
Posts: 7,874
Blog Entries: 10

Rep: Reputation: Disabled
The parted -l (small letter L) command ran as "root" is very helpful.

The output showed me all of my partitions on dev/sda1 with details.
I (think) on my system (because I only have one HDD) dev/sdb1 was my flash drive-

Thank you;syg00-
Old 10-05-2013, 11:58 AM   #5
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
$ lsscsi
[0:0:0:0]    disk    ATA      ST31000524AS     JC45  /dev/sda 
[1:0:1:0]    disk    ATA      Maxtor 6Y250P0   YAR4  /dev/sdb 
[2:0:0:0]    disk    Sony     Storage Media    0100  /dev/sdc


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
[SOLVED] Difference between USB flash drive located at /dev/sda or /dev/sda1 hcourtice Linux - Hardware 5 07-04-2013 04:26 AM
Mapping USB flash drive to its /dev/xxx waddles Slackware 7 03-09-2013 06:19 PM
Is there an easier to way to find out which /dev/ my flash drive is connected to... trist007 Linux - Newbie 20 04-09-2009 08:01 PM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 11:27 AM
usb flash drive: no /dev entry zarg Slackware 3 09-21-2004 04:39 PM > Forums > Linux Forums > Linux - Newbie

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

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