LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-04-2013, 10:34 PM   #1
jddancks
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-04-2013, 11:10 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
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...
Code:
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...

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

Last edited by astrogeek; 10-04-2013 at 11:26 PM.
 
Old 10-04-2013, 11:28 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

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

Last edited by syg00; 10-04-2013 at 11:30 PM.
 
1 members found this post helpful.
Old 10-05-2013, 12:15 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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, 10:58 AM   #5
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Code:
$ 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
 
  


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 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 03:26 AM
Mapping USB flash drive to its /dev/xxx waddles Slackware 7 03-09-2013 05: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 07: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 10:27 AM
usb flash drive: no /dev entry zarg Slackware 3 09-21-2004 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 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
Open Source Consulting | Domain Registration