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:34 AM
Joeri De Grande
 
Posts: n/a
Default boot vmlinuz-2.6.7 with grub

hi,

I only can boot my linux with a kernel and initrd made with genkernel all.
when i make my kernel with make menuconfig and then use make && make install
my kernel won't boot when i'm using vmlinuz, my grub.conf is like this, my
partitions are all in ext3

default 3
timeout 30
fallback 0

splashimage=(hd0,1)/boot/grub/boot.xpm.gz

title=Windows Xp Pro
root (hd0,0)
chainloader (hd0,0)+1

title=Gentoo 2.4.25
root (hd0,1)
kernel (hd0,1)/boot/kernel-2.4.25-gentoo-r2 root=/dev/hda3 vga=792
initrd (hd0,1)/boot/initrd-2.4.25-gentoo-r2

title=Gentoo 2.6.6 (genkernel)
root (hd0,1)
kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792
initrd (hd0,1)/boot/initrd-2.6.6

title=Gentoo 2.6.6 (kernel-2.6.6)
root (hd0,1)
kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792

title=Gentoo (vmlinuz)
root (hd0,1)
kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792
root@matrix sokar #

################
## my partitions
################
root@matrix sokar # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 1.4G 698M 644M 52% /
/dev/hda5 5.6G 535M 4.8G 10% /home
/dev/hda7 6.9G 3.6G 3.0G 55% /usr
/dev/hda8 1.7G 1.2G 506M 70% /var
none 252M 0 252M 0% /dev/shm
/dev/hda2 145M 23M 115M 17% /boot
root@matrix sokar #

#################
#my fstab
################## NOTE: If your BOOT partition is ReiserFS, add the notail
option to opts.
/dev/hda2 /boot ext3 noauto,noatime
1 1
/dev/hda3 / ext3 noatime
0 0
/dev/hda6 none swap sw
0 0
/dev/hda5 /home ext3 noatime
0 0
/dev/hda7 /usr ext3 noatime
0 0
/dev/hda8 /var ext3 noatime
0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 user,noauto,ro
0 0
#/dev/fd0 /mnt/floppy auto noauto
0 0

# NOTE: The next line is critical for boot!
none /proc proc defaults
0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults
0 0

the error that i get is
vfs : kernel panic , could not mount root on hda2

in my kernel i added ext3 and ext2, changed all kinds of stuff but nothing
helps, surfed my ass off with google but nothing gives me a solution,
anybody who can help me with this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 07:34 AM
Ben Measures
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

Joeri De Grande wrote:
> hi,
>
> I only can boot my linux with a kernel and initrd made with genkernel all.
> when i make my kernel with make menuconfig and then use make && make install
> my kernel won't boot when i'm using vmlinuz, my grub.conf is like this, my
> partitions are all in ext3
>
> title=Gentoo 2.6.6 (genkernel)
> root (hd0,1)
> kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792
> initrd (hd0,1)/boot/initrd-2.6.6


So this kernel is working okay,

> title=Gentoo (vmlinuz)
> root (hd0,1)
> kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792
> root@matrix sokar #


.... and this one isn't.

> /dev/hda3 1.4G 698M 644M 52% /
> /dev/hda2 145M 23M 115M 17% /boot
>
> /dev/hda2 /boot ext3 noauto,noatime
> /dev/hda3 / ext3 noatime
>
> the error that i get is
> vfs : kernel panic , could not mount root on hda2


No it isn't. You've likely made a typo - it should be hda3.

> in my kernel i added ext3 and ext2, changed all kinds of stuff but nothing
> helps, surfed my ass off with google but nothing gives me a solution,
> anybody who can help me with this?


Have you compiled support for ext3 and your IDE controller into your
vmlinuz kernel, and not as modules?

--
Ben M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 07:35 AM
Joeri De Grande
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

Ben Measures wrote:

> Joeri De Grande wrote:
>> hi,
>>
>> I only can boot my linux with a kernel and initrd made with genkernel
>> all. when i make my kernel with make menuconfig and then use make && make
>> install my kernel won't boot when i'm using vmlinuz, my grub.conf is like
>> this, my partitions are all in ext3
>>
>> title=Gentoo 2.6.6 (genkernel)
>> root (hd0,1)
>> kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792
>> initrd (hd0,1)/boot/initrd-2.6.6

>
> So this kernel is working okay,
>
>> title=Gentoo (vmlinuz)
>> root (hd0,1)
>> kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792
>> root@matrix sokar #

>
> ... and this one isn't.
>
>> /dev/hda3 1.4G 698M 644M 52% /
>> /dev/hda2 145M 23M 115M 17% /boot
>>
>> /dev/hda2 /boot ext3 noauto,noatime
>> /dev/hda3 / ext3 noatime
>>
>> the error that i get is
>> vfs : kernel panic , could not mount root on hda2

>
> No it isn't. You've likely made a typo - it should be hda3.
>
>> in my kernel i added ext3 and ext2, changed all kinds of stuff but
>> nothing helps, surfed my ass off with google but nothing gives me a
>> solution, anybody who can help me with this?

>
> Have you compiled support for ext3 and your IDE controller into your
> vmlinuz kernel, and not as modules?
>

sorry, was indead a typo, it was /dev/hda3

i did add ext2 and ext3 support for it, because i use a journal (ext3) and
my ide controller which is ICH5 (intel) is supported [not as a modul, ]
i'm at the end of my knowledge, please can anyone help me to boot that
kernel.

i've added my current config for 2.6.6 and 2.6.7

my boot triggered a new one, a bit differend.
VFS: Cannot open root device "hda3" or hda3
Please append a correct "root=" boot option
Kernel panic: VFS : Unable to mount rootfs on hda3
this was my previous

