LinuxQuestions.org
Help answer threads with 0 replies.
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 03-29-2006, 01:50 AM   #1
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
Question custom BOOTING WITH LILO ...or GRUB


Hello i am a relative newbie with bitter experience of GRUB

I use PCLINUX OS which has a default LILO boot loader
I have a 40 gb harddisk named /hdb in linux it has linux and fat partitions (no windows) just fat partitions
the table is

DEVICE BOOT start end blocks id sys
/dev/hdb1 * 1 51 409686 b w95 fat32
/dev/hdb2 52 4865 38668455 f ext'd(lba)
/dev/hdb5 52 223 1381558+ 82 linux swap
/dev/hdb6 224 1095 7004308+ 83 linux
/dev/hdb7 b w95 fat32
/dev/hdb8 b w95 fat32
/dev/hdb9 b w95 fat32



i also have a 120 gb hd named /hdc which has linux \
/dev/hdc1 is its primary partition
/dev/hdc6 has windows xp (i think still xp's boot loader is in /dev/hdc1
what i want is to modify my bootloader (or install grub so that it on the /hdb in such a way that it also displays and can boot the windows in the HDC (ofcourse also shows option for LINUX in /hdb6

i tried with grub but when i booted my hdb it showed grub loading stage 1.5 then a black screen with
MINIMUM BASH LINE EDITING IS AVAILABLE
TAB LISTS possible (blabla bla bla)
and a prompt of
grub>

now i wont linke to remember how i got my system UP n running from that but willing to take risk ,
 
Old 03-29-2006, 01:53 AM   #2
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
it messed the table i lil rewrite it
DEVICE BOOT start end blocks id sys
/dev/hdb1 * 1 51 409686 b w95 fat32
/dev/hdb2 52 4865 38668455 f ext'd(lba)
/dev/hdb5 52 223 1381558+ 82 linux swap
/dev/hdb6 224 1095 7004308+ 83 linux
/dev/hdb7 b w95 fat32
/dev/hdb8 b w95 fat32
/dev/hdb9 b w95 fat32
 
Old 03-29-2006, 01:55 AM   #3
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Original Poster
Rep: Reputation: 31
oh man how u all post the partition table ???!
 
Old 03-29-2006, 02:07 AM   #4
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 420

Rep: Reputation: 90
Quote:
Originally Posted by khaleel5000
Hello i am a relative newbie with bitter experience of GRUB

I use PCLINUX OS which has a default LILO boot loader
I have a 40 gb harddisk named /hdb in linux it has linux and fat partitions (no windows) just fat partitions
the table is

DEVICE BOOT start end blocks id sys
/dev/hdb1 * 1 51 409686 b w95 fat32
/dev/hdb2 52 4865 38668455 f ext'd(lba)
/dev/hdb5 52 223 1381558+ 82 linux swap
/dev/hdb6 224 1095 7004308+ 83 linux
/dev/hdb7 b w95 fat32
/dev/hdb8 b w95 fat32
/dev/hdb9 b w95 fat32



i also have a 120 gb hd named /hdc which has linux \
/dev/hdc1 is its primary partition
/dev/hdc6 has windows xp (i think still xp's boot loader is in /dev/hdc1
what i want is to modify my bootloader (or install grub so that it on the /hdb in such a way that it also displays and can boot the windows in the HDC (ofcourse also shows option for LINUX in /hdb6

i tried with grub but when i booted my hdb it showed grub loading stage 1.5 then a black screen with
MINIMUM BASH LINE EDITING IS AVAILABLE
TAB LISTS possible (blabla bla bla)
and a prompt of
grub>

now i wont linke to remember how i got my system UP n running from that but willing to take risk ,
I guess your first disk (the one the bootloader will be) is /dev/hdb.

[LILO][/etc/lilo.conf]
lba32
boot = /dev/hdb
prompt
menu-title = "Welcome to khaleel5000 boot menu"
timeout = 50 #5 sec delay
vga = normal
read-only

image = /boot/vmlinuz (change to yours)
root = /dev/hdb6
label = Linux1

image = /mnt/boot/vmlinuz #mount /dev/hdc1 /mnt Lilo need to find the image
root = /dev/hdc1
label = Linux2

other = /dev/hdc6
label = WindowsXP
table = /dev/hdc
master-boot # Windows needs to be the first BIOS drive in order to boot
# You can also use boot-as=0x80 it is the same thing

Now run /sbin/lilo and reboot.


[GRUB][/boot/grub/menu.lst]
default 0
timeout 5

title Linux1
root (hd0,5) #GRUB uses 0 as first so hdb6 becomes ,5
kernel /boot/vmlinuz root=/dev/hdb6 ro

title Linux2
root (hd1,0)
kernel /boot/vmlinuz root=/dev/hdc1 ro

title WindowsXP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,5)
chainloader +1
makeactive

Reboot

You need to change the boot images and i believe it will work. Do you need initrd ?
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 10:37 PM
lilo vs grub, dual-booting binkgle Ubuntu 6 05-16-2005 02:39 AM
Booting problems: grub and lilo neri Linux - Newbie 10 05-17-2004 11:17 AM
Booting Options with lilo or grub RancidWannaRiot Mandriva 2 12-05-2003 10:37 AM
Booting GRUB through LILO? TheOneAndOnlySM Linux - Newbie 5 08-01-2003 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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