LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-13-2013, 03:49 AM   #1
mishamisha
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Rep: Reputation: Disabled
Mounting USB on CentOS 6: where is /dev/sdb1 ?


Hi people,

I decided to learn Linux and installed a minimal version of CentOS annd I am slowly building it up using Yum.

I got to the USB mounting part and everywhere on Google the instruction is to run command # mount /dev/sdb1 /somefolder.

However there is no sdb1 in /dev. There are only /dev/sda1 and when I try mount on it the message says:
"mount: according to mtab, /dev/sda1 is mounted on /boot"

When I look into mtab I see the line
/dev/sda1 /boot ext4 rw 0 0

I am guessing this is the main hard drive.

Also I must mention that I am running CentOS inside Oracle VirtualBox and I did install the Extention Pack and I did enable the USB.

Many thanks in advance for any insights!

Cheers
Misha
 
Old 11-13-2013, 04:12 AM   #2
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
Quote:
Originally Posted by mishamisha View Post
Hi people,

I decided to learn Linux and installed a minimal version of CentOS annd I am slowly building it up using Yum.

I got to the USB mounting part and everywhere on Google the instruction is to run command # mount /dev/sdb1 /somefolder.

However there is no sdb1 in /dev. There are only /dev/sda1 and when I try mount on it the message says:
"mount: according to mtab, /dev/sda1 is mounted on /boot"

When I look into mtab I see the line
/dev/sda1 /boot ext4 rw 0 0

I am guessing this is the main hard drive.

Also I must mention that I am running CentOS inside Oracle VirtualBox and I did install the Extention Pack and I did enable the USB.

Many thanks in advance for any insights!

Cheers
Misha
open terminal type "#dmesg" as root without quote.
you will get right drive letter which was recognized by linux. then you can mount it easly.
 
Old 11-13-2013, 04:24 AM   #3
mishamisha
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the quick response,

I ran # "dmesg | grep USB" and I what is it I am looking for? Is this the correct part of the output where I can see the device numbers? I am looking at "usb usb1: new USB device found, idendor=1d6b, iPr==dProduct=0002...

Is the "usb1" the deice I am looking for somewhere in /dev?

I just ran #"find -name usb1" and I got
./sys/bus/usb/deices/usb1
and a couple of others. But these are not in /dev ...

Anyway, when I try to mount to /sys/bus/usb/deices/usb1 I get error
"mount: /sys/devices/pci0000:00/0000:00:0b.0/usb1 is not a block device.

Last edited by mishamisha; 11-13-2013 at 04:30 AM. Reason: Trying to get it going
 
Old 11-13-2013, 04:30 AM   #4
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
Quote:
Originally Posted by mishamisha View Post

I just ran #"find -name usb1" and I got
./sys/bus/usb/deices/usb1
and a couple of others. But these are not in /dev - is that OK??
Nope. You have to run only dmesg on terminal with root previleges. run this command just after connecting your pendrive. in last few lines you will get your correct drive letter.
 
Old 11-13-2013, 04:39 AM   #5
mishamisha
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
The last 2 lines I see are
e1000: etho NIC Link is Up 1000Nbps ...
eth0: no IPv6 routers present

I tried to take the USB stick out and put it back in, and ran the command - the last part seems to be the same like no new lines were appended... Like the system does not react to USB been inserted.

As I mentioned, I started with absolutely minimal OS. Could this mean that I need to yum some drivers? Do you know if the USB drier comes installed in the minimal version?
 
Old 11-13-2013, 04:58 AM   #6
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
though it is not requied to install usb drivers separatly. but it should detect usb as u plug in or plug out. and as you will run command it will show drive letter in last few lines.
note:- only 2 lines are not enought to see drive letter.
could you paste some last lines of that command after inserting usb.
 
Old 11-13-2013, 05:08 AM   #7
mishamisha
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
I've given up on the spartan mode for now and installed gnome. O/w I cant even copy - paste or I don't know how. I will try this in a xwindow system...
 
  


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
My pendrive suddenly changed from /dev/sda1 to /dev/sdb1! stf92 Slackware 10 08-08-2012 05:02 PM
mdadm --manage /dev/md0 --add /dev/sdb1 returns device busy JeepingAZ Linux - Desktop 2 02-17-2011 12:18 PM
USB Detection; when /dev/sda1 or /dev/sdb1 ravime Linux - Hardware 6 09-12-2007 06:15 AM
USB key /dev/sdb1 permissions problem... zparihar Linux - Hardware 6 02-03-2005 05:22 PM
External USB HDD"Mounting local filesystems: /dev/sdb1 is not a valid block device" manudath Linux - Hardware 3 12-13-2004 09:59 PM

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

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