Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lilo prob + Kernel panic
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Mon May 31, 2004 6:58 pm    Post subject: Reply with quote

Well after changing it to yes you will have to recompile your kernel and reboot.. after that I think it should be fine
This meant that you had the filesystem compiled as module, this module will only be loaded after mounting the root filesystem, causing the kernel to use ext2 instead of ext3.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon May 31, 2004 7:00 pm    Post subject: Reply with quote

Post you lilo.conf please
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Mon May 31, 2004 8:00 pm    Post subject: Reply with quote

BlackEdder, I have recompiled the kernel with genkernel all and no change.. still have the same problem.



nixnut there is my lilo.conf
Code:
# $Header: /home/cvsroot/gentoo-x86/sys-apps/lilo/files/lilo.conf,v 1.4 2003/07/17 21:10:26 azarah 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/hdb
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/kernel-2.4.25-gentoo-r1
   root = /dev/hdb6
   #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/hdb1
   #other = /devices/discs/disc0/part1
   label = Windows
   table = /dev/hdb
#
# DOS bootable partition config ends 
#



but i really wan a fix my filesystem problem... tried some things with BlackEdder, but no result yet. BlackEdder or nixnut you guys have some other idees
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Mon May 31, 2004 8:49 pm    Post subject: Reply with quote

Well I think if you rerun genkernel it will overwrite .config again with the default config.. so you probably need to do genkernel --menuconfigure,
then go to filesystems and make sure ext3 is marked with a [*], not a [M] and ofcourz make sure you copy your kernel image to /boot and after that run lilo to update your mbr with the new kernel
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Mon May 31, 2004 8:56 pm    Post subject: Reply with quote

ok i'll try genkernel --menuconfigure all
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Mon May 31, 2004 10:09 pm    Post subject: Reply with quote

nah.. I' have change [M] Journaling ext3 file system in the menu config for [*] but the same problem and mssage shows up.. :x lol really don't know what else we could do..
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Wed Jun 02, 2004 3:57 am    Post subject: Reply with quote

Someone have another idea??
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Wed Jun 02, 2004 3:23 pm    Post subject: Reply with quote

Ok let me resume, because I really need help or else I'm stick with windows.

When i boot my system a warning show up at the end and says:
Code:
fsck.ext2: Is a directory while trying to open //:
 The superblock could not be read an does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem( and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock
         e2fsck -b 8193  <device>
Xfilesystem couldn't be fixed :(   [!!]
Give aroot password for maintenance


But my partition is int ext3 not ext2. If i do
Code:
 mount -t ext3 /dev/hdb6 /mnt/gentoo

it works fine. So besides that i don't know. SO if someone could help me fix this...I would be very pleased.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Wed Jun 02, 2004 5:00 pm    Post subject: Reply with quote

Ok so after booting and mounting the root filesystem (manually) what's the output of lsmod??
and could you post the precise content of your /etc/fstab file
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Jun 02, 2004 7:44 pm    Post subject: Reply with quote

Danger2k wrote:
but i really wan a fix my filesystem problem... tried some things with BlackEdder, but no result yet. BlackEdder or nixnut you guys have some other idees

You can mount the partition manually when you use the livecd so the filesystem is ok. You would get an error message if there was something wrong with it. So the problem is with the kernel you build with genkernel. Genkernel also creates an initrd. I did not see an entry for this in your lilo.conf. You could try adding that.
Or you may want to try a manual compile and try booting that kernel.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Wed Jun 02, 2004 7:52 pm    Post subject: Reply with quote

To add the initrd:

image=/boot/gentoo
label=Gentoo
read-only
root=/dev/ram0
append="init=/linuxrc real_root=/dev/hda8"
initrd=/boot/initrd-2.4.??

and rerun lilo to update de mbr
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Wed Jun 02, 2004 7:52 pm    Post subject: Reply with quote

To add the initrd:

image=/boot/gentoo
label=Gentoo
read-only
root=/dev/ram0
append="init=/linuxrc real_root=/dev/hda8"
initrd=/boot/initrd-2.4.??
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Wed Jun 02, 2004 9:40 pm    Post subject: Reply with quote

I added what you said in the lilo.conf file but nothing

If you guys wanted to see my fstab file there it is:

Code:
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.12 2003/03/11 02:50:53 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb6      /boot      ext2      noatime      1 1
#/dev/hda3      /      ext3      noatime         0 0
/dev/hdb7      none      swap      sw         0 0
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro      0 0

# NOTE: The next line is critical for boot!
none         /proc      proc      defaults      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none         /dev/shm   tmpfs      defaults      0 0
Back to top
View user's profile Send private message
furkan
Guru
Guru


Joined: 11 Dec 2003
Posts: 520
Location: Montreal CA

PostPosted: Wed Jun 02, 2004 9:47 pm    Post subject: Reply with quote

#/dev/hda3 / ext3 noatime 0 0
change to
/dev/hda3 / ext3 noatime 0 0
and look again if it works :)
_________________
DELL Inspiron 1501
Back to top
View user's profile Send private message
furkan
Guru
Guru


