Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NTFS Kernel Issue
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
bmpw
n00b
n00b


Joined: 15 Feb 2004
Posts: 16
Location: Manchester, UK

PostPosted: Sat Jun 12, 2004 4:46 pm    Post subject: NTFS Kernel Issue Reply with quote

Hi there,

I compiled a gentoo-dev-sources 2.6.5-r1 kernel and I swear I put NTFS read support in, since all my docs and music are on NTFS and I've got no space to shufle them off and format to something more universal.
However, I tried to mount using:
Code:
mount -t ntfs /dev/hde0 /mnt/win

.. And it didn't work, saying: "fs type ntfs is not supported by kernel".

I'm something of a n00b, so could someone explain to me how to find out whether NTFS is in the kernel or not, and whether it's possible to add it as a module without recompiling the entire kernel.

Thanks,
Ben
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sat Jun 12, 2004 4:51 pm    Post subject: Reply with quote

if /proc/config.gz exists you can do
gzcat /proc/config.gz |grep NTFS
to see whats actually in the kernel
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
freelight
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 295
Location: NYC, NY, USA

PostPosted: Sat Jun 12, 2004 4:54 pm    Post subject: Reply with quote

You can chek your kernel configuration to see if reading NTFS is enabled, like so:
Code:

cd /usr/src/linux
make menuconfig

and go to File Systems->DOS/FAT/NT Filesystems to see if NTFS is enabled. If it says M next to NTFS, it's compiled as a kernel module, and you need to load it:
Code:
modprobe ntfs

To auto-load it on boot, add it to /etc/modules.autoload.d/kernel-2.6

Also, I recommend captive-ntfs for full write support. It uses Windows's native ntfs.sys file for full compatibility.
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Sat Jun 12, 2004 5:06 pm    Post subject: Reply with quote

The simpler way is to check /proc/filesystems to see whether you have ntfs support enabled. If not, then 'modprobe -l' will list your available kernel modules. If ntfs is there, then 'modprobe ntfs' and try again.
Back to top
View user's profile Send private message
bmpw
n00b
n00b


Joined: 15 Feb 2004
Posts: 16
Location: Manchester, UK

PostPosted: Sat Jun 12, 2004 5:34 pm    Post subject: Reply with quote

Thanks for the advice. Checked it through the menu config and, distressingly, it wasn't there. I'm about to have a look at that captive-ntfs thingy, but if it's not an option will I be forced to recompile?
Back to top
View user's profile Send private message
spb
Retired Dev
Retired Dev


Joined: 02 Jan 2004
Posts: 2135
Location: Cambridge, UK

PostPosted: Sat Jun 12, 2004 5:41 pm    Post subject: Reply with quote

bmpw wrote:
Thanks for the advice. Checked it through the menu config and, distressingly, it wasn't there. I'm about to have a look at that captive-ntfs thingy, but if it's not an option will I be forced to recompile?
Are you sure? It should be under 'File Systems -> DOS/FAT/NT Filesystems' in 2.6.x. Just enable it, recompile, and reboot.
Back to top
View user's profile Send private message
freelight
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 295
Location: NYC, NY, USA

PostPosted: Sat Jun 12, 2004 5:47 pm    Post subject: Reply with quote

If you don't want to reinstall the kernel (and reboot), compile ntfs as a kernel module, and load it as I showed earlier.
If you use captive-ntfs, you don't need ntfs support in the kernel.
Back to top
View user's profile Send private message
bmpw
n00b
n00b


Joined: 15 Feb 2004
Posts: 16
Location: Manchester, UK

PostPosted: Sun Jun 13, 2004 1:12 am    Post subject: Reply with quote

Thanks very much. Well, I went out so before leaving I backed up the current kernel and recompiled with NTFS. I'm not sure what I did wrong last time, maybe I didn't save the changes when prompted...

It works find now though, so thank you very much.
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