LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2004, 12:08 AM   #1
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Rep: Reputation: 0
ntfs module question


im running WBEL3 my problem is i cant get my ntfs drive to mount

my fstab looks like this:
/dev/hdb5 /mnt/windows ntfs defaults 0 2

i have made the dir in /mnt/windows

im getting that fs type ntfs is not supported by kernel blah blah blah im seen it a few times looing in all this forums looking for the solution.....

well i rebuld my kernel so that it can support ntfs

i figured that would fix the problem...

i do a modprobe ntfs and it cant find the module, I CAN however do

insmod /lib/modules/<kernelwhatever>/kernel/fs/ntfs/ntfs.o and it will load

then i can do
mount /mnt/windows

and BAM it works

what am i doing wrong with haveing this auto load cause everytime i try to load it says ntfs not supported.....i guess my main question is how to i make this module ntfs.o load without haveing to type that in all the time

also after getting the drive mounted...i do modprobe ntfs and it still cant fidn the module

any information on what i can do with this would be greatful

Last edited by muerte42200; 12-26-2004 at 01:03 AM.
 
Old 12-26-2004, 04:35 AM   #2
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
ummm

im takeing it i either said something really stupid and no1 wants to reply or i just posted something that made no sense at all....if someone can maybe correct me as to how i was to pose the question maybe i would have gotten a response... i figured it was a simple question and i would get an answer back quickly...but i guess not...

again any help to point me to some source of information that i may use to fix this simple problem would be awsome

thanks for your time
 
Old 12-26-2004, 04:41 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Try running:
depmod -ae
And then rerunning:
modprobe ntfs

Cool
 
Old 12-26-2004, 04:46 AM   #4
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by MasterC
Try running:
depmod -ae
And then rerunning:
modprobe ntfs

Cool
omg people are alive on here

i just tried that and with no aviel

bash-2.05b# depmod -ae
bash-2.05b# modprobe ntfs
modprobe: Can't locate module ntfs

but i can still laod it with insmod as i described above
 
Old 12-26-2004, 04:49 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Alive and kickin! Well, typin, but it's about the same thing...

When you rebuilt your kernel, what steps did you take? Can you post:
uname -r

And:
ls -lh /lib/modules

Cool
 
Old 12-26-2004, 04:58 AM   #6
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
i forgot what steps i took i know it was something liek

make modules SUBDIRS=fs/ntfs
make modules_install SUBDIRS=fs/ntfs


uname 2.4.21-27.0.1.EL

kidna new to this i dont know how to post the ingfo from the session into this

but basically i have

2.4.21-15.EL
2.4.21-20.0.1.EL
2.4.21-20.0.1.ELcustom
2.4.21-27.0.1.EL which i jsut upgraded tongiht

but the ntfs.o file i can install with insmod is in the ELcustome dir im sure thats whre the prob lies i just don't knwo what to do
 
Old 12-26-2004, 05:03 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by muerte42200
i forgot what steps i took i know it was something liek

make modules SUBDIRS=fs/ntfs
make modules_install SUBDIRS=fs/ntfs


uname 2.4.21-27.0.1.EL

kidna new to this i dont know how to post the ingfo from the session into this

but basically i have

2.4.21-15.EL
2.4.21-20.0.1.EL
2.4.21-20.0.1.ELcustom
2.4.21-27.0.1.EL which i jsut upgraded tongiht

but the ntfs.o file i can install with insmod is in the ELcustome dir im sure thats whre the prob lies i just don't knwo what to do
Ok, whatever kernel source directory you were in when you ran:
make modules
make modules_install

Is where that module is living and will live. If you aren't sure which one you were in, and just went to /usr/src/linux then check out where the symlink for that directory is pointing:
ls -lh /usr/src
And it should list the directories in there and where the /usr/src/linux symlink is pointing to.

Regarding posting info:
You can copy and paste from the terminal directly. Highlight the text, then when you click on the dialogue box where you send the message, click with both your mouse buttons at the same time to paste.

Cool
 
Old 12-26-2004, 05:10 AM   #8
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
okie well i know i was in

2.4.21-20.0.1.EL
dir when i did that and i believe it made the
2.4.21-20.0.1.ELcustom dir when i rebuilt my kernel to have ntfs support and thats where i ran the made mdules

heres my other question then

can i just delte the other kernels now that im not useing those and just use

2.4.21-27.0.1.EL kernel?

and then i guess i have to rebuild it again and then make the module in the 2.4.21-27.0.1.EL dir so that it will be there
then it should work?? essentially right?
 
Old 12-26-2004, 05:15 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yes you can delete the other kernels that you aren't/won't using/use, but I'm sure there is a way to do it that is much more graceful on your system, something like uninstalling software, but with kernels.

Yes, that should work.

Cool
 
Old 12-26-2004, 05:16 AM   #10
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
lrwxrwxrwx 1 root root 22 Dec 26 01:12 linux-2.4 -> linux-2.4.2 1-27.0.1.EL
 
Old 12-26-2004, 05:19 AM   #11
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
now i forgot the command i used to get into my kernel so that i may get to fiel system and pgrade the File Systems to support ntfs you wouldnt....god i got a LOOONG road ahead of me....

if you can so kindly tell me how to do it....last time i did rebuld i kernel i was up for TOO long and i forgot to write the command down
 
Old 12-26-2004, 05:28 AM   #12
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
First,
Code:
cd /usr/src/linux-$(uname -r)
Then, run
Code:
make mrproper
Next, execute
Code:
cp /boot/config-$(uname -r) ./.config
This lets you use the current kernel config to use, as a guideline.

Then, here comes config:

Code:
make oldconfig && make menuconfig
Navigate to the filesystems, then add ntfs kernel support.
Save and exit.
Next, run:
Code:
make dep && make bzImage && make modules && make modules_install && make install
Reboot and you should see the new kernel in your boot loader.

Last edited by whipermr5; 12-26-2004 at 05:29 AM.
 
Old 12-26-2004, 05:50 AM   #13
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
thanks im doing that now im sure that will fix my problem

considering i got my fstab set up correctly which i think i do

on the kernel not the old kernels....that im NOT useing it is as simple as rmdir the old ones? will that mess anythign up?

and my fstab should look as so
Code:
dev/hdb5               /mnt/windows            ntfs    defaults        0 2
correct?

okie last thing

when it rebuilt my kernel it made a
drwxr-xr-x 3 root root 4.0K Dec 26 01:12 2.4.21-27.0.1.EL
drwxr-xr-x 4 root root 4.0K Dec 26 06:21 2.4.21-27.0.1.ELcustom

if it just made a ELcustom with my new rebuild kernel
and
ls -lh /usr/src
drwxr-xr-x 2 root root 4.0K Dec 13 2003 debug
lrwxrwxrwx 1 root root 22 Dec 26 01:12 linux-2.4 -> linux-2.4.21-27.0.1.EL
drwxr-xr-x 10 root root 4.0K Dec 26 01:12 linux-2.4.21-20.0.1.EL
drwxr-xr-x 16 root root 4.0K Dec 26 06:21 linux-2.4.21-27.0.1.EL
drwxr-xr-x 7 root root 4.0K Sep 27 19:53 redhat

is still pointing to the kernel thats not ELcustom .....gd i dont even know what im trying to explain....if my new rebuit kernel is in the ELcustom and its still pointing to 27.0.1.EL will any of the changes i just made to the kernel be affected??\


Last edited by muerte42200; 12-26-2004 at 06:28 AM.
 
Old 12-26-2004, 06:34 AM   #14
muerte42200
LQ Newbie
 
Registered: Dec 2004
Location: memphis,tn
Distribution: WBEL3
Posts: 17

Original Poster
Rep: Reputation: 0
thanx

thanks i got it working now!

i apprecite all the help!

ps. with more quesitons to come!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with ntfs Barq Linux - General 2 07-17-2005 12:34 PM
NTFS problem mcang Linux - Hardware 1 02-24-2005 05:33 PM
NTFS problem!!! septanla Linux - General 4 12-15-2004 07:09 AM
NTFS problem orions empire Linux - Enterprise 2 05-19-2004 04:11 PM
problem with NTFS demmylls Linux - General 2 12-09-2003 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration