Can Lilo or Grub choose an OS to boot if it's on anotherHDD?

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
darthdavid
Pathetic Attention Whore
Posts: 5470
Joined: 2003-02-17 12:04pm
Location: Bat Country!

Can Lilo or Grub choose an OS to boot if it's on anotherHDD?

Post by darthdavid »

I've decided to tinker with linux some more and I wanna use an old 4.3 gig hdd my friend is willing to give me for free to do it with. So, the question, will Lilo or Grub work with linux on one hdd and windows on another? (If it's important i have no floppy drive on this computer and don't feel like buying one)
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

Yes.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
darthdavid
Pathetic Attention Whore
Posts: 5470
Joined: 2003-02-17 12:04pm
Location: Bat Country!

Post by darthdavid »

Execellent *mister burns hands thingy*.
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

My /boot/grub/menu.lst

Code: Select all

default 0
timeout 2

title Debian GNU/Linux (Sid)
root (hd0,0)
kernel (hd0,0)/boot/vmlinuz acpi=force vga=0x307 video=rivafb:off ide=reverse ide0=ata66 hde=ide-scsi hdh=ide-scsi root=/dev/hda1 devfs=nomount ro

title Memtest86+
root (hd0,0)
kernel (hd0,0)/boot/memtest86+.bin
For yours, it should look something like this:

Code: Select all

default 0
timeout 10


title Windoze
rootnoverify (hd0,0)
makeactive
chainloader +1
boot

title Linux
root (hd1,0)
kernel (hd1,0)/boot/vmlinuz vga=0x307 ide=reverse ide0=ata66 root=/dev/hdb1 ro
I'm making certain assumptions though... Ignore this if you are using a GUI tool.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
Post Reply