View previous topic :: View next topic |
Author |
Message |
unacme n00b
Joined: 12 Jul 2006 Posts: 4
|
Posted: Wed Jul 12, 2006 5:08 am Post subject: Kernel Confusion |
|
|
I am on the verge of doing my first installation for the third time and before I do I would like to verify my insanity. I seem to be loosing my way after "make dep &&......". When installing the kernel what is the proper way to enter <kernel-version>? I have in /usr/src/linux -> linux-2.4.32.sparc-r6.
Should the image = /boot/<kernel_version> in the /etc/silo.conf be entered exactly the same as
"cp arch/sparc64/boot/image /boot/<kernel_version>".
Is this an editable error or should I resign myself to starting over?
Thank you in advance for your helpful comments.
u---- |
|
Back to top |
|
|
thestick Guru
Joined: 07 Apr 2006 Posts: 531 Location: /dev/urandom
|
Posted: Wed Jul 12, 2006 5:55 am Post subject: |
|
|
i really don`t understand what you ment . .
but basically , if you use lilo , please post your lilo.conf , and the content of your /boot/ partition.
and it should be something like /boot/mykernel , and in lilo.conf something about
image=/boot/mykernel
label=gentoo # Name we give to this section
read-only # Start with a read-only root. Do not alter!
root=/dev/hda3 # Location of the root filesystem
don`t forget to dolilo |
|
Back to top |
|
|
Drunkula Apprentice
Joined: 28 Jul 2003 Posts: 257 Location: Denton, TX - USA
|
Posted: Wed Jul 12, 2006 12:11 pm Post subject: |
|
|
thestick wrote: | don`t forget to dolilo |
That should be silo - not lilo. _________________ Go away or I will replace you with a very small shell script. |
|
Back to top |
|
|
interested1 Tux's lil' helper
Joined: 22 Feb 2006 Posts: 129
|
Posted: Wed Jul 12, 2006 4:53 pm Post subject: |
|
|
Just a tip so that you do not get too confused with different kernel versions: edit your MAKEFILE to have a unique kernel name. Here's how:
Code: | vim /usr/src/linux/Makefile |
or whatever editor you like...
At the head of the file you will see:
Quote: | VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 17
EXTRAVERSION = -gentoo-r2-ivtv7
NAME=Crazed Snow-Weasel
|
I have highlighted in red the section that I have changed to act as my unique name for this particular kernel.
Then when I copy it over to my /boot I do as follows:
Code: | # mount /boot
# cp /usr/src/linux/arch/x86_64/boot/bzImage /boot/bzImage-2.6.17-gentoo-r2-ivtv7 |
With this bzImage name I have a clear way to distinguish it in my bootloader and I can easily have multiple kernels with the same version and little to no confusion over which is which!
Check this wiki if you need most steps to follow. Once you get the hang of it these is nothing to it! Good luck! |
|
Back to top |
|
|
unacme n00b
Joined: 12 Jul 2006 Posts: 4
|
Posted: Fri Jul 14, 2006 2:57 am Post subject: |
|
|
Thank you for the help. I am now able to get the system to find the kernel and attempt to boot it. My error was that I misunderstood how the kernel name was to be entered in /etc/silo.conf. On to the next challenge.....
On boot up I get to the following messages:
"system.map not found
Failed to start /etc/init.d/modules
Check all File System
/dev/hda1 is mounted e2fsk: cannot continue, aborting
Fsck could not correct errors-"
I have gone over the installation handbook and I cannot find where I missed addressing the system.map.
Before I start my first install for the fourth time can anyone shed some light on this?
Note: I ran
and it was succesful. When I rebooted it returned me to the error above.
Now I am practicing insanity. |
|
Back to top |
|
|
Drunkula Apprentice
Joined: 28 Jul 2003 Posts: 257 Location: Denton, TX - USA
|
Posted: Fri Jul 14, 2006 4:45 pm Post subject: |
|
|
What does your /etc/fstab contain and what filesystems do you compile with/into the kernel? Also are you using an IDE interface (hda) or SCSI interface (sda)? _________________ Go away or I will replace you with a very small shell script. |
|
Back to top |
|
|
unacme n00b
Joined: 12 Jul 2006 Posts: 4
|
Posted: Sun Jul 16, 2006 12:38 am Post subject: |
|
|
Quote: | What does your /etc/fstab contain and what filesystems do you compile with/into the kernel? Also are you using an IDE interface (hda) or SCSI interface (sda)? |
I have two drives (hda) and (hdb). Partioned as such:
/dev/hda1 /
/dev/hda2 swap
/dev/hda3 whole disk slice
/dev/hda4 /usr
/dev/hdb3 whole disk slice
/dev/hdb5 /var
/dev/hdb6 /home
hda1 is set as ext2
hda4, hdb5, hdb6 are ext3
my /etc/fstab/ is as follows:
/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noatime 0 1
/dev/cdrom/cdrom0 /mnt/cdrom auto noauto,user 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
Also note that the problem mentioned in the message referenced below is what I havebeen experiencingalso.
In four attempts I have only been able to get the source for the sparc64 2.4.32 kernel. How do you get the 2.6 for sparc64. Quote: | Posted: Thu Jul 06, 2006 3:41 pm Post subject: SOS! SunBlade2000-UltraSparcIII+ 'kernel config' I m puzzled |
I am trying to do this install on as Sunblade 1500. I am using the Linux SPARC handbook, I am growing weary of the references to x86 and I have been at this for almost two weeks. Oh yeah as mentioned before I am a kernel building rookie and I am ready to turn this project into an artificial reef!
Any way if you could shed some light on what I am missing I would appreciate it. ( I am not going to splash this box) I am for anything non-MS. |
|
Back to top |
|
|
sblaineyuk n00b
Joined: 27 Oct 2005 Posts: 34
|
Posted: Mon Jul 17, 2006 10:09 am Post subject: |
|
|
Your partitioning scheme and fstab look inconsisent...
/dev/hda1 should be mounted as / rather than /boot and you shouldn't be mounting /dev/hda3 at all (as it doesn't contain a filesystem)... |
|
Back to top |
|
|
unacme n00b
Joined: 12 Jul 2006 Posts: 4
|
Posted: Mon Jul 17, 2006 2:42 pm Post subject: |
|
|
Quote: | Your partitioning scheme and fstab look inconsisent...
/dev/hda1 should be mounted as / rather than /boot and you shouldn't be mounting /dev/hda3 at all (as it doesn't contain a filesystem)... |
Thanks for the information. I guess from a rookie's point of view the handbook can be a bit confusing.... The examples are not consistant. I was under the impression that the whole disk slice had to be mounted(/dev/hda3).
I will make these changes and let you know what happens. |
|
Back to top |
|
|
|