Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chapter 9... code listing 11... is this an error ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
darkarchon
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 195
Location: Dallas, Texas

PostPosted: Mon Mar 22, 2004 5:45 am    Post subject: chapter 9... code listing 11... is this an error ? Reply with quote

the joyous installation guide... chapter 9... code listing 11... stated as follows... is this right or wrong ? specifically the first line...

it is set to "/dev/hda" while the boot partition used in the entire handbook examples "/dev/hda1".... i set it to "/dev/hda1" in a system i just booted today and it seemed to come up fine....

but, would it work with "/dev/hda" ?

Code:
Code Listing 11: Example /etc/lilo.conf

boot=/dev/hda             # Install LILO in the MBR
prompt                    # Give the user the chance to select another section
timeout=50                # Wait 5 (five) seconds before booting the default section
default=gentoo            # When the timeout has passed, boot the "gentoo" section
# Only if you use framebuffer. Otherwise remove the following line:
vga=788                   # Framebuffer setting. Adjust to your own will

# For non-genkernel users
image=/boot/kernel-2.4.24
  label=gentoo            # Name we give to this section
  read-only               # Start with a read-only root. Do not alter!
  root=/dev/hda3          # Location of the root filesystem

# For GRP genkernel users
image=/boot/kernel-2.4.24
  label=gentoo
  read-only
  root=/dev/hda3
  initrd=/boot/initrd-2.4.24

# For recent genkernel users
image=/boot/kernel-2.4.24
  label=gentoo
  read-only
  root=/dev/ram0
  append="init=/linuxrc real_root=/dev/hda3"
  initrd=/boot/initrd-2.4.24

# The next two lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
other=/dev/hda6
  label=windows
Back to top
View user's profile Send private message
aaronjb
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 106
Location: Berkshire, UK

PostPosted: Mon Mar 22, 2004 10:45 am    Post subject: Reply with quote

Yes it would is the short answer :D

Basically, using:

Code:
boot=/dev/hda


In the lilo.conf causes Lilo to install itself into the MBR (the Master Boot Record) of the hard drive - which means Lilo will get loaded no matter what partition is set active on the drive.

Using:

Code:
boot=/dev/hdaX


Means that lilo will be installed into the boot area of that partition. This means that you can change which operating systems you boot by setting different partitions active with fdisk. Doing that is only really handy if you have another OS on the system that won't load via Lilo (I can only guess at something like SCO for example, that has it's own boot loader).

HTH,
Aaron
_________________
#my gentoo farm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum