![]() |
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 |
"fdisk -l" will show all attached drives and their partition table. You need to run it as root.
|
Quote:
for example if i connected pendrive the image of pen drive is not showing like that |
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? |
Quote:
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 |
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. |
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 |
Actually I'd expect to see handshaking msgs in /var/log/dmesg.
|
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_hcdThis is the info the OP should be looking for. Code:
# tail -f /var/log/messages |
| All times are GMT -5. The time now is 02:07 PM. |