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.
I am trying to install the new 2.6.4 kernel. (Yes, I'm new to Linux and probably should not be trying this)
I am down the the /sbin/mkinitrd /boot/initrd-2.6.4.img 2.6.4 part and it gives me the message:
linux:/usr/src/linux # /sbin/mkinitrd /boot/initrd-2.6.4.img 2.6.4
/boot/initrd-2.6.4.img/var/tmp is not a directory
Also, when it comes to the next part of configuring grub.config file, do I put in everything from title and end where it says, (Note ? If so, then also, do I put in the LABEL area what it said root=.....which according to my file......='s root (hd1,1) Does this mean I put in the () as well?
I also posted this in Drozz's posting, but haven't received a reply yet. I'm hoping this will get the quick answers I need. If I don't figure this out soon, I'll have to re-install Suse and try this again at a later date. Sorry for my haste.
to /sbin/mkinitrd /initrd-2.6.4.img 2.6.4
then mv /initrd-2.6.4 /boot/
Your grub config for the kernel should look something like this
title Linux 2.6.4
root (hd1,1)
kernel /path-to-kernel-from-boot <insert options here, probably just copy from exsisting kernel>
initrd /initrd-2.6.4.img
However, after reading another thread on this and combining it with your information, I have come up with a file that looks like the following. Does this look ok?
title Linux 2.6.4
root (hd1,1)
kernel /vmlinuz-2.6.4 ro root=(hd1,1)=/ hdd=ide-scsi (HOW DO I KNOW IF THIS IS CORRECT?)
initrd /initrd-2.6.4.img
INSTEAD OF THE ORIGINAL:
root (hd1,1)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 $
quit
title Linux 2.6.4
root (hd1,1)
kernel /vmlinuz-2.6.4 ro root=/dev/hdxy hdd=ide-scsi
initrd /initrd-2.6.4.img
Now for a breakdown of hdxy
x equals a letter, probably between a and d, of e and h. If you are using the first ide controller on the machine (usually the one build into the mainboard chipset) it looks like the following
a = primary master
b = primary slave
c = secondary master
d = secondary slave
If you are using a promise or a highpoint controller then it'll probably be like this:
e = primary master
f = primary slave
g = secondary master
h = secondary slave
Now y equals a number cooresponding to the partition that is mounted as / on that drive. For instance, if / is the 3rd partition on the primary master drive on your main ide controller it would be /dev/hda3.
I hope this helps, if it does not tell me your harddrive configuration and I'll tell you the correct designation.
the root (hd1,1) line in grub actually refers to the /boot partiion and (hd1,1) is grub notation. The root= line in the kernel refers to the / patition (aka linux's root filesystem) and uses a different notation.
How do I find our which to use. Is there a file I can look under?
Here is what I have:
I am using a ASUS A7v-333 R MB
2400 xp AMD CPU
Two Maxtor drives. The primary was set up with XP pro on it. I split it into two which are C: & D: under windows. The second 120 GB has nothing but SUSE 9 pro on it....which was installed after XP pro.
You know, I keep trying to Pico the file and save it...but it won't save my changes! What is up with that?
Ok...figured out what I was doing wrong there....Now, do I include the old information? that was in the file, or just save it without and cross my fingers as I reboot?
Well, I'm off to try what I have. I doubt it will work as is. This means I will have to re-install it for the umpteen time! Oh well. That's life. Someday I'll sort-of know what I'm doing. Thanks for your help. Take care!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.