l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Dec 16 22:59

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] problem encountered when creating a ramdisk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] problem encountered when creating a ramdisk

On Sunday 17 December 2006 00:17, Hai Yi wrote:
> hey peter:
> first, thank you very much! after reading your post, I did the
> following things: I ran the make bzImage to create a vmlinuz in the
> boot and I saw its corresponding system map as well (without doing
> any additional work), and I modified menu.1st and added the new
> kernel's entry.
> However, here comes the problem. I found the last line of each entry
> is about the initrd.img, I can find 2.4.17's initrd.img from /boot,
> but as I mentioned earlier, I couldn't create the initrd.img for my
> new kernel.
> Ignoring this line for the new kernel's entry in menu.1st or using
> the old kernel's initrd.img for the new entry would cause kernel
> panic, whatsoever.
> Good news is that I eventually created this file using:
>  mkinitrd -o /boot/initrd.img-
> and added it to the menu.1st. Then the new kernel is installed and
> worked! and I used uname -r to verify the installation.
> Bad news is that the usb port has problem - I couldn't make the mouse
> work. I guess it's a bout the configuration. But how come this was
> not the problem for my old kernel? I used the same configuration, I
> think.
> Basically, I followed this link to compile the new kernel:
> http://www.howtoforge.com/kernel_compilation_debian

UGH. Don't follow those directions they're way too wordy, and not Debian 
enough. They really don't know the Debian way to create a kernel.

You can do it all in just a couple lines, assuming you have 
kernel-package and yaird (or initramfs-tools) already installed:

(as root)
# cd /path/to/kernel/sources
# rm -rf debian/ stamp-*
# make-kpkg --append-to-version=-default1 --config=menuconfig \
  --initrd kernel_image kernel_headers
# dpkg -i ../linux-image...deb ../linux-headers...deb
(the exact names for the dpkg -i command will depend on the kernel 
version you're installing)

And there's no need to edit menu.lst, as Debian should do it for you.


Ken Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.

Attachment: pgp00010.pgp
Description: PGP signature

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.