Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-26-2005, 01:04 AM
|
#1
|
Member
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319
Rep:
|
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb
Hi,
Why did Slackware added /dev/hda to the top of lilo.conf even though my HD is under /dev/hdb?
I experienced a strange behavior with Slackware 10.2 installation yesterday when I tried to install Lilo to the MBR. The installer gave and error which I do not remember at the moment. However, after I booted from the CD and viewed /etc/lilo.conf I noticed that /dev/hda was added at the top while under the Linux boot section /dev/hdb, which is the correct one in my case, was added. I had to change /dev/hda to /dev/hdb for lilo to be installed.
|
|
|
10-26-2005, 06:46 PM
|
#2
|
Member
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159
Rep:
|
Did you use the automatic option when configuring lilo during installation? If I recall correctly you manually set this VAR when you select the advanced lilo option.
|
|
|
10-26-2005, 10:51 PM
|
#3
|
Member
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319
Original Poster
Rep:
|
Quote:
Originally posted by uopjohnson
Did you use the automatic option when configuring lilo during installation? If I recall correctly you manually set this VAR when you select the advanced lilo option.
|
Yes, I selected the automatic option when configuring lilo.
|
|
|
10-26-2005, 11:03 PM
|
#4
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,927
|
Re: /dev/hda under lilo.conf even thoug my HD is under /dev/hdb
Quote:
Originally posted by Basel
I had to change /dev/hda to /dev/hdb for lilo to be installed.
|
In an IDE system, the boot loader must be installed in the boot sector of the primary master HD.
This means that the first line of your lilo.conf file should read: Then in the OS section, you should have:
Code:
image = /boot/vmlinuz
label = linux
root = /dev/hdbx
Where x= the number of the partition on hdb you want to use as Linux's root directory.
|
|
|
10-26-2005, 11:25 PM
|
#5
|
Member
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319
Original Poster
Rep:
|
Re: Re: /dev/hda under lilo.conf even thoug my HD is under /dev/hdb
Quote:
Originally posted by rkelsen
In an IDE system, the boot loader must be installed in the boot sector of the primary master HD.
This means that the first line of your lilo.conf file should read:
|
Lilo refuses to be installed when the boot options is set to /dev/hda
Code:
Reading boot sector from /dev/hda
Fatal: open /dev/hda: No such device or address
|
|
|
10-27-2005, 01:12 AM
|
#6
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,927
|
Re: Re: Re: /dev/hda under lilo.conf even thoug my HD is under /dev/hdb
Quote:
Originally posted by Basel
Lilo refuses to be installed when the boot options is set to /dev/hda
Code:
Reading boot sector from /dev/hda
Fatal: open /dev/hda: No such device or address
|
Are your hard drives SATA or IDE?
|
|
|
10-27-2005, 07:10 AM
|
#7
|
Member
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319
Original Poster
Rep:
|
Re: Re: Re: Re: /dev/hda under lilo.conf even thoug my HD is under /dev/hdb
Quote:
Originally posted by rkelsen
Are your hard drives SATA or IDE?
|
IDE. I think this problem appeared because pins 3 and 4 of the J8 jumper are jumpered. In other words, the HD is set as Slave and not as Master.
|
|
|
10-27-2005, 10:24 AM
|
#8
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
Re: Re: Re: Re: Re: /dev/hda under lilo.conf even thoug my HD is under /dev/hdb
Quote:
Originally posted by Basel
IDE. I think this problem appeared because pins 3 and 4 of the J8 jumper are jumpered. In other words, the HD is set as Slave and not as Master.
|
Heh, yeah, that's the root of the problem then:
hda = primary master
hdb = primary slave
hdc = secondary master
hdd = secondary slave
Probably it's assumed that at least one disk will be at primary master, you can check the setup sources to see that.
Last edited by gbonvehi; 10-27-2005 at 10:26 AM.
|
|
|
10-27-2005, 06:00 PM
|
#9
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,927
|
Re: Re: Re: Re: Re: /dev/hda under lilo.conf even thoug my HD is under /dev/hdb
Quote:
Originally posted by Basel
IDE. I think this problem appeared because pins 3 and 4 of the J8 jumper are jumpered. In other words, the HD is set as Slave and not as Master.
|
Yep. That's your problem. I find that it is best to use "Cable Select" (CS) option on all HDs. Then there is always a master and slave.
|
|
|
All times are GMT -5. The time now is 11:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|