LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new Hard drive (https://www.linuxquestions.org/questions/linux-newbie-8/new-hard-drive-61050/)

herogar 05-21-2003 05:00 PM

new Hard drive
 
I'm sorry, but I can't think how to look this up in a man. If I add a hard drive to my Red Hat 8 system, how do I get it to recognize it? I thought it would show up in Disk Management and all I would have to do is mount it. It isn't there. I can't find it with fdisk either, but my BIOS is detecting it. Is there another tool I need to use? How do I do this?

david_ross 05-21-2003 05:10 PM

You will need to:
1) Partition it
2) Put a file system on it (format it)
3) Add an entry to /etc/fstab

whansard 05-21-2003 05:13 PM

fdisk /dev/hdb or /dev/hdc or /dev/hdd ?

herogar 05-21-2003 05:14 PM

Sorry - that makes sense, but how in the heck do you partition and format in this OS? I found fdisk, but it seems to want you to refer to a certain drive and I'm thinking the second drive should be hdb, but it just says it can't open it?

david_ross 05-21-2003 05:24 PM

To get a list of disks and partitions try:
fdisk -l

Some people find sfdisk easier:
sfdisk -l

herogar 05-21-2003 05:25 PM

So.. if there isn't any hdb or anything but hda, I have another problem?

(BTW, Thanks)

david_ross 05-21-2003 05:29 PM

Possibly - is that what you get?

My suggestion would be to look at the harware setup:
What drives are on what channels?
Are the drives set to "slave" or "master" and "master with slave present"?

whansard 05-21-2003 05:39 PM

hda-primary master
hdb-primary slave
hdc-secondary master
hdd-secondary slave

it's where the drive is hooked up, not how many you have.

for example, for a while i had a single drive hooked up to
a highpoint raid card. it was hde, and the only hard drive
in the machine. i had the cdrom and burner as hda and hdc

herogar 05-21-2003 05:47 PM

Thanks, everyone for your help. It is secondary master and shows up in the Bios, but if I type fdisk /dev/hdc it just says it cannot open that device. If I do a -l it only lists partitions on hda. Must go now, but thanks again for the effort.

whansard 05-21-2003 06:01 PM

you may have had a cdburner at that location before and
your linux is set to ignore that drive for ide setup.
it would be hdc=ide-scsi in lilo or grub that would be hosing it.

herogar 05-22-2003 04:30 PM

cool
 
Thanks a lot for all your help everyone! Yes it was the CD drive thing.

whansard 05-22-2003 06:28 PM

your feedback is appreciated.


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