2.6 broke.... everything?

Place to discuss Slackware
Post Reply
Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

2.6 broke.... everything?

Post by Master of Reality » Fri Oct 21, 2005 3:01 pm

So i compiled and installed the 2.6.13 kernel on a pretty much default installation of slackware. I put the 2.6 kernel in /boot/linux-2.6.13 and left the default /boot/vmlinuz. I have grub installed and left the 2.4 entry and added an entry for 2.6 kernel.
Now when i try to boot either kernel it loads a bit then says UDF-FS: partition not found
kernel panic. not syncing VFS: not able to mount root partition on unkown block (3,1).

I can boot up using the rescue floppy i made during the install.

Any ideas why this is happening or what i should look for?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Oct 21, 2005 3:39 pm

Sounds like you have two problems. I would say one problem is a messed up grub.conf which is why you can't boot your 2.4 kernel (or you overwrote it accidentally because of symlinks etc). The second problem is probably with the way the 2.6 kernel was compiled here looks like a very similar problem:

http://www.linuxquestions.org/questions/history/346008

Can you post a copy of your grub.conf and an "ls -l" of /boot and maybe a partition map (fdisk -l)?

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Fri Oct 21, 2005 3:56 pm

Code: Select all

# ls -l /boot
total 8115
lrwxrwxrwx  1 root root      37 2005-10-20 14:25 README.initrd -> /usr/doc/mkinitrd-1.0.1/README.initrd
-rw-r--r--  1 root root 1007896 2005-10-21 16:24 System.map
-rw-r--r--  1 root root  608033 2005-06-05 23:37 System.map-ide-2.4.31
lrwxrwxrwx  1 root root      21 2005-10-20 14:24 System.old -> System.map-ide-2.4.31
-rw-r--r--  1 root root     512 2005-10-20 18:58 boot.0300
lrwxrwxrwx  1 root root      17 2005-10-20 14:24 config -> config-ide-2.4.31
-rw-r--r--  1 root root   41760 2005-06-05 23:37 config-ide-2.4.31
-rw-r--r--  1 root root    5032 2004-05-21 03:19 diag1.img
drwxr-xr-x  2 root root     608 2005-10-21 16:45 grub/
-rw-r--r--  1 root root 2027236 2005-10-21 16:26 linux-2.6.13
-rw-------  1 root root   55808 2005-10-21 16:27 map
-rw-r--r--  1 root root 2027236 2005-10-21 16:24 vmlinuz
-rw-r--r--  1 root root 1256566 2005-06-05 23:37 vmlinuz-ide-2.4.31
-r--------  1 root root 1256566 2005-10-20 14:55 vmlinuz.old

Code: Select all

title Slackware (2.4)
kernel (hd0,0)/boot/vmlinuz vga=0x315 root=/dev/hda1 ro

title Slackware (2.6.13)
kernel (hd0,0)/boot/linux-2.6.13 root=/dev/hda1 ro
I dont have any sata drives. I've a drive for my / and a small 2gb drive for swap.
I found a question similar in http://www.linuxquestions.org/questions ... 8/4/213654 but it seems that if i improperly configured the kernel my 2.4 should still work

OH! oh oh..... when i do make install when installing the kernel does it automatically put the new kernel in /boot/vmlinuz overwriting the previous????

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Fri Oct 21, 2005 4:00 pm

ahhhhhhhhh i think i realize.... ok... i know it does after doing # diff linux-2.6.13 vmlinuz

So, i think that i might have forgotten something in my 2.6.13 kernel like reiserFS support (my root fs is reiserfs) and then i didnt realize it automatically moves the kernel to vmlinuz.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Oct 21, 2005 4:45 pm

Yes, look at the date/timestamp on vmlinux, it's not your 2.4 kernel. Change your grub.conf to point to your 2.4 kernel image in the 2.4 section then it should boot. That won't solve your 2.6 issue though.

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Fri Oct 21, 2005 9:59 pm

I got it booting from 2.4 again. I looked at the config i used for 2.6 and I did not compile reiserFS support into the kernel. So i left it compiling as i left for the weekend I'll check in on it later and see if it all worked out.

Master of Reality
guru
guru
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Post by Master of Reality » Wed Oct 26, 2005 12:27 pm

so what i eventually did was download and install the packages in /testing, and then recompiled the kernel that came with /testing with reiserfs support builtin. And now 2.6 works for me :)

Post Reply