View previous topic :: View next topic |
Author |
Message |
taf1982 n00b
Joined: 23 Feb 2007 Posts: 21 Location: Bayonne, New Jersey, USA
|
Posted: Sat Feb 24, 2007 10:55 am Post subject: Message during boot |
|
|
During bootup I noticed on one of the lines it says FATAL: Could not open '/System.map': No such file or directory.
Why is it doing that and what can I do to fix it? |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sat Feb 24, 2007 11:05 am Post subject: |
|
|
i think its benign. System.map comes from /usr/src/linux/arch/i386/boot/. I haven't used that file since redhat.
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
taf1982 n00b
Joined: 23 Feb 2007 Posts: 21 Location: Bayonne, New Jersey, USA
|
Posted: Sat Feb 24, 2007 11:11 am Post subject: |
|
|
bunder wrote: | i think its benign. System.map comes from /usr/src/linux/arch/i386/boot/. I haven't used that file since redhat.
cheers |
So I should just ignore it? |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sat Feb 24, 2007 11:24 am Post subject: |
|
|
taf1982 wrote: | bunder wrote: | i think its benign. System.map comes from /usr/src/linux/arch/i386/boot/. I haven't used that file since redhat.
cheers |
So I should just ignore it? |
Sure, I do. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
taf1982 n00b
Joined: 23 Feb 2007 Posts: 21 Location: Bayonne, New Jersey, USA
|
Posted: Sat Feb 24, 2007 11:25 am Post subject: |
|
|
bunder wrote: | Sure, I do. |
Ok, thanks.
One less thing to worry about... |
|
Back to top |
|
|
01mf02 Veteran
Joined: 21 Nov 2004 Posts: 1070 Location: Innsbruck, Austria
|
Posted: Sat Feb 24, 2007 1:22 pm Post subject: |
|
|
If you want that message to disappear, you can simply run "make install" from the kernel directory - this will put the "System.map" into your /boot directory (however, make sure that your /boot directory is mounted first!). |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Feb 24, 2007 2:09 pm Post subject: |
|
|
bunder wrote: | i think its benign. System.map comes from /usr/src/linux/arch/i386/boot/. I haven't used that file since redhat.
cheers |
err, system.map is in /usr/src/linux, not all the way to the bzimage
I always copy into /boot just to suppress that message _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sat Feb 24, 2007 3:48 pm Post subject: |
|
|
copy System.map to / then it will see the file.it is required for proc and dev folders. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
ok Guru
Joined: 11 Jul 2006 Posts: 390 Location: germany
|
Posted: Sat Feb 24, 2007 8:06 pm Post subject: |
|
|
I am a little bit confused.
Do I have to copy the System.map from /usr/src/linux/ or not? And if so, where should (have to?) it be?
And what is with the vmlinux file? Do i have to copy it, too?
Which files (System.map, vmlinux) will be used, if i have a copy of them in /boot, /, /usr/src/linux?
Half a year ago, i installed a different Linux Distribution on an additional partition and this one installed his own System.map in /boot, but i was still able to boot my Gentoo... |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Sat Feb 24, 2007 8:32 pm Post subject: |
|
|
ok wrote: | Do I have to copy the System.map from /usr/src/linux/ or not? And if so, where should (have to?) it be? | No, it doesn't need to be copied, the script which looks for it is /sbin/modules-update and it looks in /lib/modules/${KV}/build, /usr/src/linux-${KV}, /boot and /usr/src/linux â ${KV} is the kernel version, it will be replaced by "uname -r", 2.6.19-gentoo-r5 for instance.
There is no need to copy it to /, this is just a consequence of it failing to find it in the list above, it may not be used anyway ...
ok wrote: | And what is with the vmlinux file? Do i have to copy it, too? | No.
ok wrote: | Which files (System.map, vmlinux) will be used, if i have a copy of them in /boot, /, /usr/src/linux? | It will use the first System.map it finds in the sequence given above.
ok wrote: | Half a year ago, i installed a different Linux Distribution on an additional partition and this one installed his own System.map in /boot, but i was still able to boot my Gentoo... | It seems from the depmod manpage, that System.map is only used to display symbols in modules which cannot be resolved and that it is only used in concert with the "-e" argument. In modules-update, depmod is called with the "-a" argument alone so, probably, System.map isn't actually used at all.
For more on this subject, see https://bugs.gentoo.org/show_bug.cgi?id=165134 _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
ok Guru
Joined: 11 Jul 2006 Posts: 390 Location: germany
|
Posted: Sun Feb 25, 2007 12:27 am Post subject: |
|
|
thank you wynn, now it is clearer for me.
i deleted the vmlinuz and the System.map files in /boot and restarted the computer without any error message. |
|
Back to top |
|
|
taf1982 n00b
Joined: 23 Feb 2007 Posts: 21 Location: Bayonne, New Jersey, USA
|
Posted: Sun Feb 25, 2007 5:51 am Post subject: |
|
|
I did a search for System.map but it fould no file. I can't copy or delete what I don't have so I guess I'm stuck with that message during bootup. |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sun Feb 25, 2007 6:11 am Post subject: |
|
|
System.map file is to be there in /usr/src/linux/
it will be there.
else you will have run make && make modules_install
the file has name with capital S starting _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
taf1982 n00b
Joined: 23 Feb 2007 Posts: 21 Location: Bayonne, New Jersey, USA
|
Posted: Sun Feb 25, 2007 6:28 am Post subject: |
|
|
padoor wrote: | System.map file is to be there in /usr/src/linux/
it will be there.
else you will have run make && make modules_install
the file has name with capital S starting |
Edit: I checked and I don't even have a linux folder in /user/src so no System.map there. I tried to run make && make modules_install but it gave me these errors:
As root: Code: | make *** No targets specified and no makefile found. Stop. |
As user: Code: | make *** No targets specified and no makefile found. Stop.
make *** No rule to make target 'modules_install'. Stop. |
|
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Sun Feb 25, 2007 10:52 am Post subject: |
|
|
taf1982 wrote: | I checked and I don't even have a linux folder in /user/src so no System.map there. I tried to run make && make modules_install but it gave me these errors:
As root: Code: | make *** No targets specified and no makefile found. Stop. |
As user: Code: | make *** No targets specified and no makefile found. Stop.
make *** No rule to make target 'modules_install'. Stop. |
| If you have run Code: | emerge gentoo-sources | you will have something like Code: | $ ls -l /usr/src
drwxr-xr-x 19 root root 4096 Feb 25 10:44 linux-2.6.19-gentoo-r5 | /usr/src/linux is a symbolic link that packages which compile kernel modules outside the kernel tree require so that they can find the source for the running kernel.
You can add it yourself Code: | cd /usr/src
ln -s linux-2.6.19-gentoo-r5 linux | In both these examples, "linux-2.6.19-gentoo-r5" is used but it may be different in your /usr/src depending (of course) on which gentoo-sources you emerge'd.
If you have not emerge'd gentoo-sources or you are just missing the symlink then "make && make modules_install" will give the errors you have posted.
[Edit] Aah, you're probably running the kernel you got after your Networkless Install â in which case you won't have any kernel source. The only purpose of modules-update is to refresh modules.conf and modules.dep: these have been copied from the LiveCD, you haven't been able to update anything, so modules-update has no work to do and you can ignore the "FATAL: " error message. _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
taf1982 n00b
Joined: 23 Feb 2007 Posts: 21 Location: Bayonne, New Jersey, USA
|
Posted: Mon Feb 26, 2007 6:44 am Post subject: |
|
|
wynn wrote: | Aah, you're probably running the kernel you got after your Networkless Install â in which case you won't have any kernel source. The only purpose of modules-update is to refresh modules.conf and modules.dep: these have been copied from the LiveCD, you haven't been able to update anything, so modules-update has no work to do and you can ignore the "FATAL: " error message. |
You're right. I don't have any source. I can't download any either since I can't set up my dial-connection. It seems like my best (and possibly last) option to make my Gentoo useful is to get my CD-RW and DVD+-RW drives set up and working, then download everything I need on Windows, burn them onto CD-R, and then use them in Gentoo. I'm assuming that's possible. Or am I completely wrong? |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Mon Feb 26, 2007 8:55 am Post subject: |
|
|
taf1982 wrote: | wynn wrote: | Aah, you're probably running the kernel you got after your Networkless Install â in which case you won't have any kernel source. The only purpose of modules-update is to refresh modules.conf and modules.dep: these have been copied from the LiveCD, you haven't been able to update anything, so modules-update has no work to do and you can ignore the "FATAL: " error message. | You're right. I don't have any source. I can't download any either since I can't set up my dial-connection. It seems like my best (and possibly last) option to make my Gentoo useful is to get my CD-RW and DVD+-RW drives set up and working, then download everything I need on Windows, burn them onto CD-R, and then use them in Gentoo. I'm assuming that's possible. Or am I completely wrong? | I realize it takes forever for you to download anything (could you buy a CD from CheapBytes or similar?) but another option is to find a distro which does run your dialup out of the box (IRC? Googling?), install that and then use it instead of the LiveCD to continue your Gentoo installation â or, perhaps, just get dialup working on it.
Otherwise yes â the only problem is knowing "everything I need" and I can't help you there. _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
|