Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Won't boot lilo.. :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 4:52 am    Post subject: [SOLVED]Won't boot lilo.. :( Reply with quote

Ok, so I have finished my gentoo stage 3 installation (what happend to stage 1 & 2? :() and now my computer don't want to boot from it.. :(

I run lilo and it warns me that /proc/partitions dosent exist?
it also warns that /dev/hdb2 is not on the first block device (hdb2 being my boot).

now when I restart I get alot of 99 printed out..

thanks in advance.


Last edited by Sedrik on Fri Feb 10, 2006 11:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Fri Feb 10, 2006 8:40 am    Post subject: Reply with quote

If you really don't want to use grub, can you post your fdisk -l output and the lilo.conf ?
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 1:21 pm    Post subject: Reply with quote

Sure I can use grub but I have never really understood why they have to make thier own system for what to call the disks..

I got this setup right now.

/dev/hda (windows)
/dev/hdb1 (files and stuff)
/dev/hdb2 (linux boot)
/dev/hdb3 (linux swap)
/dev/hdb4 (linux root)

how would this translate to grub? for the time being I want to have dual boot.
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Fri Feb 10, 2006 2:46 pm    Post subject: Reply with quote

Sedrik wrote:
Sure I can use grub but I have never really understood why they have to make thier own system for what to call the disks..


It is beyond me why people are so enamored with grub, I hate it. The device naming scheme reminds me of a POS called SCO....

If it can't find /proc/partitions, you probably didn't mount -t proc none /mnt/gentoo/proc.

Here is what works for me:

Code:

boot = /dev/hda
default = mykernel
prompt
timeout = 50

image = /boot/mykernel-blah-blah
   read-only
   root = /dev/hdb4
   label = mykernel
other = /dev/hda1
   label = windows


Last edited by Bad Penguin on Fri Feb 10, 2006 3:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 3:10 pm    Post subject: Reply with quote

Still the same problems.. :( heres some data.

fdisk -l
Code:


Disk /dev/hda: 20.0 GB, 20020396032 bytes
240 heads, 63 sectors/track, 2586 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2585    19542568+   7  HPFS/NTFS

Disk /dev/hdb: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       14252   114479158+   c  W95 FAT32 (LBA)
/dev/hdb2   *       14253       14257       40162+  83  Linux
/dev/hdb3           14258       14320      506047+  82  Linux swap / Solaris
/dev/hdb4           14321       15017     5598652+  83  Linux



lilo.conf
Code:

# $Header: /var/cvsroot/gentoo-x86/sys-boot/lilo/files/lilo.conf,v 1.2 2004/07/18 04:42:04 dragonheart Exp $
# Author: Ultanium

#
# Start LILO global section
#

# Faster, but won't work on all systems:
#compact
# Should work for most systems, and do not have the sector limit:
lba32
# If lba32 do not work, use linear:
#linear

# MBR to install LILO to:
boot = /dev/hdb2
map = /boot/.map

# If you are having problems booting from a hardware raid-array
# or have a unusual setup, try this:
#disk=/dev/ataraid/disc0/disc bios=0x80  # see this as the first BIOS disk
#disk=/dev/sda bios=0x81                 # see this as the second BIOS disk
#disk=/dev/hda bios=0x82                 # see this as the third BIOS disk

# Here you can select the secondary loader to install.  A few
# examples is:
#
#    boot-text.b
#    boot-menu.b
#    boot-bmp.b
#
install = /boot/boot-menu.b   # Note that for lilo-22.5.5 or later you
                              # do not need boot-{text,menu,bmp}.b in
                              # /boot, as they are linked into the lilo
                              # binary.

menu-scheme=Wb
prompt
# If you always want to see the prompt with a 15 second timeout:
timeout=150
delay = 50
# Normal VGA console
#vga = normal
# VESA console with size 1024x768x16:
vga = 791

#
# End LILO global section
#

#
# Linux bootable partition config begins
#
image = /boot/bzImage
   root = /dev/hda4
   #root = /devices/discs/disc0/part3
   label = Gentoo
   read-only # read-only for checking
#
# Linux bootable partition config ends
#

#
# DOS bootable partition config begins
#
other = /dev/hda1
   #other = /devices/discs/disc0/part1
   label = Windows
   #table = /dev/hda
#
# DOS bootable partition config ends 
#


Hope you can find the problem.. =)
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 3:40 pm    Post subject: Reply with quote

Should my boot variable in lilo.conf be pointing to my /dev/hda1 disk?
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Fri Feb 10, 2006 3:58 pm    Post subject: Reply with quote

Sedrik wrote:
Should my boot variable in lilo.conf be pointing to my /dev/hda1 disk?

I always use the mbr on the first disk (/dev/hda), unless there is a good reason not to...
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Fri Feb 10, 2006 4:00 pm    Post subject: Reply with quote

Sedrik wrote:
Should my boot variable in lilo.conf be pointing to my /dev/hda1 disk?

I fat fingered my lilo.conf example, it should be have been:

other = /dev/hda1
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 4:09 pm    Post subject: Reply with quote

but what is the use of my boot on hdb then? :|

Edit:

btw here is a subject on the error code I am recieving..

http://wiki.linuxquestions.org/wiki/LILO_Error_Codes

Now shouldn't lilo install itself into the mbr?
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Fri Feb 10, 2006 4:18 pm    Post subject: Reply with quote

Sedrik wrote:
but what is the use of my boot on hdb then? :|

Edit:

btw here is a subject on the error code I am recieving..

http://wiki.linuxquestions.org/wiki/LILO_Error_Codes

Now shouldn't lilo install itself into the mbr?


Lilo installs itself to where you tell it to with the boot = /dev/wherever entry in lilo.conf, or via the -b bootdev argument....

The lilo.conf I posted above should allow you to use lilo as your default boot loader and offer you a choice between booting into your linux or windows install.

In my experience the simpler the better :)
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 4:30 pm    Post subject: Reply with quote

ok, should be solved then. Gonna try it when I got time to reboot. Thanks a million :)
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Fri Feb 10, 2006 4:42 pm    Post subject: Reply with quote

Sedrik wrote:
ok, should be solved then. Gonna try it when I got time to reboot. Thanks a million :)

Heh heh, don't thank me now. Wait to see if it actually works :)
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 4:59 pm    Post subject: Reply with quote

It didn't..

Code:

Warning: partition type 0x07 on device 0x0301 is a dangerous place for
    a boot sector.

Proceed? [N/y]y
Fatal: Filesystem would be destroyed by LILO boot sector: /dev/hda1


ok? :/

How the hell do I get my bootmanager to work? :(
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Fri Feb 10, 2006 5:10 pm    Post subject: Reply with quote

Sedrik wrote:
It didn't..

Code:

Warning: partition type 0x07 on device 0x0301 is a dangerous place for
    a boot sector.

Proceed? [N/y]y
Fatal: Filesystem would be destroyed by LILO boot sector: /dev/hda1


ok? :/

How the hell do I get my bootmanager to work? :(


Can you post your lilo.conf? It appears that you set boot = /dev/hda1 instead of boot = /dev/hda.
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 5:50 pm    Post subject: Reply with quote

Bad Penguin wrote:
Sedrik wrote:
It didn't..

Code:

Warning: partition type 0x07 on device 0x0301 is a dangerous place for
    a boot sector.

Proceed? [N/y]y
Fatal: Filesystem would be destroyed by LILO boot sector: /dev/hda1


ok? :/

How the hell do I get my bootmanager to work? :(


Can you post your lilo.conf? It appears that you set boot = /dev/hda1 instead of boot = /dev/hda.


ehmm yeah? wasn't that intended?
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Fri Feb 10, 2006 6:11 pm    Post subject: Reply with quote

Sedrik wrote:
ehmm yeah? wasn't that intended?

Uh, nope. Let's try that one more time. I'll even plug in your values :) Start simple, if it works, then start adding vga options etc...

Code:

boot = /dev/hda
default = Gentoo
prompt
timeout = 50

# Try either of these if needed...
# lba32
# linear

image = /boot/bzImage
   read-only
   root = /dev/hdb4
   label = Gentoo
other = /dev/hda1
   label = Windows
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 655
Location: Uppsala, Sweden

PostPosted: Fri Feb 10, 2006 11:48 pm    Post subject: Reply with quote

Hehe thanks a bunch man, changed it to hda only and works great now :D So tomorow I will finish off my installation with some good old 200 hours X compile ^^

My computer is high on gentoo again and I can finaly get back to my good old flux again =)
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Sat Feb 11, 2006 12:24 am    Post subject: Reply with quote

Sedrik wrote:
Hehe thanks a bunch man, changed it to hda only and works great now :D So tomorow I will finish off my installation with some good old 200 hours X compile ^^

My computer is high on gentoo again and I can finaly get back to my good old flux again =)

Congrats. Us old fashioned lilo users gotta help each other out :)
Back to top
View user's profile Send private message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Thu Feb 23, 2006 1:42 pm    Post subject: Reply with quote

Me also has this exact Problem. Is your /dev/hdb4 below the first 120GB of the disk? I am not sure, if this is the showstopper with my scenario...
https://forums.gentoo.org/viewtopic-t-436781-highlight-grub.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum