Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recompiling kernel for vfat fs support doesn't work!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
opo
n00b
n00b


Joined: 28 Jun 2004
Posts: 32
Location: Rome, Italy

PostPosted: Mon Jun 28, 2004 10:15 am    Post subject: Recompiling kernel for vfat fs support doesn't work! Reply with quote

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
View user's profile Send private message
jayk
n00b
n00b


Joined: 14 Jun 2004
Posts: 24
Location: Belgium

PostPosted: Mon Jun 28, 2004 10:30 am    Post subject: Reply with quote

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
Code:
make mrproper
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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Jun 28, 2004 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message
opo
n00b
n00b


Joined: 28 Jun 2004
Posts: 32
Location: Rome, Italy

PostPosted: Mon Jun 28, 2004 11:27 am    Post subject: No I didn't but... Reply with quote

shouldn't the cp command return an errormsg if it /boot wasn't mounted?

Thank U for help!
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Mon Jun 28, 2004 11:43 am    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
huw
Apprentice
Apprentice


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Mon Jun 28, 2004 1:25 pm    Post subject: Re: No I didn't but... Reply with quote

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
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Mon Jun 28, 2004 1:27 pm    Post subject: Re: No I didn't but... Reply with quote

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
View user's profile Send private message
opo
n00b
n00b


Joined: 28 Jun 2004
Posts: 32
Location: Rome, Italy

PostPosted: Mon Jun 28, 2004 2:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum