LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2003, 09:57 PM   #1
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Rep: Reputation: 15
Unhappy 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.
 
Old 10-15-2003, 10:03 PM   #2
a slacker
Member
 
Registered: Aug 2003
Distribution: Arch
Posts: 44

Rep: Reputation: 15
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
 
Old 10-15-2003, 10:06 PM   #3
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Can I do this if /dev/hdb is not recognized?
 
Old 10-15-2003, 10:09 PM   #4
a slacker
Member
 
Registered: Aug 2003
Distribution: Arch
Posts: 44

Rep: Reputation: 15
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
 
Old 10-15-2003, 10:27 PM   #5
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Original Poster
Rep: Reputation: 15
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?
 
Old 10-15-2003, 10:34 PM   #6
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Ok, I got my bind fixed. Used vi fstab in the command line and removed the line I added to fstab? Any other ideas?
 
Old 10-15-2003, 10:36 PM   #7
a slacker
Member
 
Registered: Aug 2003
Distribution: Arch
Posts: 44

Rep: Reputation: 15
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
 
Old 10-15-2003, 10:39 PM   #8
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 10-15-2003, 10:44 PM   #9
a slacker
Member
 
Registered: Aug 2003
Distribution: Arch
Posts: 44

Rep: Reputation: 15
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..
 
Old 10-15-2003, 10:57 PM   #10
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 10-15-2003, 11:00 PM   #11
a slacker
Member
 
Registered: Aug 2003
Distribution: Arch
Posts: 44

Rep: Reputation: 15
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
 
Old 10-15-2003, 11:16 PM   #12
dabicho
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Rep: Reputation: 15
Does the bios recognize de drive all-right?
 
Old 10-15-2003, 11:17 PM   #13
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 10-15-2003, 11:18 PM   #14
mcas
LQ Newbie
 
Registered: May 2003
Posts: 24

Original Poster
Rep: Reputation: 15
dabicho,

Yes. The bios sees the drive just fine.
 
Old 10-15-2003, 11:33 PM   #15
dabicho
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Rep: Reputation: 15
And youre running fdisk as root?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
fdisk on SCSI drive tdmg Slackware 4 07-11-2005 07:59 PM
How do I fdisk a scsi drive??? dabauer Linux - Hardware 3 02-10-2005 06:30 PM
I have destroyed my second drive partition w/ FDISK AceTech747 Linux - Software 2 04-15-2004 09:58 AM
did I kill my hard drive using FDISK? jodansmif Linux - Hardware 1 02-24-2004 06:27 PM


All times are GMT -5. The time now is 07:08 AM.

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