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:39 AM
Alessandro Gabriele Isidoro Lo-Presti
 
Posts: n/a
Default Kernel panic, possible cause harddisk boundary (??).

I have an 8 GB harddisk I've been using for a very long time of running
Gentoo (1.4).
It has never presented a problem I couldn't fix, so far, but now I'm
stumbled.

I've been
compiling kernels for a while now, I'm not new to compiling, installing
and configuring GRUB, so I know what I'm doing most of the time.

Though this time it's different.

Roughly a week ago, I compiled the 2.6.7 kernel (straight from
kernel.org), without any problems.
Now, I have a new monitor, and wanted to reconfigure X11, and install
the latest NVidia driver taht was released a few days ago.
So, I configured X okay, and was installing the NVidia driver, when it
halted on an error, saying I needed to switch off 'rivafb' in my kernel,
thus having to recompile the kernel.

After the kernel compiled (and modules), I placed the files (bzImage and
System.map) in /boot, as I always do, and rebooted.

Now here is where it started happening.

Once booting into 2.6.7, it gave me an error saying (from the tops of my
head) "Kernel panic: VFS: Unable to mount root fs /dev/hda3".

Though, I know hda3 is my root
filesystem.

So I rebooted again, and luckily I still had my 2.6.6 kernel, so I
booted into that (where I am now).
The first thing I did was check my kernel settings, which were all okay
in my eyes.
To be safe, I deleted the .config file, and grabbed my backed up copy of
my 2.6.6 .config file. I did a 'make
mrproper', copied the backup .config file, set up the "new" features,
'make menuconfig' to check to be certain (and re-removed the 'rivafb',
hey, I'm not that stupid, heh), then compiled the kernel and modules,
and installed the lot.

Rebooted again, and, the same problem.

After doing the same for a few hundred time, I got so sick of it, that I
re-downloaded the 2.6.7 kernel completely, and set that one up manually.
But STILL the same damn error occurd.

This does NOT make sense, at all.

This is a part of my grub.config file:

---
title Linux; Gentoo 1.4 (Kernel 2.6.7)
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.7 root=/dev/hda3
video=vesafb:ywrap,mtrr vga=0x317
initrd=(hd0,0)/boot/initrd-1024x768
title Linux; Gentoo 1.4 (Kernel 2.6.6)
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.6 root=/dev/hda3
video=vesafb:ywrap,mtrr vga=0x317
initrd=(hd0,0)/boot/initrd-1024x768
---

Before going on; Yes, I did try and boot with no initrd and only "kernel
(hd0,0)/boot/kernel-2.6.7 root=/dev/hda3", in fact, I even tried typing
it out myself in the GRUB command-line.

Now there's another thing, which I think is the main issue here.
This is the result of "fdisk -l":

---
Disk /dev/hda: 8399 MB, 8399978496 bytes
16 heads, 63 sectors/track, 16276 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 63 31720+ 83 Linux
/dev/hda2 64 1056 500472 82 Linux swap
Partition 2 does not end on cylinder boundary.
/dev/hda3 1057 16276 7670880 83 Linux
---

Is it possible that the bad cylinder boundary on partition 2 is causing
this?
If so, how do I fix it?

Oh, both HDA1 and HDA3 are EXT3, and yes, I did turn the switch on in
the kernel as well.



Any help would be much appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 07:39 AM
Sybren Stuvel
 
Posts: n/a
Default Re: Kernel panic, possible cause harddisk boundary (??).

Alessandro Gabriele Isidoro Lo-Presti enlightened us with:
> Once booting into 2.6.7, it gave me an error saying (from the tops of my
> head) "Kernel panic: VFS: Unable to mount root fs /dev/hda3".


Are you 100% sure you've got support for your IDE chipset? I've had
the same problem with another kernel (can't remember the version)
where they split up a generic IDE module into two more specific
modules, which I had turned off.

> To be safe, I deleted the .config file, and grabbed my backed up
> copy of my 2.6.6 .config file. I did a 'make mrproper', copied the
> backup .config file, set up the "new" features, 'make menuconfig' to
> check to be certain


Next time, do a "make oldconfig" instead of "make menuconfig" - you'll
only be asked the NEW questions. Saves a lot of time.

> Is it possible that the bad cylinder boundary on partition 2 is
> causing this?


I doubt it. If that were the case, why would 2.6.6 run properly?

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
  #3 (permalink)  
Old 02-21-2008, 07:39 AM
Alessandro Gabriele Isidoro Lo-Presti
 
Posts: n/a
Default Re: Kernel panic, possible cause harddisk boundary (??).

Hey,

Thanks for replying so quickly.

Yes, I'm 100% sure I have proper support for my IDE chipset.
I've used this kernel configuration since 2.6.5.
I could attach my .config if you'd like to have a glance at it.

Also, I forgot to write that I indeed also did "make oldconfig".
That's what I meant with 'copied the backup .config file, set up the
"new" features'.
Sorry if I wasn't being to clear about that.

And, yeah, I was wondering that myself, but it's teh only thing that
seems off.
I've checked to see if deleting it and re-adding the swap partition
would correct that error, and it did.
Though I have not yet written the partition table to the harddisk
because I'm not too convinced it won't touch the rest of the harddisk
(will it?).


Kind regards,
Alessandro Lo-Presti




Sybren Stuvel wrote:
> Alessandro Gabriele Isidoro Lo-Presti enlightened us with:
>
>>Once booting into 2.6.7, it gave me an error saying (from the tops of my
>>head) "Kernel panic: VFS: Unable to mount root fs /dev/hda3".

>
>
> Are you 100% sure you've got support for your IDE chipset? I've had
> the same problem with another kernel (can't remember the version)
> where they split up a generic IDE module into two more specific
> modules, which I had turned off.
>
>
>>To be safe, I deleted the .config file, and grabbed my backed up
>>copy of my 2.6.6 .config file. I did a 'make mrproper', copied the
>>backup .config file, set up the "new" features, 'make menuconfig' to
>>check to be certain

>
>
> Next time, do a "make oldconfig" instead of "make menuconfig" - you'll
> only be asked the NEW questions. Saves a lot of time.
>
>
>>Is it possible that the bad cylinder boundary on partition 2 is
>>causing this?

>
>
> I doubt it. If that were the case, why would 2.6.6 run properly?
>
> Sybren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 07:39 AM
Sybren Stuvel
 
Posts: n/a
Default Re: Kernel panic, possible cause harddisk boundary (??).

Alessandro Gabriele Isidoro Lo-Presti enlightened us with:
> Yes, I'm 100% sure I have proper support for my IDE chipset. I've
> used this kernel configuration since 2.6.5.


My point was: kernel configuration options change. If you're only sure
because it worked in previous versions, you're *not* sure.

> I could attach my .config if you'd like to have a glance at it.


No thanks. No attachments in this group.

> Also, I forgot to write that I indeed also did "make oldconfig".
> That's what I meant with 'copied the backup .config file, set up the
> "new" features'. Sorry if I wasn't being to clear about that.


Always be explicit about what you do.

> And, yeah, I was wondering that myself, but it's teh only thing that
> seems off.


What are you referring to? You're top-posting, which makes it very
difficult to keep track of what you are replying to. Next time, remove
the unwanted quited text, and reply in-line, as I'm doing now.

> I've checked to see if deleting it and re-adding the swap partition
> would correct that error, and it did.


Ok, that's good.

> Though I have not yet written the partition table to the harddisk


Then how can you be certain it corrected the error? You must be
talking about a different error than the kernel panic, which is the
subject of this entire thread. Wat are you talking about?

> because I'm not too convinced it won't touch the rest of the harddisk
> (will it?).


Don't know. You haven't told us *exactly* what you did, so how can we
answer?

Please, next time, think about the way you post. Many people don't
think about this and put their reply at the top of their post, quoting
all of the original post below it. Now take a look at this:

---------------------------------------------------------------------
> Why is top posting so hard to read?
> > > What is one of the most annoying responses on Usenet?

> > When they top post.

In the English speaking world we read left to right, top to bottom.
---------------------------------------------------------------------

If people do it the other way around, things will clear up instantly:

---------------------------------------------------------------------
> > > What is one of the most annoying responses on Usenet?

> > When they top post.

> Why is top posting so hard to read?

In the English speaking world we read left to right, top to bottom.
---------------------------------------------------------------------

The best response type is "in-line" posting, that is, remove all the
quoted text that does not apply to your response, adding your comments
in context underneath as you go.

The distributed nature of Usenet is causing that not everyone sees all
posts in a particular thread in the right order or or even at all. If
you make sure you put your reply in a top-to-bottom order, people will
be able to easily read through it from top to bottom.

Be sure to remove all excess quoted text though. There is nothing more
annoying than having to scroll down three pages of quoted text you
already read, just to read a two-lined reply ;-)

A more complete guide to posting to Usenet can be found at
http://www.netmeister.org/news/learn2quote.html

The relevant section on good posting form is here
http://www.netmeister.org/news/learn2quote2.html#ss2.3



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
  #5 (permalink)  
Old 02-21-2008, 07:39 AM
Alessandro Gabriele Isidoro Lo-Presti
 
Posts: n/a
Default Re: Kernel panic, possible cause harddisk boundary (??).

Sybren Stuvel wrote:
> Alessandro Gabriele Isidoro Lo-Presti enlightened us with:
>
>>Yes, I'm 100% sure I have proper support for my IDE chipset. I've
>>used this kernel configuration since 2.6.5.

>
>
> My point was: kernel configuration options change. If you're only sure
> because it worked in previous versions, you're *not* sure.


First of all, I ran the 2.6.7 kernel fine, for about a week.
After I then re-compiled with the current and working 2.6.7
configuration, minus the 'rivafb' module, it gave me that error.

Otherwise, how can I be sure?
I have no idea what to do next because I have nothing to work with.
The error message itself is vague as it is, because hda3 is my root fs. :\

>
>>And, yeah, I was wondering that myself, but it's teh only thing that
>>seems off.

>
>
> What are you referring to? You're top-posting, which makes it very
> difficult to keep track of what you are replying to. Next time, remove
> the unwanted quited text, and reply in-line, as I'm doing now.


I'm referring to the fact that the only thing that seems off that could
possibly cause this (after a day of trouble-shooting and kernel
switches), is the disk boundary being off.
I don't know what else it could be.

>
>>I've checked to see if deleting it and re-adding the swap partition
>>would correct that error, and it did.

>
>
> Ok, that's good.
>
>
>>Though I have not yet written the partition table to the harddisk

>
>
> Then how can you be certain it corrected the error? You must be
> talking about a different error than the kernel panic, which is the
> subject of this entire thread. Wat are you talking about?


I'm talking about me trying to fix the disk boundary, because I thought
that was causing the kernel panic.
After I deleted the swap partition, and re-added it, I checked with 'p',
to print out the current partition table.
And the error message was gone after doing so.
But I didn't actually write to the disk yet.

>
>>because I'm not too convinced it won't touch the rest of the harddisk
>>(will it?).

>
>
> Don't know. You haven't told us *exactly* what you did, so how can we
> answer?
>
> Please, next time, think about the way you post. Many people don't
> think about this and put their reply at the top of their post, quoting
> all of the original post below it. Now take a look at this:
>
> {...}


Okay, okay, I understand, I'm sorry.
I'm doing it the way it's preferred, look. ^



So, what could it possibly be?
I've tried configuring the kernel from the grounds up, without importing
the old configuration file.
I've tried a LOT of kernel switches, and rebooted a few dozen times.
All to no avail.


Regards,
Alessandro Lo-Presti
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 07:39 AM
Sybren Stuvel
 
Posts: n/a
Default Re: Kernel panic, possible cause harddisk boundary (??).

Alessandro Gabriele Isidoro Lo-Presti enlightened us with:
> First of all, I ran the 2.6.7 kernel fine, for about a week.


Ok, you never said that. You told us you *compiled* the kernel just
fine - you never talked about using it just fine. How can we help you
if you don't give us the correct information?

> After I then re-compiled with the current and working 2.6.7
> configuration, minus the 'rivafb' module, it gave me that error.


Have you tried running a filesystem check?

> I have no idea what to do next because I have nothing to work with.
> The error message itself is vague as it is, because hda3 is my root
> fs. :\


Are you using devfs?

> I'm referring to the fact that the only thing that seems off that
> could possibly cause this (after a day of trouble-shooting and
> kernel switches), is the disk boundary being off. I don't know what
> else it could be.


Have you browsed through the kernel's changelog?

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
  #7 (permalink)  
Old 02-21-2008, 07:39 AM
Alessandro Gabriele Isidoro Lo-Presti
 
Posts: n/a
Default Re: Kernel panic, possible cause harddisk boundary (??).

Hey,

Thanks for your help, I appreciate it.
I found my answer on IRC.

It seems that I needed to switch on "CONFIG_MSDOS_PARTITION".
Which is weird, because in my 2.6.6 kernel, I did not set it myself, in
fact, I don't remember setting it at all.

Either way, it's fixed now.


Again; thanks for your help.



Regards,
Alessandro Lo-Presti


Sybren Stuvel wrote:
> {...}

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 07:39 AM
Hekaton Keires
 
Posts: n/a
Default Re: Kernel panic, possible cause harddisk boundary (??).

Alessandro Gabriele Isidoro Lo-Presti wrote:

> Any help would be much appreciated.


i'm not so experienced with linux, anyway i suppose that every required
component for booting properly is compiled inside kernel, istn't it?

otherwise why don't you try to do mkinitrd by the hand... try to see what
does it contain... and of course - try not to use the same initrd for both
2.6.6 and 2.6.7, but create two distinct.

--
remove mailto__ on reply
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 01:54 PM.


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 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647