LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   custom BOOTING WITH LILO ...or GRUB (https://www.linuxquestions.org/questions/linux-newbie-8/custom-booting-with-lilo-or-grub-429528/)

khaleel5000 03-29-2006 12:50 AM

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 ,

khaleel5000 03-29-2006 12:53 AM

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

khaleel5000 03-29-2006 12:55 AM

oh man how u all post the partition table ???!

imitheos 03-29-2006 01:07 AM

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 ?


All times are GMT -5. The time now is 06:12 PM.