LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-16-2010, 12:16 PM   #1
huntkey
LQ Newbie
 
Registered: Dec 2008
Posts: 19

Rep: Reputation: 1
RHEL5 not assign a partition for usb key


Hi experts,

I'm trying to mount a USB key in a RHEL5 box to upload some file. I found doc online and followed it and mounted it fine the first time. Then I unplugged it and found that I have another file to upload so I plugged it back in. However this time it's not assigned a partition (last time was sdb1) and I can't mount it anymore.

I think the USB key is recognized and the driver is installed properly:

# lsusb
Bus 002 Device 002: ID 8087:0020
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 054c:0243 Sony Corp. MicroVault Flash Drive
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp.
Bus 001 Device 002: ID 8087:0020
Bus 001 Device 001: ID 0000:0000

It also seems that it's recognized as a storage device and assigned a drive letter:

# dmesg | grep -i scsi
...
scsi7 : SCSI emulation for USB Mass Storage devices
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 7864320 512-byte hdwr sectors (4027 MB)
SCSI device sdb: 7864320 512-byte hdwr sectors (4027 MB)
Attached scsi removable disk sdb at scsi7, channel 0, id 0, lun 0
Attached scsi generic sg3 at scsi7, channel 0, id 0, lun 0, type 0

However no partition is assigned to it...

fdisk -l

Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 33 265041 83 Linux
/dev/sda2 34 17769 142464420 8e Linux LVM

help, please!!!
Thanks,
 
Old 12-16-2010, 02:35 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Did you umount the stick before you pulled it out of the machine?
 
Old 12-16-2010, 02:35 PM   #3
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
what does this give you?
Code:
mount /dev/sdb1 /mnt/usb
 
Old 12-17-2010, 11:46 AM   #4
huntkey
LQ Newbie
 
Registered: Dec 2008
Posts: 19

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by lazlow View Post
Did you umount the stick before you pulled it out of the machine?
Yup I did!! I mounted it as root to the folder /root/usb/ and I unmounted after I finished with it. Is it because I didn't mount it to the /mnt directory? What else do I have to do except unmounting it? I know in Windows you need to right click and select remove the device or somthing lol
 
Old 12-17-2010, 11:48 AM   #5
huntkey
LQ Newbie
 
Registered: Dec 2008
Posts: 19

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ilvista View Post
what does this give you?
Code:
mount /dev/sdb1 /mnt/usb
It gave me an error something like the sdb1 not existed... I have rebooted the machine and it's fine now. This is at customer site so I don't have physical access to it. When this happens again I will for sure copy the error message.

Thanks,
 
Old 12-17-2010, 02:04 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Gernerally you mount (temp) stuff in the media directory.

Other than waiting a couple of seconds after you gave the umount(not a typo)command, nothing comes to mind. Sometimes things are setup with lazy writes, so it can take a couple of seconds for stuff to be written to the drive.
 
Old 12-17-2010, 06:00 PM   #7
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
Plug it in and issue these (root/sudo for the fdisk)
Code:
dmesg | tail -n 15
fdisk -l
 
  


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] How to assign virtual ip in RHEL5.4 jitendra_kumar57 Red Hat 3 09-21-2010 11:02 AM
Trouble reading usb key partition table BNI Linux From Scratch 1 11-02-2005 10:13 AM
usb key partition table guldo Linux - General 7 07-26-2005 02:28 AM
Changing ownership of partition and USB key a thing Linux - Newbie 7 01-27-2005 05:37 PM
mounting second partition of USB RAM key Armgas Linux - Hardware 0 05-17-2003 01:10 PM

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

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