Problem with grub & new kernel
Ed Greshko
Ed.Greshko at greshko.com
Fri May 26 00:51:07 UTC 2006
sasa wrote:
> "Ed Greshko" wrote:
>
>> cp initrd-2.4.22-1.2115.nptlcustom.img
>> /tmp/initrd-2.4.22-1.2115.nptlcustom.img.gz
>>
>> cd /tmp
>> gunzip initrd-2.4.22-1.2115.nptlcustom.img.gz
>> cat initrd-2.4.22-1.2115.nptlcustom.img | cpio -it
>
> I have an error message !! :-( ...
>
> [root at fc1 boot]#cp initrd-2.4.22-1.2115.nptl.img
> /tmp/initrd-2.4.22-1.2115.nptl.img.gz
> [root at fc1 boot]#cd /tmp
> [root at fc1 tmp]#gunzip initrd-2.4.22-1.2115.nptl.img.gz
> [root at fc1 tmp]#cat initrd-2.4.22-1.2115.nptl.img | cpio -it
> cpio: premature end of archive
>
> ..the same result is with 'initrd-2.4.22-1.2115.nptlcustom.img' !!, why ??
Ahh...because they changed things from the 2.4 kernel to the 2.6 kernel
and I missed that small detail.
If you do "file initrd-2.4.22-1.2115.nptl.img" you will notice it is a
ext2 filesystem data.
So, instead of using cpio you need to mount it someplace. So, you could do:
mount initrd-2.4.21-40.ELsmp.img -o loop /mnt
Then see what you have....
You can mount the other file on another mount point and compare.
Ed
--
While you're chewing, think of STEVEN SPIELBERG'S bank account ... his
will have the same effect as two "STARCH BLOCKERS"!
More information about the fedora-list
mailing list