LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-01-2001, 05:19 PM   #1
Valerie
LQ Newbie
 
Registered: Jul 2001
Posts: 14

Rep: Reputation: 0
Warning: /dev/hdb is not on the first disk


Help, please!

I just installed Linux 7.1, kernel 2.4.2 with LILO in the MBR. After I boot, I get the "L" on the screen and nothing else. When I installed Linux (Red Hat), before rebooting I received a warning about hdb not being the first disk.

The result is that I can boot off of the floppy, but not off of the hard drive. I have an 8 gig drive partitioned as follows:

/dev/hdb1 1 1014 8144923 83 Linux
/dev/hdb2 1015 1027 104422 5 Extended
/dev/hdb5 1015 1027 104394 82 Linux Swap

I can't figure out why the drive is not hda other than the fact that it's a compaq using cable select instead of normal master slave.

I checked lilo.conf and it seems to be referencing hdb properly but I don't know for sure.

Any ideas? I'd be happy to supply more details but this is an entirely new operating and file system and I don't know even where to begin to look I can't wait to start exploring linux but booting off of the hard drive seems to be an important first task

Thanks in advance!
Valerie
 
Old 07-01-2001, 05:44 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
the first thing i would check( and you may have already) is the boot order in the bios. make sure it is c only, or c,a,cdrom. if the hard drive and cdrom share a cable, it's probably looking for lilo on the cdrom drive.
 
Old 07-02-2001, 02:12 AM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
In order to boot from hard drive, I believe the partition has to be at the beginning of the first hard drive, or MBR©

This means you need it to be /dev/hda, and not hdb© /dev/hdb is the slave drive on the primary harddrive controller©

You need to jumper the harddrive as the master and cdrom as slave or move the cdrom to the secondary controller©

Then you will have to set lilo to boot=/dev/hda and also root =/dev/hda?

Just change any hdb to hda the numbers will stay the same©as they are now©

¥see my lilo file below¤

You will have to run the lilo command to update lilo after changing it manually© You should be able to change it and then shutdown and change jumpers, and / or cables around©

My bios does not matter, but my lilo is installed to MBR on the master drive, /dev/hda©

boot=/dev/hda
map=/boot/map
install=/boot/boot©b
prompt
timeout=50
message=/boot/message
linear
default=linux

image=/boot/vmlinuz-2©4©2-2
label=linux
read-only
root=/dev/hda5



Last edited by DavidPhillips; 07-02-2001 at 02:35 AM.
 
Old 07-02-2001, 02:32 AM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Re: Warning: /dev/hdb is not on the first disk

Quote:
Originally posted by Valerie
Help, please!

I just installed Linux 7.1, kernel 2.4.2 with LILO in the MBR. After I boot, I get the "L" on the screen and nothing else. When I installed Linux (Red Hat), before rebooting I received a warning about hdb not being the first disk.

The result is that I can boot off of the floppy, but not off of the hard drive. I have an 8 gig drive partitioned as follows:

/dev/hdb1 1 1014 8144923 83 Linux
/dev/hdb2 1015 1027 104422 5 Extended
/dev/hdb5 1015 1027 104394 82 Linux Swap

I can't figure out why the drive is not hda other than the fact that it's a compaq using cable select instead of normal master slave.

I checked lilo.conf and it seems to be referencing hdb properly but I don't know for sure.

Any ideas? I'd be happy to supply more details but this is an entirely new operating and file system and I don't know even where to begin to look I can't wait to start exploring linux but booting off of the hard drive seems to be an important first task

Thanks in advance!
Valerie
Here's a snip you have have a look at. Your 'boot' should be /dev/hda - this is where we'll write the MBR. Your 'image' should point to /boot/your_linux_kernel. Your 'root' should point to /dev/hdb1
Code:
append="vga=0x0301"
boot=/dev/hda
vga = normal    # force sane state
menu-scheme=Wg:kw:Wg:Wg
read-only
prompt
timeout=100
# End LILO global Section
#
image = /boot/vmlinuz
  root = /dev/hdb1
  label = linux
 
Old 07-02-2001, 02:43 AM   #5
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
boot=/dev/hda

root=/dev/hda1
if your existing root has a different number on it other than 1 use that number©

run lilo command to update lilo

shutdown and move jumpers on hard drive and cdrom, make cdrom the slave and the harddrive the master©

Boot up and go into bios and auto detect ide devices©

Make sure the first drive is your harddrive©

You already have lilo on MBR but it has to be the master drive©

Hope this helps©

David

Last edited by DavidPhillips; 07-02-2001 at 02:50 AM.
 
Old 07-02-2001, 12:00 PM   #6
Valerie
LQ Newbie
 
Registered: Jul 2001
Posts: 14

Original Poster
Rep: Reputation: 0
Additional info: The computer is a compaq :-(

I'm learning that the problem is with compaq's unique way of handling hard drives. They use cable select so I can't set the hard drive as the 'master'. The jumper has a special setting.

Secondly, Compaq writes something to the diagnostic cyllinder on their drives which helps their bios recognize the hard drive, so I can't play with bios settings - at least not where the drive is concerned (Very long story short).

So I guess I have a new question...

Has anyone ever gotten Red Hat Linux to run successfully on the presario 5441? Anyone have any suggestions on how I can maybe force Lilo into seeing the drive as hda?

Thank you, everybody, for your responses. I'm new to Linux and once I finally get a system running, I'm sure I'll be posting more questions. Thanks, all, for you help!

Valerie
 
Old 07-02-2001, 04:13 PM   #7
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Re: Additional info: The computer is a compaq :-(

Quote:
Originally posted by Valerie
I'm learning that the problem is with compaq's unique way of handling hard drives. They use cable select so I can't set the hard drive as the 'master'. The jumper has a special setting.

Secondly, Compaq writes something to the diagnostic cyllinder on their drives which helps their bios recognize the hard drive, so I can't play with bios settings - at least not where the drive is concerned (Very long story short).

So I guess I have a new question...

Has anyone ever gotten Red Hat Linux to run successfully on the presario 5441? Anyone have any suggestions on how I can maybe force Lilo into seeing the drive as hda?

Thank you, everybody, for your responses. I'm new to Linux and once I finally get a system running, I'm sure I'll be posting more questions. Thanks, all, for you help!

Valerie
Oh. The Compaq diagnostic partition. The <F10> thingy.

I don't think the diags use the mbr. They live at the end (beginning) of the hdd. all you should have to do is tell lilo to use hda for the MBR (boot = /dev/hda) and tell it that the root filesystem is on /dev/hdb1. Then run lilo (/sbin/lilo) and you should be good to go.
 
Old 07-02-2001, 04:54 PM   #8
Valerie
LQ Newbie
 
Registered: Jul 2001
Posts: 14

Original Poster
Rep: Reputation: 0
I don't think the diags use the mbr. They live at the end (beginning) of the hdd. all you should have to do is tell lilo to use hda for the MBR (boot = /dev/hda) and tell it that the root filesystem is on /dev/hdb1. Then run lilo (/sbin/lilo) and you should be good to go.
---------------------

mccleodnine,

The problem is that linux seems to be naming my one and only hard drive hdb instead of hda. It's connected to the correct connector on the cable, but Linux still identifies it as hdb. When I run fdisk, it sees hdb1, hdb5, etc... As long as it's seen as the second hard drive, lilo won't load properly. The cdrom is on an entirely separate cable so I don't believe that the system thinks the cdrom is drive a, but who knows.

It's really screwy...

Val
 
Old 07-03-2001, 01:28 PM   #9
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Oh. Bummer.
 
Old 07-03-2001, 09:43 PM   #10
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Bummer indeed. Compaq uses more than just the diagnostic cylinder; they have a special "system partition" which they use to store some of the boot code. This has caused some problems for Linux users, but i don't think it should cause your drive to appear as hdb. For more info on this, go to google and enter "Compaq Linux partition" (no qoutes) as your search criteria.

I would re-check your cabling to make sure that the hard drive is really plugged into the Primary IDE channel, and not the Secondary channel. If for some reason the CD-ROM's cable is plugged into the Primary channel, your hard drive will be identified as hdb. There may be something marked on the motherboard to help you determine which connector is the Primary and which is secondary, but if not just try switching the two cables, it won't hurt anything.
 
  


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
Disk /dev/hdb doesn't contain a valid partition table LOLobo Linux - Hardware 11 11-06-2008 02:47 AM
Disk /dev/hdb doesn't contain a valid partition table manudath Linux - Hardware 2 09-01-2006 03:23 PM
dd if=/dev/hda of=dev/hdb taking forever to complete fechin Linux - Hardware 7 06-19-2005 01:04 AM
how to use an IDE disk after put to sleep with hdparm -Y /dev/hdb qwijibow Linux - Hardware 0 08-24-2004 02:45 PM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 06:11 AM


All times are GMT -5. The time now is 11:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration