Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Debian

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-2008, 11:15 PM
Arun Dev
 
Posts: n/a
etch 4.0r3 "Waiting for root file system" going for manual kernel

Hi all

I just installed a basic etch 4.0r3 and got it updated.

Then got the kernel 2.4.19 and compiled it the old-way:
- make oldconfig
- make menuconfig and changed ext3 from m to y (my root is ext3)
- make
- cp arch/..../bzImage /boot/vmlinux-xxxx
- add a stanza to /boot/grub/menu.lst
- grub-install /dev/hda (yes, an old 10 GB HD)

The new kernel starts booting an halts at "Waiting for root
device".

Web-search says either problem of switching to udev or broken
Grub. It can't be the former, because that transition was already
done in etch. Then I "repaired" Grub menu.lst /dev/hda2 should
be /dev/sda2 and in fstab too hda should be sda.

Still the problem persists, booting stops "Waiting for root
device"..

I can boot into the former (original etch) Kernels, runlevel
2 or single-user. The new fstab with sda doesn't seem to hurt.
But I can't make the transistion to 2.6.19 (and ultimately
2.6.24.

I'm used to manual compilation, it should work here too.

What am I doing wrong?

Arun
Reply With Quote
  #2 (permalink)  
Old 03-14-2008, 11:30 PM
Arun Dev
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manual kernel

Am 15.03.2008 00:15, Arun Dev schrieb:
>
>
> I just installed a basic etch 4.0r3 and got it updated.
>
> Then got the kernel 2.4.19 and compiled it the old-way:
> [...]
> Web-search says either problem of switching to udev or broken
> Grub. It can't be the former, because that transition was already
> done in etch. Then I "repaired" Grub menu.lst /dev/hda2 should
> be /dev/sda2 and in fstab too hda should be sda.
>
> Still the problem persists, booting stops "Waiting for root
> device"..


Forgot to mention that, in Grub I'm using the initrd which was there,
/boot/initrd.img-2.6.18-6-486, in case if this is relevant.

Thx
Arun
Reply With Quote
  #3 (permalink)  
Old 03-15-2008, 01:44 AM
s. keeling
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manual kernel

Arun Dev <nospam@pleaz.xy>:
>
> I just installed a basic etch 4.0r3 and got it updated.
>
> Then got the kernel 2.4.19 and compiled it the old-way:
> - make oldconfig


You got a Debian kernel, or a kernel.org kernel? Debian kernels don't
work with oldconfig, last I heard.

> - make menuconfig and changed ext3 from m to y (my root is ext3)
> - make
> - cp arch/..../bzImage /boot/vmlinux-xxxx
> - add a stanza to /boot/grub/menu.lst
> - grub-install /dev/hda (yes, an old 10 GB HD)
>
> The new kernel starts booting an halts at "Waiting for root
> device".
>
> Web-search says either problem of switching to udev or broken
> Grub. It can't be the former, because that transition was already
> done in etch. Then I "repaired" Grub menu.lst /dev/hda2 should
> be /dev/sda2 and in fstab too hda should be sda.
>
> Still the problem persists, booting stops "Waiting for root
> device"..
>
> I can boot into the former (original etch) Kernels, runlevel
> 2 or single-user. The new fstab with sda doesn't seem to hurt.
> But I can't make the transistion to 2.6.19 (and ultimately
> 2.6.24.
>
> I'm used to manual compilation, it should work here too.
>
> What am I doing wrong?



--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Reply With Quote
  #4 (permalink)  
Old 03-15-2008, 01:47 AM
s. keeling
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manual kernel

Arun Dev <nospam@pleaz.xy>:
>
> Forgot to mention that, in Grub I'm using the initrd which was there,
> /boot/initrd.img-2.6.18-6-486, in case if this is relevant.


It is. You're compiling support for your filesystem type into the
kernel, so you shouldn't need an initrd, and especially one that was
built for another kernel. That won't work with this one.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Reply With Quote
  #5 (permalink)  
Old 03-15-2008, 02:17 AM
John Hasler
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manual kernel

s. keeling writes:
> You got a Debian kernel, or a kernel.org kernel? Debian kernels don't
> work with oldconfig, last I heard.


News to me.
--
John Hasler
Reply With Quote
  #6 (permalink)  
Old 03-15-2008, 02:41 AM
Stefan Patric
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manualkernel

On Sat, 15 Mar 2008 00:30:08 +0100, Arun Dev wrote:

> Am 15.03.2008 00:15, Arun Dev schrieb:
>>
>>
>> I just installed a basic etch 4.0r3 and got it updated.
>>
>> Then got the kernel 2.4.19 and compiled it the old-way: [...]
>> Web-search says either problem of switching to udev or broken Grub. It
>> can't be the former, because that transition was already done in etch.
>> Then I "repaired" Grub menu.lst /dev/hda2 should be /dev/sda2 and in
>> fstab too hda should be sda.
>>
>> Still the problem persists, booting stops "Waiting for root device"..

>
> Forgot to mention that, in Grub I'm using the initrd which was there,
> /boot/initrd.img-2.6.18-6-486, in case if this is relevant.


It sure is! And that's the problem probably. Your initrd.img has to
match the kernel you're booting. Boot into the old kernel, then use
mkinitrd to make a new initrd for the new kernel. Edit grub.conf to
reflect the changes. Keep the old kernel and initrd and make a boot
listing in case you have more problems booting the new kernel.

Also post your grub.conf so we can check for any errors.

Stef
Reply With Quote
  #7 (permalink)  
Old 03-15-2008, 09:22 AM
marksouth
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manualkernel

On Sat, 15 Mar 2008 00:15:06 +0100, Arun Dev wrote:

> The new kernel starts booting an halts at "Waiting for root device".
>
> Web-search says either problem of switching to udev or broken Grub. It
> can't be the former, because that transition was already done in etch.


That 2.4.19 kernel is pretty ancient, does it even know about udev? That
far back, the kernels were using devfs, IIRR.

Even if you really want 2.4, why not use the latest, which was like
2.4.33 last time I looked.
Reply With Quote
  #8 (permalink)  
Old 03-15-2008, 10:46 AM
Arun Dev
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manual kernel

Hi Stefan and s.keeling

Am 15.03.2008 03:41, Stefan Patric schrieb:
> On Sat, 15 Mar 2008 00:30:08 +0100, Arun Dev wrote:
>
>> Am 15.03.2008 00:15, Arun Dev schrieb:
>>>
>>> I just installed a basic etch 4.0r3 and got it updated.
>>>
>>> Then got the kernel 2.4.19 and compiled it the old-way: [...]
>>> Web-search says either problem of switching to udev or broken Grub. It
>>> can't be the former, because that transition was already done in etch.
>>> Then I "repaired" Grub menu.lst /dev/hda2 should be /dev/sda2 and in
>>> fstab too hda should be sda.
>>>
>>> Still the problem persists, booting stops "Waiting for root device"..

>> Forgot to mention that, in Grub I'm using the initrd which was there,
>> /boot/initrd.img-2.6.18-6-486, in case if this is relevant.

>
> It sure is! And that's the problem probably. Your initrd.img has to
> match the kernel you're booting. Boot into the old kernel, then use
> mkinitrd to make a new initrd for the new kernel. Edit grub.conf to
> reflect the changes. Keep the old kernel and initrd and make a boot
> listing in case you have more problems booting the new kernel.


It could be the problem. When I'm back in the office, I'll try again.
What is the trick of making an initrd for a different (later) kernel
than the one is running? I mean making initrd for 2.6.19 inside a
running 2.6.18-6?

> Also post your grub.conf so we can check for any errors.


Thanks! These are the two options as of yesterday:

title Debian GNU/Linux, kernel 2.6.18-6-486
root (hd0,1)
kernel /boot/vmlinuz-2.6.18-6-486 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.18-6-486
savedefault

title Debian GNU/Linux, kernel 2.6.19-486
root (hd0,1)
kernel /boot/vmlinuz-2.6.19-486 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.18-6-486
savedefault

CU
Arun
Reply With Quote
  #9 (permalink)  
Old 03-15-2008, 10:52 AM
Arun Dev
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manual kernel

Am 15.03.2008 10:22, marksouth schrieb:
> On Sat, 15 Mar 2008 00:15:06 +0100, Arun Dev wrote:
>
>> I just installed a basic etch 4.0r3 and got it updated.
>>
>> Then got the kernel 2.4.19 and compiled it the old-way:
>> - make oldconfig
>> ...

>
> That 2.4.19 kernel is pretty ancient, does it even know about udev? That
> far back, the kernels were using devfs, IIRR.
>
> Even if you really want 2.4, why not use the latest, which was like
> 2.4.33 last time I looked.


Sorry! I'm talking about 2.6.18-6 as it was in Etch4.0r3 and 2.6.19!
^

In fact I first tried 2.6.24 and encountered the same problem. Went
back to 2.6.19 just to be sure. The plan is to move forward to 2.6.24.

BTW, all these sources come from kernel.org.

regards
Arun
Reply With Quote
  #10 (permalink)  
Old 03-15-2008, 12:15 PM
marksouth
 
Posts: n/a
Re: etch 4.0r3 "Waiting for root file system" going for manualkernel

On Sat, 15 Mar 2008 11:52:46 +0100, Arun Dev wrote:

> Am 15.03.2008 10:22, marksouth schrieb:
>> On Sat, 15 Mar 2008 00:15:06 +0100, Arun Dev wrote:
>>
> >> I just installed a basic etch 4.0r3 and got it updated.
> >>
> >> Then got the kernel 2.4.19 and compiled it the old-way: - make
> >> oldconfig
> >> ...

>>
>> That 2.4.19 kernel is pretty ancient, does it even know about udev?
>> That far back, the kernels were using devfs, IIRR.
>>
>> Even if you really want 2.4, why not use the latest, which was like
>> 2.4.33 last time I looked.

>
> Sorry! I'm talking about 2.6.18-6 as it was in Etch4.0r3 and 2.6.19!


Ah, that makes the problem rather different.

> In fact I first tried 2.6.24 and encountered the same problem. Went back
> to 2.6.19 just to be sure. The plan is to move forward to 2.6.24.


The current Sid kernel was 2.6.23 last time I looked, you give that a
try, it would only take a little apt-get incantation.

I am puzzled a little by your story though: why not build the kernel the
Debian way? The manual way is asking for trouble compared to all the
automation that Debian provides.

> BTW, all these sources come from kernel.org.


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Debian


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:42 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.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