which initramfs tool in dapper?

Matt Price matt.price at utoronto.ca
Fri Feb 3 00:56:34 UTC 2006


Hi folks,

I am trying to convert my system over to dapper but keep my
self-rolled 2.6.15.1 kernel (patched with suspend2 and also pretty
well optimized for my system).  The only problem is that, on the new
disk I'm using -- have to replace /dev/hda, but that's another story
-- I've decided to go with LVM.  I have this partition map:

/dev/hda1: /boot
/dev/hda2: Extended
/dev/hda5: Linux LVM

VG: Anarres
LV: root
LV: swap_1

I'm using lvm2.  My understanding is that I need an initramfs to boot
off of a setup like this.  However I'm having trouble generating the
initrd and /boot/grub/menu.lst combination that will let me boot into
the system.  I've tried a few things and currently I'm doing this:

- boot with dapper daily-livecd
- chroot /dev/mapper/Anarres-root
- yaird --output=/boot/initrd.img-2.6.15.1-an-suspend2-initrd-yaird-lvm
- add this to grub: 

title           kernel 2.6.15.1-an-suspend2-initrd for /dev/Anarres/root
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.15.1-an-suspend2-initrd root=/dev/Anarres/root ro vga=791 
initrd          /boot/initrd.img-2.6.15.1-an-suspend2-initrd-yaird-lvm
savedefault
boot

the boot attempt ends with kernel panic -- something like "console: no
such file".  This happens, I think, shortly after the initramfs is
loaded -- probably right when the pivot-root takes place.  Not that I
really understand what an initramfs does...

So myguess isthat there's something wrong with my menu.lst or with the
instructions given in my initramfs config.  I'd appreciate any help
anyone can use!  among other things:

- should I be using yaird?  
- is there a Much Better Way to fix this?  

anyway thanks much,

matt


-------------------------------------------
Matt Price	    matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094
--------------------------------------------




More information about the ubuntu-users mailing list