LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 08-17-2005, 05:42 AM   #1
Elbaron
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
Problem going from kernel version 2.4 to 2.6 - SATA related?


edit 2 or 3:
I figured it out. It was the fstab file. I was just hesitant to do so, as I am pretty sure 2.4 will not boot anymore, unless I change it back.
____________________________________________________

Alright. I have a Dell Inspiron 6000D. I am dual-booting between Windows XP Pro and Debian Sarge. I am running the 2.4 kernel. My goal is to upgrade to the 2.6 kernel for better support of my wireless and network cards and for a few other reasons. I have so far been unable to get this to work. Normally I would have kept at it, but due to being new to linux in general I have no idea where to even begin in figuring out what is wrong. Below is a little journal I kept of my sixth attempt at this.

Due to me having under 5 posts, I can't actually post the URL. However if you google the following
"rob davey" debian inspiron 6000
you will find the website I refer to below.

1)adduser myself to /usr/src
2)Untar the 2.6.12.4 kernel (edit: from the kernel.org site) to /usr/src/linux-2.6.12.4/
3)used the kernel config here: {see the top} as a base. He has a different video card, but the laptop seems to mostly the same configuration.
4)I then ran make oldconfig to set the new options
5)I then ran make xconfig to set:
CONFIG_EXT3_FS=y
6)I then backed up my .config file
7)I then ran 'make-kpkg clean'
8)I then ran 'make-kpkg --initrd --append-to-version=-attempt6 kernel_image' as root. All looked good.
9)I then went 'cd /usr/src' and ran 'dpkg -i kernel-image-2.6.12.4-attempt6_10.00.Custom_i386.deb'
10)As I have gotten no apparent errors so far, I went 'gedit /boot/grub/menu.lst' and changed 'kernel /vmlinuz-2.6.12.4-attempt6 root=/dev/hda5 ro' to 'kernel /vmlinuz-2.6.12.4-attempt6 root=/dev/sda5 ro'. I saved the file and exited.
11)I then restarted the computer and selected my new kernel in grub
12)I then get many error messages quite fast. They all go along the same lines as:
fsck.ext3: No such file or directory while trying to open /dev/hda8
/dev/hda8:
The superblock could not be read or 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 yuo might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
If I do not change hda to sda as above, it goes for a little while and then kernel panics, talking about not finding /dev/console.

My use of sda instead of hda resulted from reading this page: {same as above}

My current thoughts on what is wrong:
-I need to mess around with fstab? Change all the references from hdaX to sdaX?
-I am just horribly messing this process up or missing a step...
-The configuration file I used has something messed up in it that is messing up the kernel I compile?

On a semi-related topic: When I run the make-kpkg kernel_image modules_image command, what exactly does the modules_image part do? I am assuming it builds whatever I have marked as modules in my kernel image. Does it output something like another deb file and do I need to do something with it? Does it populate the /lib/modules/ folder for the kernel automatically?
--------------------------------------------------------------------------
edit: I also made a 7th attempt using the unstable sources from the debian website. I got further, I think, but it got stuck on modprobe because it couldn't find any modules. I did not keep track of this attempt and I am not sure what all happened besides it not working... Perhaps I should keep at using the debian source? Maybe I will try to use the precompiled linux-image...

Last edited by Elbaron; 08-17-2005 at 06:45 PM.
 
  


Reply


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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
AIX Version history & related BlckHawk76 AIX 5 08-28-2005 03:29 PM
Can somebody please solve my SATA problem?(kernel 2.6) Bultot Linux - Hardware 13 02-15-2005 05:06 PM
SATA problem with kernel 2.6.9 Zolex Debian 6 11-15-2004 06:46 AM
2.6.8-gentoo-r3 Kernel Sata Problem blackphiber Linux - General 2 09-27-2004 07:01 PM


All times are GMT -5. The time now is 02:58 AM.

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