LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 02-17-2013, 06:38 AM   #1
venkatesh51
LQ Newbie
 
Registered: Oct 2012
Posts: 26

Rep: Reputation: Disabled
how to see my hardisk when i connected in redhat linux


if i connected any pendrive or hardisk is not showing
how to scan it and display the hardisk or pendrives
 
Old 02-17-2013, 09:01 AM   #2
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,413

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
"fdisk -l" will show all attached drives and their partition table. You need to run it as root.
 
Old 02-18-2013, 04:25 AM   #3
venkatesh51
LQ Newbie
 
Registered: Oct 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
"fdisk -l" will show all attached drives and their partition table. You need to run it as root.
actuall i know that when i connected the disk is not recognized.
for example if i connected pendrive the image of pen drive is not showing like that
 
Old 02-18-2013, 04:40 AM   #4
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 265
Blog Entries: 2

Rep: Reputation: 48
Does it show new device name in out put of "fdisk -l".
If it is there, then we can access it.

If it is not there then have you checked using another pen drive/disk?

If another pen drive is detected easily, your pen drive's LED is turned on or blink one it is attached?
 
Old 02-18-2013, 05:08 AM   #5
venkatesh51
LQ Newbie
 
Registered: Oct 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pavi_kanetkar View Post
Does it show new device name in out put of "fdisk -l".
If it is there, then we can access it.

If it is not there then have you checked using another pen drive/disk?

If another pen drive is detected easily, your pen drive's LED is turned on or blink one it is attached?
Thanks for replying
my pendrive is ok in interview asked me that (if your device is not detected how you will detect(in your linux os) in command wise
 
Old 02-18-2013, 08:27 AM   #6
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,413

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
The question is worded poorly in my opinion. The disk will always be detected to some degree (you should at least see some handshaking information in /var/log/messages), even if it's not recognized as a storage device or auto-mounted. The correct action to take depends on what happened when you plugged it in.

If it's not detected at all (like the question is asking) then there's probably a hardware failure somewhere in the mix (either the USB port, the USB cable, or the drive itself is busted) and there's not much you can do besides trying other ports, cables, or drives. That is assuming you know your USB drivers are working correctly in the OS.

Last edited by suicidaleggroll; 02-18-2013 at 08:29 AM.
 
Old 02-18-2013, 12:25 PM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,103

Rep: Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583
a guess
the "if i connected any pendrive or hardisk is not showing "

is ( for RHEL 6.3 ) if Gnome2 is not Auto listing it in nautilus
but
it might not be auto mounting in /media ( might require clicking on the drive in nautilus first)

or
any of the above

the question is very ambiguous
 
Old 02-18-2013, 11:02 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
Actually I'd expect to see handshaking msgs in /var/log/dmesg.
 
Old 02-19-2013, 07:35 AM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,291

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
in RHE /var/log/messages should show the USB, in this case, New Device... and it should show as some type of mass storage device.

Code:
Feb 19 04:26:24 centos kernel: usb 1-2: new high speed USB device number 4 using ehci_hcd
Feb 19 04:26:24 centos kernel: usb 1-2: New USB device found, idVendor=154b, idProduct=0044
Feb 19 04:26:24 centos kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 19 04:26:24 centos kernel: usb 1-2: Product: USB 2.0 FD
Feb 19 04:26:24 centos kernel: usb 1-2: Manufacturer: PNY Technologies
Feb 19 04:26:24 centos kernel: usb 1-2: SerialNumber: AAB71A8400000050
Feb 19 04:26:24 centos kernel: usb 1-2: configuration #1 chosen from 1 choice
Feb 19 04:26:24 centos kernel: scsi12 : SCSI emulation for USB Mass Storage devices
Feb 19 04:26:25 centos kernel: scsi 12:0:0:0: Direct-Access     PNY      USB 2.0 FD       8192 PQ: 0 ANSI: 4
Feb 19 04:26:25 centos kernel: sd 12:0:0:0: Attached scsi generic sg2 type 0
Feb 19 04:26:25 centos kernel: sd 12:0:0:0: [sdb] 15826944 512-byte logical blocks: (8.10 GB/7.54 GiB)
Feb 19 04:26:25 centos kernel: sd 12:0:0:0: [sdb] Write Protect is off
Feb 19 04:26:25 centos kernel: sd 12:0:0:0: [sdb] Assuming drive cache: write through
Feb 19 04:26:25 centos kernel: sd 12:0:0:0: [sdb] Assuming drive cache: write through
Feb 19 04:26:25 centos kernel: sdb: sdb1
Feb 19 04:26:25 centos kernel: sd 12:0:0:0: [sdb] Assuming drive cache: write through
Feb 19 04:26:25 centos kernel: sd 12:0:0:0: [sdb] Attached SCSI removable disk
im running CentOS 6.3, so should be same results for RHE6.3 that is the end of my /var/log/messages when I plug in a new flash drive, pen drive as the OP calls it. It is clearly marked as new USB device and also clearly marked as a USB mass storage device. it goes so far as to tell you what type of device it is.

This is the info the OP should be looking for.

Code:
# tail -f /var/log/messages
run that command, then plug in the flash drive. watch and see what happens.

Last edited by lleb; 02-19-2013 at 07:36 AM.
 
1 members found this post helpful.
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux - Windows on two Hardisk? macbet Linux - Newbie 4 03-19-2006 05:41 PM
How To Install Redhat Linux 9 On Sata Hardisk shahnoo Linux - Hardware 3 01-27-2006 12:33 AM
linux setup from hardisk jasmeet93 Linux - Software 1 05-29-2005 04:27 AM
"which files to copy to hardisk for Hardisk installation " Rehan1 Linux - Newbie 9 08-21-2004 03:11 PM
Redhat couldn't understand 2nd hardisk bicblue Linux - Laptop and Netbook 2 03-17-2004 11:47 PM


All times are GMT -5. The time now is 07:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration