View previous topic :: View next topic |
Author |
Message |
opo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/98766363743567c07ce3e1.gif)
Joined: 28 Jun 2004 Posts: 32 Location: Rome, Italy
|
Posted: Mon Jun 28, 2004 10:15 am Post subject: Recompiling kernel for vfat fs support doesn't work! |
|
|
Hi everyone, n00b question...that's what I am by now (SIC!)
So, I've installed gentoo 2.4.25-r1 (let's say partly because I've only a system console, no desktop environment, no X windows, no net .....etc, bacause I have no idea how to make it, I still have to read a lot and not much time, and my 3C920 Embedded Ethernet it's not making it easier to get to the net....but that's another story.
The topic NOW, is that I want to see and write a Windows FAT32 partition, I really need it, but when I try to mount that partition I receive a msg saying that vfat fs is not supported by the kernel.
Ok, I said, let's do make menuconfig and select the correct fs option.
FIRST PROBLEM: I went to /usr/src/ and found 2 kernel dirs /linux and /2.4.25-gentoo-r1
FIRST QUESTION: which one to make menuconfig into? why 2 kernel dirs (one for initial installation and the other for adding options to my existing one?)
First I decided for /2.4.25-gentoo-r1, I've put my options for dos vfat (ALL) not as modules but integrated with kernel, then saved my changes and then
make dep && make bzImage modules modules_install
Indeed it took not very much time, so I thought: "good it's using my existing kernel and it has seen that there wasn't so much to recompile..."
then (following the handbook):
cp arch/i386/boot/bzImage /boot/kernel-2.4.25-gentoo-r1
cp System.map /boot/System.map-2.4.25-gentoo-r1
cp .config /boot/config-2.4.25-gentoo-r1
There wasn't anything else to change as I called the kernel the same way as before, so thet grub.conf was still calling the correct kernel (I thought).
Rebooted, but still the problem of no vfat supported!
Is anyone out there....? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jayk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/120776622440d060d98a852.png)
Joined: 14 Jun 2004 Posts: 24 Location: Belgium
|
Posted: Mon Jun 28, 2004 10:30 am Post subject: |
|
|
Hi,
The /usr/src/linux directory is just a link to the real path that is /usr/src/gento-2.4.25-gentoo-r1. The two directories are the same. That is because it is usual that the kernel sources are in /usr/src/linux.
When you recompile your kernel, you should type before compile it again because the already compiled data won't be compiled again. But be sure to save your .config file before doing this because it will be erased.
JayK _________________ JayK, student in Computing.
Adopt an unanswered post now! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Maedhros Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8825449514782674ca8d88.gif)
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon Jun 28, 2004 10:32 am Post subject: |
|
|
When you copied the new kernel to /boot, did you remember to mount it first (assuming it's a different partition)? _________________ No-one's more important than the earthworm. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
opo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/98766363743567c07ce3e1.gif)
Joined: 28 Jun 2004 Posts: 32 Location: Rome, Italy
|
Posted: Mon Jun 28, 2004 11:27 am Post subject: No I didn't but... |
|
|
shouldn't the cp command return an errormsg if it /boot wasn't mounted?
Thank U for help! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Deathwing00 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1140581890451d29047ad41.jpg)
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Mon Jun 28, 2004 11:43 am Post subject: |
|
|
Moved from Installing Gentoo. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
huw Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/26091475405a14b84d386.jpg)
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Mon Jun 28, 2004 1:25 pm Post subject: Re: No I didn't but... |
|
|
opo wrote: | shouldn't the cp command return an errormsg if it /boot wasn't mounted? |
No because you almost certainly have a directory called /boot which is where you mount the boot partition. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
meyerm Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/d9e8f8f73d32da1c4ca74.gif)
Joined: 27 Jun 2002 Posts: 1311 Location: Munich / Germany
|
Posted: Mon Jun 28, 2004 1:27 pm Post subject: Re: No I didn't but... |
|
|
opo wrote: | shouldn't the cp command return an errormsg if it /boot wasn't mounted? |
No, until you mount sth. into /boot it is just another directory on your partition. Therefore the kernel is copied to your root partition into the directory /boot and not to your boot partition (assuming you have a dedicated boot partition).
Please make a Code: |
ls -l /lib/modules/$(uname -r)/kernel/fs/vfat/
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
opo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/98766363743567c07ce3e1.gif)
Joined: 28 Jun 2004 Posts: 32 Location: Rome, Italy
|
Posted: Mon Jun 28, 2004 2:16 pm Post subject: |
|
|
Thank U everyone!
You've been all very kind and RIGHT!
I've followed every single advice and now it works! I read and write into my fat partition.
I understood the mystery(!) of the two linux dirs (one was only a link as Jayk said), I understood why cp worked without errormsg (thank U Dethwing00 and huw), I mounted /boot before copying kernel image as Maedhros suggested.
Now I only(!) have a couple of dozens more troubles to overcome but at least I know there is someone out there U will try to help me, and that makes it more comfortable to face.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|