LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hard drive not detected (https://www.linuxquestions.org/questions/linux-newbie-8/hard-drive-not-detected-925844/)

linuxandtsm 01-26-2012 02:12 PM

hard drive not detected
 
Hi all,

second hard drive connected to a RHEL4 (ya.. it's old) is not detected. I am not able to see any entries related to sdb in dmesg or in /var/log/messages.

Code:

# more /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST3250318AS      Rev: CC66
  Type:  Direct-Access                    ANSI SCSI revision: 05

Rebooted the server few times but no luck.
Any suggestions on how to detect hard disk ?
Thanks in advance!

T3RM1NVT0R 01-26-2012 02:16 PM

@ Reply
 
Hi linuxandtsm,

Hard disk should be detected automatically by the system.

What kind of hdd it is? PATA? SATA? or SCSI? Did you check the jumper settings on the disk if it is an old one? Did you check the connectivity of hdd to motherboard like power cable and data bus. On which port you are connecting this hdd?

linuxandtsm 01-26-2012 02:31 PM

Hi T3RM1NVT0R,

It is a SCSI disk.
Connectivity of hdd looks ok to me and hdd is warm to touch.
How can i check jumper settings on the disk ?
and is there any way that i can scan for newly connected devices ?

T3RM1NVT0R 01-26-2012 02:43 PM

@ Reply
 
Jumper settings will depend on the manufacturer. You can check that on hdd manufacturer's site how the jumper should be set. I don't think so that scanning will help because if has something to do with scan then the reboot should have detected it. But as you said that you rebooted it quite a few times so I doubt that system is even aware about the drive.

Are you able to see the newly connected disk in your BIOS? If yes, then we can think on scanning part. If not, then there is a connectivity issue.

Lunar 01-26-2012 02:47 PM

what do you see when you type mount at command prompt (# mount )
how about # hwinfo --disk
also, did the system see it before or is this a new device?

Landis.

linuxandtsm 01-26-2012 02:52 PM

Hi T3RM1NVT0R,

How can see the disk In BIOS ?

Hi Lunar,

mount shows only the partitions on the hdd1 (sda) that is having all other filesystems mounted but no entry for sdb
and
Code:

# hwinfo --disk
-bash: hwinfo: command not found


T3RM1NVT0R 01-26-2012 02:56 PM

@ Reply
 
@ linuxandtsm

Not sure which BIOS you are running on but I think the following video should help:

http://www.youtube.com/watch?v=eULEtVZkGDc

Usually F2 or F12 keys are pressed to get into BIOS.

@ Lunar,

hwinfo command is not available on RHEL but it is there on SLES and openSuSE. Not sure about other distributions.

Lunar 01-26-2012 03:14 PM

Quote:

Originally Posted by T3RM1NVT0R (Post 4585248)
@ Lunar,
hwinfo command is not available on RHEL but it is there on SLES and openSuSE. Not sure about other distributions.

T3RM1NVTOR.... You're Good!
I am running All SuSE and openSuSE 10x to 12.1...
working on first centos (RHEL) right now. want to replace hardware router with linux router.

Landis.

linuxandtsm, if you can't see the hdd (hard disk drive) in BIOS, then the disk is either bad or is not installed right.

Is it on the same chain / channel as the other hdd or a cd / dvd?
..or is it on it's own channel (ribbon cable)?
If it is the second disk hdd or cd on a ribbon cable, is the jumpers set to SL (slave) Mx (master, sometimes, MS, MA, M, MT, MR) or CS (cable select)..
If the fist hdd is set to CS, they both must be capable of CS. Some older drives are not.
If the 1st is set to Single that is the same as mastern no slave present.

None of this means anything if your drives are SATA (Serial ATA) or real SCSI (scuzzy), but then they would not be on the same channel unless they are both SCSI..

More info.

ps. each HDD manufacture has it's support page for jumper settings.
Here is an example of Jumper Settings

I find that cable select is a hit and miss (does not always work) thing and don't use in
Linux.

hope this helps.. I'll be around, work from home 20x7..

Landis.

T3RM1NVT0R 01-26-2012 03:24 PM

@ Reply
 
@ Lunar,

Thank you.

CentOS is a very good distribution to work on. I really love working it. From your post it appears that you are playing around with iptables :-)

Lunar 01-26-2012 04:09 PM

Quote:

Originally Posted by T3RM1NVT0R (Post 4585274)
... From your post it appears that you are playing around with iptables :-)

Yes.. I think..
I used to own a small ISP and setting up a NAT/NAS (masquerade ip) server was easy, but that was in 1995 to 1998, so this will be just like it's the first time all over.

any pointers on setting up a linux router, the easy way? lol

Landis.

T3RM1NVT0R 01-26-2012 05:16 PM

@ Reply
 
@ Lunar,

I would say that you should be good at iptables to get that setup as a router. Can't get into much details as this thread is about hdd issue. iptables discussion will deviate the topic.

Lunar 01-26-2012 05:57 PM

thanks.. understand.
Landis.

linuxandtsm 01-27-2012 12:55 PM

Hi T3RM1NVT0R and Lunar,

This is the spec page that i got from the HD support team.
http://wdc.custhelp.com/app/answers/detail/a_id/1405

How can i find and use the right one for this case ?
Thanks in advance!

T3RM1NVT0R 01-27-2012 03:17 PM

@ Reply
 
As of now is there any jumper set on the hdd? If yes, remove it and then it should take the default setting based on the port it is being connected.

Lunar 01-29-2012 08:10 AM

back to an earlier question asked, does your BIOS see the drive during boot?
access BIOS setup: Esc, Del, F1, F2, F10, IBM Enter then menu F1..
you'll have to watch during the first few seconds of 'boot up', before OS (operating system) starts to load..

what brand, model is you pc?

Landis.
try me on fb/LandisTwo


All times are GMT -5. The time now is 12:24 AM.