LinuxQuestions.org
Visit Jeremy's Blog.
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 11-08-2011, 11:39 AM   #1
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 47

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, 11:48 AM   #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 11:49 AM.
 
Old 11-08-2011, 11:48 AM   #3
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 172

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

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I usually look at "/var/log/messages" or "fdisk -l" to differentiate between them.
 
Old 11-08-2011, 01:06 PM   #5
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
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, 02:08 PM   #6
poly_s
Member
 
Registered: Sep 2011
Distribution: Arch
Posts: 47

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 02:25 PM. Reason: bb code error
 
Old 11-08-2011, 02:24 PM   #7
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

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

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



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 08:57 PM
which device in /dev is mapped to an USB device malo_umoran Slackware 4 07-31-2005 01:12 PM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM
Finding USB Storage Devices Under /dev mchase582 Debian 3 01-29-2005 05: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 03:22 PM

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

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