Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-26-2009, 02:50 AM   #1
Registered: Dec 2009
Location: Massachusetts, USA
Distribution: Debian 8 64
Posts: 121

Rep: Reputation: 16
multi boot with grub after debian lenny install

I better start from the begininning

1) I had Win XP on machine. Resized hard drive and installed Xandros 4.5OCE upgraded to 5.0 based on Debian Etch. Xandros installed grub 0.97 on MBR of this hard drive. This hard drive is installed on the first SATA channell. Everthing works excelent and I hardly ever boot Win XP any more.

2 Wanted aditional programs to work like Limewire so I figure I will give Debian Lenny a try but don't want to get rid of XAndros and Win XP As I use them for now anyway.

3) I downloaded and read the Grub manual for 0.097 which Xandros uses and appears Debian Lenny uses as well. I read all pertinant info that I felt nessisary I would need. Dam things some 78 pages. I read you can just reinstall grub over an old install with no problems.

4) Installed a second hard drive on second SATA channell. Installed Debian Lenny on it. Debian Lenny installer reported the other 2 operating systems on the first hard drive and proposed to install boot loader on MBR on the first hard drive. Having read this is acceptable acording to Grub manual 0.097 I allowed it to happen.

5) When rebooting after install, Grub works fine, I can boot all 3 systems. It uses the "menu.list" on the Debian Lenny drive on second hard drive first partition, here is the default text to boot d.lenny from menu.list on the lenny drive.

title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sdb1 ro quiet
initrd /boot/initrd.img-2.6.26-2-686

All looks and works well except that It does not refer to any swap file, I don't know why it works but it does. The Xandros boot text does refer to swap files.

6) Fact. There is still a menu.list and boot directory on the Xandros instalation on hd0,5 (sda6).

Now for the problem!

When I was in Xandros there is a utility to modify the boot defaults as time and order etc. I wrongly decided to increse the time to 30 seconds instad of the measly 5 seconds. Aparently when i indirectly modified the Xandros menu.lst it now became the default when the machine boots. After I did this the computer now uses the menu.list and boot directory from the Xandros drive. I figure this not to be a problem at all as it it self picked up the Debian Lenny system on second hard drive and put what seems to be the proper information in as a selection.

7) Debian Lenny just will not boot. looked over and over at the text in menu list (From the Xandros menu.lst)and it looks corect except no swap specified just as in the Lenny install. ( I do have a swap for the lenny install on sdb5). I had previously backed up both d.lennny and Xanros menu.list

8) Copied the text from the 2 boot options fron d.Lenny menu.lst to xandros menu.lst and still says bad file when I try to boot. I introduce syntax refering to the swap file identical to the Xandros except the corect drive and partition numbers. When booting, Grub displays the new options to select from as well as the original installed by xandros. XAndros and Win XP work boot fine.

Here is fdisk -l from my system

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 7 HPFS/NTFS
/dev/sda2 19458 38913 156280320 f W95 Ext'd (LBA)
/dev/sda5 19458 19650 1550241 82 Linux swap / Solaris
/dev/sda6 19651 38913 154726400+ 83 Linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 19127 153637596 83 Linux
/dev/sdb2 19128 19457 2650725 5 Extended
/dev/sdb5 19128 19457 2650693+ 82 Linux swap / Solaris


Just can not figure out what to do to boot Lenny. Sugestions welcome, Thanks Jon
Old 12-26-2009, 03:12 AM   #2
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 274

Rep: Reputation: 42
title Debian Lenny
root (hd1,0)
kernel /boot/vmlinuz-2.6...... root=/dev/sdb1 ro
initrd /boot/initrd-2.6.......

From Xandros you should mount the debian partitions so you can specify the correct vmlinuz and initrd used on Debian Lenny.

sudo mount /dev/sdb1 /mnt
sudo ls /mnt/boot/


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
Unable to install gfxboot-grub on Debian Lenny sd|| Debian 2 11-07-2009 06:03 PM
LXer: A triple-boot system with GRUB: Debian GNU/Linux "Lenny", FreeDOS 1.0, and Wind LXer Syndicated Linux News 0 01-12-2009 09:20 PM
suse 10.1 stops at grub prompt in multi boot install after XP and Fedora Core 6 ptbedford Linux - Newbie 2 12-15-2006 11:16 AM
after installer install no Debian kernel to boot in GRUB st1cky_rice Debian 4 01-16-2006 04:42 PM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 04:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration