Unix Technical Forum

SEO

vBulletin Search Engine Optimization


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, 07:10 AM
Chris Severn
 
Posts: n/a
Default install from other distro "kernel too old"

I've got an old redhat box (6.2 which was upgraded to 7.2) which needs
updating. So, I got a new drive and figured on installing gentoo on it
using the "install from other linux distro" type of install.

I figured I could continue running redhat while installing gentoo, then
just reboot into Gentoo once it's all set up. The box is running as a
mail/squid server for a small company, and I didn't want much downtime.
I figured I could take a week to install, and it would be alright.

Problem 1.
When using mke2fs, it complained it didn't know the "-j" flag which I
was using to make my new drive an ext3 volume. Bugger. So, I cut my
losses and decided to go with ext2.

So, I partitioned my drive, mounted it, downloaded a stage 2 tarball,
and extracted it.

Problem 2.
It came time to chroot, so I typed :
chroot /mnt/gentoo /bin/bash
and I got
FATAL: kernel too old

Yeah, I know my kernel's old, that's why I'm updating.

What options do I have here to let me chroot and continue installing ?

I know I can boot from CD or floppy, and contine the install, but that
takes down my server, which I don't want to do.

I figure I could update my kernel on my redhat box, but that's a bit of
a pain, and I've lost the config settings which were previously used.
Does compiling a kernel often require updated libraries etc ? Part of
what I wanted to do was get out of dependency hell, which I believe
gentoo is better at. I'd need to update lots of modules, and other
programs (ipchains/iptables, ppp stuff) to let my system continue
working wouldn't I ?

Instead of compiling a new kernel, I could download a precompiled
kernel, taking it from the gentoo tarball or livecd or something. But,
I'd still be breaking other things on my redhat system, yeah ?

I read one comment on another thread which google found. Someone said
that installing an "old" version of chroot might help. I'm sceptical
myself, but I might try it.

What is actually producing that "FATAL: kernel too old" error message ?
Is it bash ? Can I use another shell which doesn't care ? How about
copying an old shell from my redhat install to use as my chroot shell ?

I don't want to stuff around too much here on my old redhat box which
I'm just going to retire as soon as this install is done............

Thanks for any advice !

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 07:10 AM
PiotrAF
 
Posts: n/a
Default Re: install from other distro "kernel too old"

On Tue, 04 May 2004 10:17:45 +0800, Chris Severn wrote:

> I've got an old redhat box (6.2 which was upgraded to 7.2) which needs
> updating. So, I got a new drive and figured on installing gentoo on it
> using the "install from other linux distro" type of install.
>
> I figured I could continue running redhat while installing gentoo, then
> just reboot into Gentoo once it's all set up. The box is running as a
> mail/squid server for a small company, and I didn't want much downtime.
> I figured I could take a week to install, and it would be alright.
>
> Problem 1.
> When using mke2fs, it complained it didn't know the "-j" flag which I
> was using to make my new drive an ext3 volume. Bugger. So, I cut my
> losses and decided to go with ext2.
>
> So, I partitioned my drive, mounted it, downloaded a stage 2 tarball,
> and extracted it.
>
> Problem 2.
> It came time to chroot, so I typed :
> chroot /mnt/gentoo /bin/bash
> and I got
> FATAL: kernel too old
>
> Yeah, I know my kernel's old, that's why I'm updating.
>


I'm just a newbie, but IMHO you should either prepare the system on
another system if you cannot afford downtime or install modern redhat so
that the setup time be short and then chroot. I don't think there is any
other way to do this, but as I said , I'm no guru
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 07:10 AM
Sybren Stuvel
 
Posts: n/a
Default Re: install from other distro "kernel too old"

Chris Severn enlightened us with:
> When using mke2fs, it complained it didn't know the "-j" flag which I
> was using to make my new drive an ext3 volume.


> Problem 2.
> It came time to chroot, so I typed :
> chroot /mnt/gentoo /bin/bash
> and I got
> FATAL: kernel too old


The solution to both problems: download Knoppix and install from that.
Or use Gentoo's own LiveCD.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 07:10 AM
Chris Severn
 
Posts: n/a
Default Re: install from other distro "kernel too old"



Sybren Stuvel wrote:

> Chris Severn enlightened us with:
>
>>When using mke2fs, it complained it didn't know the "-j" flag which I
>>was using to make my new drive an ext3 volume.

>
>
>>Problem 2.
>>It came time to chroot, so I typed :
>>chroot /mnt/gentoo /bin/bash
>>and I got
>>FATAL: kernel too old

>
>
> The solution to both problems: download Knoppix and install from that.
> Or use Gentoo's own LiveCD.
>
> Sybren


Hmm, I thought you'd say that. Bugger.

Thanks,

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 07:10 AM
Johan Lindquist
 
Posts: n/a
Default Re: install from other distro "kernel too old"

So anyway, it was like, 12:02 CEST May 04 2004, you know? Oh, and, yeah,
Chris Severn was all like, "Dude,
> Sybren Stuvel wrote:


>> The solution to both problems: download Knoppix and install from
>> that. Or use Gentoo's own LiveCD.

>
> Hmm, I thought you'd say that. Bugger.


One way to minimise downtime is to install the os on a similar[1]
system, and then either physically transfer the disk from that one
when done, or boot said livecd and transfer the filesystem. In the
latter case, you'll have to set up the boot loader post-transfer.

[1] fsvo "similar" at least meaning "same architecture", periferal
hardware not necessarily requiring special consideration

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
14:14:58 up 21 days, 18:48, 5 users, load average: 0.32, 0.17, 0.11
$ cat /dev/bollocks Registered Linux user #261729
reinvent 24/7 functionalities
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 07:11 AM
adam mcmaster
 
Posts: n/a
Default Re: install from other distro "kernel too old"

On Tue, 04 May 2004 09:04:03 +0200, PiotrAF wrote:

> I'm just a newbie, but IMHO you should either prepare the system on
> another system ...


That's what I'd suggest - find yourself a machine with a newer system on
it and compile Gentoo on there. You can either transfer the whole
filesystem to the server after you're done, or specify buildpkg in
make.conf before you start and install from the binary packages.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 07:11 AM
PiotrAF
 
Posts: n/a
Default Re: install from other distro "kernel too old"

On Tue, 04 May 2004 23:11:30 +0100, adam mcmaster wrote:

> On Tue, 04 May 2004 09:04:03 +0200, PiotrAF wrote:
>
>> I'm just a newbie, but IMHO you should either prepare the system on
>> another system ...

>
> That's what I'd suggest - find yourself a machine with a newer system on
> it and compile Gentoo on there. You can either transfer the whole
> filesystem to the server after you're done, or specify buildpkg in
> make.conf before you start and install from the binary packages.


Unless, since Gentoo 1.4 (~summer, last year), this was fixed, I wouldn't
suggest that - it was impossible to do that i.e. of course 'emerge -b' was
possible and 'emerge -k' as well, but only few packages where in fact
emerged making the system totally unusuable due to the missing dependecies
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 07:11 AM
Ben Measures
 
Posts: n/a
Default Re: install from other distro "kernel too old"

PiotrAF wrote:
> On Tue, 04 May 2004 23:11:30 +0100, adam mcmaster wrote:
>
>
>>On Tue, 04 May 2004 09:04:03 +0200, PiotrAF wrote:
>>
>>
>>>I'm just a newbie, but IMHO you should either prepare the system on
>>>another system ...

>>
>>That's what I'd suggest - find yourself a machine with a newer system on
>>it and compile Gentoo on there. You can either transfer the whole
>>filesystem to the server after you're done, or specify buildpkg in
>>make.conf before you start and install from the binary packages.

>
>
> Unless, since Gentoo 1.4 (~summer, last year), this was fixed, I wouldn't
> suggest that - it was impossible to do that i.e. of course 'emerge -b' was
> possible and 'emerge -k' as well, but only few packages where in fact
> emerged making the system totally unusuable due to the missing dependecies


I guess people have forgotten about good old tar.

1. Prepare the Gentoo installation on another computer (making sure the
kernel has all modules required for *both* computers),
2. tar the partitions, and
3. Then untar to the server (either from the network or tape backup.)

Don't forget compression if you need/want it.

--
Ben M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 07:11 AM
Chris Severn
 
Posts: n/a
Default Re: install from other distro "kernel too old"



Johan Lindquist wrote:

> So anyway, it was like, 12:02 CEST May 04 2004, you know? Oh, and, yeah,
> Chris Severn was all like, "Dude,
>
>>Sybren Stuvel wrote:

>
>
>>>The solution to both problems: download Knoppix and install from
>>>that. Or use Gentoo's own LiveCD.

>>
>>Hmm, I thought you'd say that. Bugger.

>
>
> One way to minimise downtime is to install the os on a similar[1]
> system, and then either physically transfer the disk from that one
> when done, or boot said livecd and transfer the filesystem. In the
> latter case, you'll have to set up the boot loader post-transfer.
>
> [1] fsvo "similar" at least meaning "same architecture", periferal
> hardware not necessarily requiring special consideration
>


Hmm. Thanks to everyone for your suggestions. I don't really have a
similar install, so I think I'll just spend a few late nights installing
Gentoo. I still don't have to do it all at once, and can reboot back
into the current redhat install before I go home, so it's not the end of
the world. I'm still thinking whether I should use ext2 or ext3 though.
If I use ext2 I can still mount the gentoo installation from the
redhat one and have a bit of a play with config files during the day.

One question - in the Gentoo install manual, the example they give is to
use ext2 on /boot, but ext3 on /
Is there any advantage to using ext2 on /boot ? Or is ext3 just as
good/better here ?

And, I'm still interested if anyone knows - when I try the "chroot", and
get the "FATAL: kernel too old" error - what program/library is actually
giving me that error ? I tried using a different shell in the chroot,
copied from the /bin/bash redhat install over to
/mnt/gentoo/bin/testshell but I still got the error, so it's not the
shell. Just curious.

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 07:11 AM
Ben Measures
 
Posts: n/a
Default Re: install from other distro "kernel too old"

Chris Severn wrote:
> I'm still thinking whether I should use ext2 or ext3 though.
> If I use ext2 I can still mount the gentoo installation from the redhat
> one and have a bit of a play with config files during the day.


However the advantage to a fs such as ext3 is that it is journalled. To
the end user this means less downtime (during the filesystems
consistency check) if a crash occurs. Whilst an ext2 check can typically
take hours, an ext3 consistency check will take minutes.

And then there are the speed improvements over ext2 for everyday useage.

(I personally use reiserfs as I believe the developers really know their
stuff and have a great vision for the project.)

If all you want to do is edit config files from the redhat installation,
you can make a separate partition for /etc/, and use ext2 for that. You
should feel free to mix and match for your needs, after all, this is
Linux country

> One question - in the Gentoo install manual, the example they give is to
> use ext2 on /boot, but ext3 on /
> Is there any advantage to using ext2 on /boot ? Or is ext3 just as
> good/better here ?


The reason why they suggest ext2 is for similar reasons, the
compatibility/speed tradeoff. The /boot partition is very rarely
accessed but this access is vital if the system needs repairing (from a
rescue disk). Thus, since ext2 is supported by many kernel compilations,
it is the best choice for the job.

HTH,
--
Ben M.
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 07:51 AM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585