new one
VFS: Cannot open root device "hda3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS : Unable to mount rootfs on unkown-block(0,0)

this is after a new compile of kernel 2.6.7


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 07:35 AM
Sybren Stuvel
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

Joeri De Grande enlightened us with:
> --nextPart51818357.X1iSjZAcjR
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8Bit


Stop posting this multipart crap.

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:35 AM
Joeri De Grande
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

Sybren Stuvel wrote:

> Joeri De Grande enlightened us with:
>> --nextPart51818357.X1iSjZAcjR
>> Content-Type: text/plain; charset=iso-8859-1
>> Content-Transfer-Encoding: 8Bit

>
> Stop posting this multipart crap.
>
> Sybren


Sorry dude, didn't know KNode printout attachments standard if they are
plain/text. Instead of complaining give us a hand.

The world biggest problem, people think they are the best, they like to
whine about other people, but when they make a mistake, no, then you have
to leave them alone, they are the biggest losers of this planet. at the end
they pull the shortest end.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 07:35 AM
Sybren Stuvel
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

Joeri De Grande enlightened us with:
> Sorry dude, didn't know KNode printout attachments standard if they
> are plain/text.


As far as I've seen, it doesn't.

> Instead of complaining give us a hand.


Not enough experience with KNode, sorry. And I think I help enough
people here.

> The world biggest problem, people think they are the best, they like
> to whine about other people, but when they make a mistake, no, then
> you have to leave them alone, they are the biggest losers of this
> planet. at the end they pull the shortest end.


Who are you talking to? If you spent a little more time investigating
my posts, and less time whining about a single remark. To be blunt:
I've been helping people *daily* for a few *years* already.

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:35 AM
Johan Lindquist
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

So anyway, it was like, 13:55 CEST Jun 24 2004, you know? Oh, and, yeah,
Joeri De Grande was all like, "Dude,

> Sorry dude, didn't know KNode printout attachments standard if they
> are plain/text. Instead of complaining give us a hand.

^ ^
| | where I lost interest in
| '-- reading your entire kernel
| config file to help you out
|
'-- where you should have quit

The tirade at the end wasn't even required to put me off, personally.

hth, hand.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
15:57:02 up 4 days, 23:08, 7 users, load average: 1.14, 1.05, 1.01
Linux 2.6.7 x86_64 GNU/Linux Registered Linux user #261729
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 07:35 AM
Ben Measures
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

Joeri De Grande wrote:
> Sybren Stuvel wrote:
>>Joeri De Grande enlightened us with:
>>
>>>--nextPart51818357.X1iSjZAcjR
>>>Content-Type: text/plain; charset=iso-8859-1
>>>Content-Transfer-Encoding: 8Bit

>>
>>Stop posting this multipart crap.

>
> Sorry dude, didn't know KNode printout attachments standard if they are
> plain/text. Instead of complaining give us a hand.
>
> The world biggest problem, people think they are the best, they like to
> whine about other people, but when they make a mistake, no, then you have
> to leave them alone, they are the biggest losers of this planet. at the end
> they pull the shortest end.


You might be suprised to learn that the people of this newsgroup aren't
obliged to solve your problems.

You should have taken Sybren's advice and moved on. If *you* come here
with *your* problems, then *you* are the one who needs to accomodate.

Look at that last paragraph and apply it to yourself. Your pride has
probably lost you the help from this newsgroup.

--
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:38 AM
cappy
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

> title=Gentoo 2.6.6 (kernel-2.6.6)
> root (hd0,1)
> kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792
>
> title=Gentoo (vmlinuz)
> root (hd0,1)
> kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792
> root@matrix sokar #
>
> ################
> ## my partitions
> ################
> root@matrix sokar # df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda3 1.4G 698M 644M 52% /
> /dev/hda5 5.6G 535M 4.8G 10% /home
> /dev/hda7 6.9G 3.6G 3.0G 55% /usr
> /dev/hda8 1.7G 1.2G 506M 70% /var
> none 252M 0 252M 0% /dev/shm
> /dev/hda2 145M 23M 115M 17% /boot
> root@matrix sokar #


OK...this is what I think will fix it.
change your kernel line to:
kernel (hd0,1) /kernel-2.6.6 root=/dev/hda3 vga=792
--this is removing the "/boot" because hd0,1 should be the second partition
on your first drive hda, right? This would be pointing at /boot as / so no
need to again add /boot to kernel line which would make grub think to look
at /boot/boot/kernel-2.6.6 which it will not find cause it does not exist
there. Remeber according to your fstab your '/' and your '/boot' or on
different partitions. hda3 and hda2 accordingly.
Hope this helps...if you have more then one drive on you system you may need
to play with tab completion within grub on bootup to verify you have
correct drive.

--
==========================================

cappycdn ' at ' yahoo ' dot ' ca

==========================================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 07:38 AM
Ben Measures
 
Posts: n/a
Default Re: boot vmlinuz-2.6.7 with grub

cappy wrote:
>>title=Gentoo 2.6.6 (kernel-2.6.6)
>>root (hd0,1)
>>kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792

>
> OK...this is what I think will fix it.
> change your kernel line to:
> kernel (hd0,1) /kernel-2.6.6 root=/dev/hda3 vga=792
> --this is removing the "/boot" because hd0,1 should be the second partition
> on your first drive hda, right? This would be pointing at /boot as / so no
> need to again add /boot to kernel line which would make grub think to look
> at /boot/boot/kernel-2.6.6 which it will not find cause it does not exist


It will exist if the OP followed the Gentoo Handbook correctly.

--
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 12:58 AM.


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

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