Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Photo
- - - - -

Setup Lilo To Boot Plan 9


2 replies to this topic

#1 the empty calorie

the empty calorie

    Premium Member

  • Members
  • 254 posts

Posted 16 April 2005 - 02:50 AM

Does anyone know how to set up LILO to boot another hard disk with Plan 9 installed on it? I'm Installing it on the other hard drive, and then hooking it up as a slave and setting up LILO to give me an option to boot into Plan 9 on that drive. Anyone have any ideas?

#2 miCRoSCoPiC^eaRthLinG

miCRoSCoPiC^eaRthLinG

    PsYcheDeLiC dR3aMeR

  • [MODERATOR]
  • 2,248 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Interests:Photography, Magic Tricks, Numismatics & Philately to some extent, Being a nuisance in general (that's my favourite)
  • myCENTs:NEGATIVE[-21.50]

Posted 16 April 2005 - 10:36 AM

It's quite simple actually. Lets assume that your first drive is /dev/hda1 and second drive with Plan 9 is /dev/hdb1. Another assumption is you've got Linux+Lilo installed on the either drive with lilo being set to boot from the first drive.

In your /etc/ folder you'll find a file called lilo.conf. It looks somewhat like this.
terminal@console
boot = /dev/hda
vga = normal
read-only
prompt
default = dos
timeout = 30
append="hdc=ide-scsi"

image = /boot/vmlinuz
label = linux
root = /dev/hda2
initrd = /boot/initrd



This configuration is set to boot DOS from first partition of your drive and Linux from a second partition. The first line here, boot = /dev/hda tells lilo to install itself on the MBR of the first drive and boot using it. Assuming you've got Windows and Linux on the first one, and Plan 9 on the second, your config file should look like this:
terminal@console
boot = /dev/hda
vga = normal
read-only
prompt
default = WinXP
timeout = 30
append="hdc=ide-scsi"

image = /boot/vmlinuz
label = Linux
root = /dev/hda2
initrd = /boot/initrd

other = /dev/hda1
label = WinXP
table = /dev/hda

other = /dev/hdb1
label = Plan9
table = /dev/hdb


Once you've made these changes to lilo.conf, save and quit. Now you've to run lilo once to read the config changes. It resides in /sbin/lilo - so simply run,
terminal@console
shell> /sbin/lilo
Added Linux
Added WinXP *
Added Plan9


The * beside WinXP tells you that it is the default boot OS.

To make Plan 9 your default OS, you should type:
terminal@console
shell> lilo -D Plan9


That should do it for you.... :rolleyes:

#3 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 19 May 2006 - 02:33 PM

It resides in /sbin/lilo

Nice tutorial, miCRoSCoPiC^eaRthLinG ! I learned a lot with it !
Just a simple comment, on some systems like mine, it's not /sbin/lilo, it's /etc/lilo.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users