Joined: 11 Dec 2003
Posts: 520
Location: Montreal CA

PostPosted: Wed Jun 02, 2004 9:49 pm    Post subject: Reply with quote

but it won't work because it is an kernel panic and fstab does nothing on it :)
_________________
DELL Inspiron 1501
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Jun 02, 2004 10:03 pm    Post subject: Reply with quote

One problem I can see with your lilo.conf is the line that says
Code:
root = /dev/hdb6

According to your /etc/fstab file that is your /boot partition, and it needs to be where / is mounted instead.

Another problem is that you haven't mounted a / in your /etc/fstab file, which is fairly (absolutely?!) necessary!

(Also make sure /dev/hda3 is what you actually want to mount as your / partition when following the above posts!)
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Fri Jun 04, 2004 8:56 pm    Post subject: Reply with quote

root = /dev/hdb6 is my boot and my / partitions . did it on purpose

don't wanted to do a boot partiton, a swap partition and a principal partition.
Why? because when i tried to do a fdisk /dev/hdb and create a principal partition they only let me choose between 1-4 , and i needed my fith partition.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Jun 04, 2004 9:03 pm    Post subject: Reply with quote

Danger2k wrote:
root = /dev/hdb6 is my boot and my / partitions . did it on purpose

don't wanted to do a boot partiton, a swap partition and a principal partition.
Why? because when i tried to do a fdisk /dev/hdb and create a principal partition they only let me choose between 1-4 , and i needed my fith partition.

Yes, primairy partitions can only be 1-4, logical partitions can be 5-63 and can only be created in an extended partition. Your root partition can be any primary or logical partition.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Fri Jun 04, 2004 9:06 pm    Post subject: Reply with quote

yes, indeed. I was just responding to Maedhros.

But still can't solve my problem. You think the problem is how iv created my partitions??
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Jun 04, 2004 9:13 pm    Post subject: Reply with quote

Danger2k wrote:
root = /dev/hdb6 is my boot and my / partitions . did it on purpose

Code:

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb6      /boot      ext2      noatime      1 1
#/dev/hda3      /      ext3      noatime         0 0

Ok, in that case change /dev/hdb6 /boot in /dev/hdb6 /
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Sat Jun 05, 2004 6:20 pm    Post subject: Reply with quote

Problem solved :wink:

Changed
Code:
 /dev/hdb6      /boot      ext2      noatime      1 1

to
Code:
/dev/hdb6      /      ext2      noatime      1 1
Back to top
View user's profile Send private message
Danger2k
n00b
n00b


Joined: 01 Jan 2004
Posts: 45
Location: Canada(montreal)

PostPosted: Sat Jun 05, 2004 6:21 pm    Post subject: Reply with quote

And now guys can you tell me how to configure my X manager? I can't startx, and I forgot how to configure it. I'm using fluxbox...
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Jun 05, 2004 6:31 pm    Post subject: Reply with quote

Danger2k wrote:
And now guys can you tell me how to configure my X manager? I can't startx, and I forgot how to configure it. I'm using fluxbox...

Try searching the forums first. Look in the forum Desktop Environments. My guess is you still need to run xf86config to create a config file for X.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
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
Goto page Previous  1, 2
Page 2 of 2

 
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