Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello I've beem working through the kernel upgrade howto at the start of this thread and have a problem at one particular point with mkinitrd, wonder if anyone can help?
its one of the first options in make config (or whichever you picked), well if nothing changed it is the third menu ... its called processor types and features
did you change anything, or did you just leave defaults?
....and ususally i am the one that gets out-posted ...
i find i will type a response to someone and then i press submit, and there is like 4 ahead of me
This has been made an almighty sticky as DrOzz rocks and this is quite a nice guide for the newbies. Now hopefully all questions in regards to "how do I compile my kernel" will cease from this day on..
Thanks Whitehat for bringing this thread to my attention.
..And create the new one:
/sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x
(Note: )
The last set of x.x.x is the eqivalent to your new kernel version and it looks to /lib/modules for that version.
-----------------------------------
Use The Steps That Pertain To You
If You Use Grub Then Edit grub.conf
If You Use Lilo Then Edit lilo.conf
-----------------------------------
<-> And Finally Edit Your /etc/grub.conf file <->
title New Kernel
kernel /vmlinuz-x.x.x ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-x.x.x.img
(Note: )
look at the previous parameters in the grub.conf file and note what "root=" and use what is existing.
Exit and Save grub.conf
type "/sbin/grub-install"
AND REBOOT!!!
Ok...I'm back....New install completed.....Now, I need to know how I got past the :
/sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x I put in :
linux:/usr/src/linux # /sbin/mkinitrd /boot/initrd-2.6.1.img 2.6.1 and get out:
/boot/initrd-2.6.1.img/var/tmp is not a directory
I forget what I was doing wrong there. I think I fixed it once...Not sure now! Can't find that string we were on at the time.
Last edited by SILVERPENGUIN; 01-11-2004 at 05:15 PM.
I upgraded my Mandrake 9.2 system to kernel 2.6.1 but I cant mount the CDrome, the floppy and windows partition any more. I did exactly similar to what I used to do for the old kernel but I got the following:
[root@localhost mnt]# mount -t auto /dev/hdb7 /mnt/h:
mount: special device /dev/hdb7 does not exist
but unfortunately I couldn't find the grub.conf in Mandrake. In Red hat this file is in the boot directory. Does this solve my problem and if so, where is the grub.conf file is located in Mandrake?
k i didn't bother looking at that link, cause i want you to resolve the fdisk issue first ...
now the first problem you have is you are issueing the fdisk command as a non-root user, so first you have to su - to root and type your password, then issue the command ...
second, if you still get command not found, then that means /sbin is not in your PATH and you'll have to specify the whole command which would then be : /sbin/fdisk -l, again as root ...
and last, grub.conf and lilo.conf are located in the /etc folder ..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.