Author Topic: LILO and GRUB  (Read 4073 times)

hferdinando

  • Member
  • *
  • Posts: 20
LILO and GRUB
« on: May 16, 2010, 06:32:06 pm »
I installed VL together with XP and puppy linux. when I installed puppy first then vector linux, I can select to boot from win xp and vector linux, but I cannot boot from puppy linux and there is no error message displayed on the screen

when I changed the order of installing the grub loader, I can successfully boot from win xp and puppy linux. Unfortunately, vector linux showed this:

Quote
VFS: cannot open root device "sda5" or unknown-block (0,0)
Please append a correct "root=" boot option;
Here are the available partitions
0300     19535404     hda driver: ide-disk
   0301    6658911    hda1
   0302              1    hda2
1650      4194302     hdc driver: ide-cdroom
kernel panic - not syncing: VFS: unable to mount root fs on unknown-block (0,0)

I put on win xp on hda1, vector linux on hda5, swap on hda6, puppy on hda8 (but puppy used sda instead of hda). I used the same swap on hda7 (arround 512MB)

nightflier wrote:
Quote
Vector uses LILO, which is slightly different from GRUB. One may use "sda" where the other uses "hda".

I think you need to pass some arguments to the boot entry, telling VL where to find the installation, like "root=/dev/hda5 ro"

It would be a good idea to have this question in an open forum so it may help others as well. I'd suggest "Installation & Updates": http://forum.vectorlinux.com/index.php?board=14.0

Good info to include would be the contents of your "menu.lst" (for grub1, grub.cfg for grub2). Also, if you can boot into your VL installation using the install disk, post the output of "fdisk -l" and "mount".

nightflier: I don't know where I have to put

Quote
oot=/dev/hda5 ro

since I have no installation disk, how to do

Quote
fdisk -l" and "mount

Thanks a lot!
Running VL6.0 light on Dell Latitude C610 P3 mobile 1GHz, 128 SDRAM, 20 GB

retired1af

  • Administrator
  • Vectorian
  • *****
  • Posts: 1479
Re: LILO and GRUB
« Reply #1 on: May 16, 2010, 06:36:23 pm »
First of all, are you using LILO, GRUB, or GRUB2.

Second, does your BIOS support Large Block Addresses (LBA).
Intel© Core™ i7-6700 CPU @ 3.40GHz × 4

hferdinando

  • Member
  • *
  • Posts: 20
Re: LILO and GRUB
« Reply #2 on: May 16, 2010, 06:46:39 pm »
retired1af:

I don't know whether my BIOS support LBA or not. How to check this out? And what is the relevance for my question? I am totally new in linux...
Running VL6.0 light on Dell Latitude C610 P3 mobile 1GHz, 128 SDRAM, 20 GB

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4508
Re: LILO and GRUB
« Reply #3 on: May 16, 2010, 07:04:57 pm »
We'll have to take this step by step. I think Puppy uses GRUB "legacy". To verify this, boot to Puppy and open a terminal (command line window) and enter this command (you can copy from this post and paste into the terminal using keyboard combination Shift+Insert):
Code: [Select]
ls /boot/grub/menu.lstThat is a small "L", not the number 1 in .lst.
If this does not return an error, the file is there. If so, use your text editor to open the file, copy the contents of it, and paste it into a post here.

hferdinando

  • Member
  • *
  • Posts: 20
Re: LILO and GRUB
« Reply #4 on: May 16, 2010, 11:40:41 pm »
this my menu.lst from puppy linux:

Quote
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Sat May 15 20:02:04 2010
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.25569'.  You can restore it like this.
# dd if=/boot/grub/mbr.sda.25569 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Other bootable partition config begins
  title Windows (on /dev/sda1)
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
  title Linux (on /dev/sda5)
  root (hd0,4)
  kernel /boot/vmlinuz root=/dev/sda5 ro vga=normal
# Linux bootable partition config ends
# Other bootable partition config begins
  title Windows (on /dev/sda7)
  map (hd0,0) (hd0,6)
  map (hd0,6) (hd0,0)
  rootnoverify (hd0,6)
  makeactive
  chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
  title Linux (on /dev/sda8)
  root (hd0,7)
  kernel /boot/vmlinuz root=/dev/sda8 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,7)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda8)
root (hd0,7)
setup (hd0,7)
pause Press enter to continue.
title -     For help press 'c', then type: 'help'
root (hd0)
title -     For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

sda1 contains windows xp
sda5 contains vector linux light 6.0
sda6 is for swap (512MB)
sda7 is my data
sda8 contains puppy linux
Running VL6.0 light on Dell Latitude C610 P3 mobile 1GHz, 128 SDRAM, 20 GB

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4508
Re: LILO and GRUB
« Reply #5 on: May 17, 2010, 05:31:18 am »
Try changing line 21, from:
kernel /boot/vmlinuz root=/dev/sda5 ro vga=normal
to:
kernel /boot/vmlinuz root=/dev/hda5 ro vga=normal

hferdinando

  • Member
  • *
  • Posts: 20
Re: LILO and GRUB
« Reply #6 on: May 18, 2010, 07:12:21 pm »
it works! only that the boot splash changes to text only. How to restore the graphical boot splash?

good job nightflier! thanks a lot! I really love this forum!
Running VL6.0 light on Dell Latitude C610 P3 mobile 1GHz, 128 SDRAM, 20 GB

roarde

  • Vectorian
  • ****
  • Posts: 796
  • it's enough
Re: LILO and GRUB
« Reply #7 on: May 18, 2010, 08:38:20 pm »
On that line, change "vga = normal" to "vga = 791". Make a new line after that one:
initrd /boot/initrd

rerun grub.


There are a couple of other resolutions available. See if reading /sbin/VLbsplash-switch helps.

If you're talking about the splash screen grub itself displays, read lower on this page, at #5:
http://wiki.gnewsense.org/Documentation/GRUB

HTH