LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Add Second Drive - Problem not seen by fdisk (https://www.linuxquestions.org/questions/linux-newbie-8/add-second-drive-problem-not-seen-by-fdisk-104477/)

mcas 10-15-2003 08:57 PM

Add Second Drive - Problem not seen by fdisk
 
I just added a second IDE hard drive to my Linux Red Hat 9 system. It is recognized in the Bios. When it boots up, I see it say /dev/hdb in the initilization. But when I go into the shell to try and run fdisk /dev/hdb it returns "Unable to open /dev/hdb"

Is there something I have to do to reconfigure Linux to recognize the drive. It has not been formatted or partioned yet.

I would appreciate any help, as scans of the net have not yielded any clues.

a slacker 10-15-2003 09:03 PM

Try putting this line in your /etc/fstab:

/dev/hdb1 /mnt/hdb1 ext2 defaults,users 1 1

Also make sure that the /mnt/hdb1 directory exists

mcas 10-15-2003 09:06 PM

Can I do this if /dev/hdb is not recognized?

a slacker 10-15-2003 09:09 PM

If I am not mistaken, that will make it recognize the drive, then you could mount it, then format it (or is it format it, then mount it?)

Anyways just give it a shot and see if it works ;)

mcas 10-15-2003 09:27 PM

I tried it, and now I'm in a real bind. I get an error on boot up and saying it has a mount error - doesn't recognize /dev/hdb1 and its lost in a cycle of reboot. Unfortunately being a newbie, I am not sure how to navigate around the command line to reedit the fstab and delete the addition. Any help? Which command editor line should I use?

mcas 10-15-2003 09:34 PM

Ok, I got my bind fixed. Used vi fstab in the command line and removed the line I added to fstab? Any other ideas?

a slacker 10-15-2003 09:36 PM

try this at a command-line:

vi /etc/fstab

delete the /dev/hdb1 line then reboot.

As for getting your drive to work, I dont know. Making the addition to the /etc/fstab worked fine for me. Sorry I couldn't be of anymore help :( :(

mcas 10-15-2003 09:39 PM

Thanks for the attempt. I am really confused. I thought Red Hat 9 would recognize the drive and reconfigure the system and then all I had to do was run fdisk. Maybe I am doing something wrong. It a Maxtor 160G ATA/133 drive. I'll play with the bios settings and see if that does anything. Any other help would be appreciated.

a slacker 10-15-2003 09:44 PM

Heres a question:

When you were running the redhat installation program and you get to the part where you set up your drives/partitions, is the drive listed? If yes, use that utility to format it. If no, well... then I don't know..

mcas 10-15-2003 09:57 PM

It's been a while since I ran the Red Hat Installation program. When I did, I only had one drive. It is set up as ext3. By the way, the error I get after I added the line you told me in the fstab is:

modprob. Can't locate module ide-disk fsck.ext2. Possibly non-existante or swap drive. fsck.ext2: No such address ... to open /dev/hdb1. I can't read my note on the "..."

As for the Red Hat Install, do I need to rerun it from the CD? I'll give it a try.

a slacker 10-15-2003 10:00 PM

Yes, try to re-run the program. You dont actually need to re-install anything, just run it up to the point where it asks you to set up your drive(s)/partition(s). If you see your drive, then format it, and all is good :) if you don't, then I really don't know what you can do

dabicho 10-15-2003 10:16 PM

Does the bios recognize de drive all-right?

mcas 10-15-2003 10:17 PM

It asked me about the drive during the install, but it didn't ask me to format it. I then tried to run the fdisk /dev/hdb again and came up with the same error. Oh by the way, do I just kill it after I get there, because I wan't sure if I should update my bootrecord. I replied yes.

mcas 10-15-2003 10:18 PM

dabicho,

Yes. The bios sees the drive just fine.

dabicho 10-15-2003 10:33 PM

And youre running fdisk as root?


All times are GMT -5. The time now is 10:42 PM.