Unix Technical Forum

2.6 -> 2.4

This is a discussion on 2.6 -> 2.4 within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hi, I'm using Gentoo running a 2.6 Kernel and everything is running fine!! However I want to use an ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 10:30 AM
Michael
 
Posts: n/a
Default 2.6 -> 2.4

Hi,
I'm using Gentoo running a 2.6 Kernel and everything is running fine!!
However I want to use an open-mosix patched kernel so i emerged it and
tryed to build it. I compile my kernel, load it into lilo and it is
unable to mount hda1 (/boot) which is ext2, it throws an error whilst
booting about e2fsck being unable to see the super block.
The funny thing is that it will still boot but can't load some of the
modules, for sound for example. Ext2 is enabled (not module) in the
kernel options and its reading the disc because I can see /dev/hda5
(reiserfs- root file system). Also, when the problem came up, the kernel
gave me the option to debug, so I did, looked at the /boot directory,
which doesn't have the /dev/hda1 mounted on it, has an entry pointing to
itself, which is NOT '.'. Hmm....
Any thoughts.... I don't really know where to look!!


Also, by the by, when i boot up Knoppix, the dhcp deamon is
'backgrounded' on bootup, how do i do this on Gentoo, cos its taking
ages to start up my laptop when the network is not plugged in!!


Regards


Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 10:30 AM
m.s.w
 
Posts: n/a
Default Re: 2.6 -> 2.4

Michael wrote:
> Hi,
> I'm using Gentoo running a 2.6 Kernel and everything is running fine!!
> However I want to use an open-mosix patched kernel so i emerged it and
> tryed to build it. I compile my kernel, load it into lilo and it is
> unable to mount hda1 (/boot) which is ext2, it throws an error whilst
> booting about e2fsck being unable to see the super block.


I am not sure, but I think that switching from 2.6.X to 2.4 must be done
by changing the profile from

/etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.0
or whatever it points to, to a 2.4 profile like

/etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.0/2.4

But what other steps (if any) it is necessery to perform I don't know.

Good luck,
m.s.w
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 10:35 AM
ken
 
Posts: n/a
Default Re: 2.6 -> 2.4

m.s.w wrote:

> Michael wrote:
>> Hi,
>> I'm using Gentoo running a 2.6 Kernel and everything is running fine!!
>> However I want to use an open-mosix patched kernel so i emerged it and
>> tryed to build it. I compile my kernel, load it into lilo and it is
>> unable to mount hda1 (/boot) which is ext2, it throws an error whilst
>> booting about e2fsck being unable to see the super block.

>
> I am not sure, but I think that switching from 2.6.X to 2.4 must be done
> by changing the profile from
>
> /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.0
> or whatever it points to, to a 2.4 profile like
>
> /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.0/2.4
>
> But what other steps (if any) it is necessery to perform I don't know.
>
> Good luck,
> m.s.w

You must upgrade your profile by switching the symlink, or you won't be able
to emerge the 2.6 kernel sources. The profile switch is ONLY a portage
thing, making the switch won't break your system by itself.

Once you switch profiles you should emerge -uD system which hopefully will
get you the needed udev utilites. Then emerge -uD gentoo-sources to get the
2.6 kernel source. Now configure your kernel, build and install it as you
did for 2.4. Make sure you select the udev support and leave out the devfs
support! Also make sure you build all the module drivers for all your hw
(as you did for 2.4). That should do it. Actually installing Gentoo from
scratch with a 2.6 kernel wasn't any different than with the 2.4 kernel, the
only thing that was different was that udev-vs-devfs thing. And the default
udev rules config file is just fine, no need to configure anything yourself
for udev ... unless you want to do something fancy like make a custom mount
auto mount point for your iPod.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 10:35 AM
ken
 
Posts: n/a
Default Re: 2.6 -> 2.4

ken wrote:

> m.s.w wrote:
>
>> Michael wrote:
>>> Hi,
>>> I'm using Gentoo running a 2.6 Kernel and everything is running fine!!
>>> However I want to use an open-mosix patched kernel so i emerged it and
>>> tryed to build it. I compile my kernel, load it into lilo and it is
>>> unable to mount hda1 (/boot) which is ext2, it throws an error whilst
>>> booting about e2fsck being unable to see the super block.

>>
>> I am not sure, but I think that switching from 2.6.X to 2.4 must be done
>> by changing the profile from
>>
>> /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.0
>> or whatever it points to, to a 2.4 profile like
>>
>> /etc/make.profile ->
>> ../usr/portage/profiles/default-linux/x86/2005.0/2.4
>>
>> But what other steps (if any) it is necessery to perform I don't know.
>>
>> Good luck,
>> m.s.w

> You must upgrade your profile by switching the symlink, or you won't be
> able
> to emerge the 2.6 kernel sources. The profile switch is ONLY a portage
> thing, making the switch won't break your system by itself.
>
> Once you switch profiles you should emerge -uD system which hopefully will
> get you the needed udev utilites. Then emerge -uD gentoo-sources to get
> the
> 2.6 kernel source. Now configure your kernel, build and install it as you
> did for 2.4. Make sure you select the udev support and leave out the
> devfs
> support! Also make sure you build all the module drivers for all your hw
> (as you did for 2.4). That should do it. Actually installing Gentoo from
> scratch with a 2.6 kernel wasn't any different than with the 2.4 kernel,
> the
> only thing that was different was that udev-vs-devfs thing. And the
> default udev rules config file is just fine, no need to configure anything
> yourself for udev ... unless you want to do something fancy like make a
> custom mount auto mount point for your iPod.

OOPS, one more thing. Make sure you install hotplug and coldplug. It makes
udev work much better. (especially with usb).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 10:35 AM
Lee Miller
 
Posts: n/a
Default Re: 2.6 -> 2.4

On Mon, 10 Oct 2005 20:57:39 -0400, ken wrote:

> ken wrote:
> OOPS, one more thing. Make sure you install hotplug and coldplug. It makes
> udev work much better. (especially with usb).

But the OP is going from 2.6 back down to 2.4 (because there is no
open-mosix patched 2.6), not the other way around.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com