LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-08-2011, 12:39 PM   #1
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 46

Rep: Reputation: Disabled
finding USB device /dev/sd?


Hi

Well I'm trying to find a command line way of finding out which sd? my USB stick is.

It auto mounts fine but I can't find out which /dev/sd? it is.

So I guess I need a command to list them all and identify them some how.

I've been looking on wiki's, google, forums etc but im going round and round in circles.

Please put me out my missery.

Thanks in advance for your time
 
Old 11-08-2011, 12:48 PM   #2
Passmossis
LQ Newbie
 
Registered: Jul 2011
Location: USA
Distribution: RHEL 6.5
Posts: 28

Rep: Reputation: 2
What I typically do is

Code:
tail -f /var/log/messages
Now plug in your usb device and you should see where the system mounts it from. I use this when the USB does not auto-mount, but will work either way.

Last edited by Passmossis; 11-08-2011 at 12:49 PM.
 
Old 11-08-2011, 12:48 PM   #3
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 170

Rep: Reputation: 56
Try the 'mount' command
 
Old 11-08-2011, 12:57 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
I usually look at "/var/log/messages" or "fdisk -l" to differentiate between them.
 
Old 11-08-2011, 02:06 PM   #5
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
make in a terminal "dmesg > dmesg_ini.txt"
put the usb in your pc
make in a terminal "dmesg > dmesg_end.txt"
The difference between the files ..ini and ..end give your usb name!
And: you can label it (give a name like "love_usb"...;-)
 
Old 11-08-2011, 03:08 PM   #6
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 46

Original Poster
Rep: Reputation: Disabled
Brilliant Thanks everyone!

I found "thesnows" method of just typing
Code:
 mount
the fastest but I found I learnt quite a bit from using "floppy_stuggart's" method.

Although
Code:
 tail -f /var/log/messages
Didn't work, when I looked at the /var/log/ directory I found logs that list the times that things were done, like plugging in my usb, etc.

Thanks again.
I learnt loads

Last edited by poly_s; 11-08-2011 at 03:25 PM. Reason: bb code error
 
Old 11-08-2011, 03:24 PM   #7
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
After you have your usb in your pc, start the programm "gparted" and give the label name "flopp_stgt"....;-)
 
Old 11-08-2011, 03:32 PM   #8
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 46

Original Poster
Rep: Reputation: Disabled
I haven't installed Gparted. I was thinking of making a rescue USB with Gparted on though so I can keep it handy to fix problems (and mates machines that die running w!ndow$)
 
  


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
Installing RIP LinuX on a USB drive - device name /dev/sdc becomes /dev/sda Mleahy Linux - Software 1 07-30-2008 09:57 PM
which device in /dev is mapped to an USB device malo_umoran Slackware 4 07-31-2005 02:12 PM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 09:46 PM
Finding USB Storage Devices Under /dev mchase582 Debian 3 01-29-2005 06:29 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 04:22 PM


All times are GMT -5. The time now is 11:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration