Re: [SLUG] Deleted system.map

From: Doug Koobs (dkoobs@dkoobs.com)
Date: Thu Mar 27 2003 - 11:43:17 EST


Thanks! I'll try that tonight... Sorry for the confusion over system.map
and modules.info file...
This is the boring and embarrasing tale that explains what happenned...

After many RPM upgrades via RHN, my GRUB screen began looking a bit
crowded. So, I decided to clean it up a bit, and removed entries in
grub.conf to the old kernels I no longer needed. Then, I went to /boot to
clean up the old files there. While deleting old files, I deleted the
system.map for the current kernel. This is when I began writing the
original email with the system.map subject line.
In the midst of writing the email, I had the bright idea to try to
un-install and reinstall the kernel RPM's. The un-install then removed
vmlinuz.version, and modules.info.version. When I tried to re-install the
RPM, my system just hangs. So, I am now missing system.map, vmlinuz, and
modules.info. I then recompiled the kernel, and was able to re-create
system.map and vmlinuz, but not modules.info. I will retry the kernel
compile and the commands you listed below tonight.

Also, when deleting entries in grub, I managed to delete some of the
current kernel entries... Yesterday was just not a good day... Anyway,
Grub is loaded on the MBR, and /boot is the first partition on the first
drive, and /root is the 3rd partition on the first drive. I haven't had a
chance to research correct format for the grub.conf file, I'll do that
tonight. But if anyone cares to send a sample file, that would be great :)

Sorry for the long email. I'm going to go change my name now...

Doug

> On Wednesday March 26 2003 10:38 pm, you wrote:
>> I'm sure this would make a great episode for for Worst Case Scenario,
>> or at least Jackass... But in my eternal struggle to accomplish what
>> no other intelligent sane person would do, I managed to delete
>> /boot/modules.info-2.4.18.27.8.0. (RH 8.0) Please don't ask how, it's
>> a long, boring, and embarrasing story... How can I re-create this
>> file? I've tried reinstalling the kernel rpm, but rpm just hangs..
>> I've recompiled the kernel, but can't seem to re-create this file. Any
>> ideas? I don't think I can reboot this system, although I assume that
>> if everything was compiled into the kernel, without the use of
>> modules, I may not even need that file... Thanks...
>>
>> Doug
>
>
> You are talking about two different files here system.map and
> modules-info. I don't know which one you are really missing or if you
> are missing both. But, here's what to do for each file.
>
> Since you have recompiled the kernel a new system.map.version should
> have been created in your source directory /usr/src/redhat/SOURCES.
> Copy the file to your /boot directory and correct the system.map sym
> link to point to the /boot/system.map.version file.
>
> With regard to modules-info, you should run the command "make dep clean
> install modules modules_install" when compiling the kernel. This will
> create the modules-info-version file and should install it in /boot. If
> it does not install it. simply copy the file from your
> /usr/src/redhat/SOURCES directory and update the modules-info sym link
> to point to this new version of the file.
>
>
> http://www.linuxsurveys.com



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:17:39 EDT