LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-07-2006, 01:08 AM   #1
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Rep: Reputation: 15
NTFS broken w/ 2.6 kernel


I'm having trouble accessing my NTFS partition after compiling the 2.6.12 kernel. I did some searching and it seems like most solutions were that support was not included in the kernel or the /etc/fstab file was screwed up. I don't think it's either of these so I don't know what the problem is.

the NTFS partition is at /dev/hda1

from my .config:

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
# CONFIG_NTFS_RW is not set

(note CONFIG_NTFS_RW is for read and write, and since I don't trust the writing that's not what I want.)

$ more /etc/fstab
/dev/hdb2 swap swap defaults 0 0
/dev/hdb1 / reiserfs defaults 1 1
/dev/hda1 /mnt/winxp ntfs ro,umask=002 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Also I did a

$ dmesg | grep ntfs

and there was no output, I'm not sure if the kernel is supposed to print a message when it is loading the ntfs support.

Any idea's guys?
 
Old 05-07-2006, 01:19 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
You have ntfs built into the kernel so you will not see any module loading. What happens if you type this:
cat /proc/filesystems
and
mount /mnt/winxp
 
Old 05-07-2006, 01:35 AM   #3
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Original Poster
Rep: Reputation: 15
# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev binfmt_misc
nodev sockfs
nodev usbfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
reiserfs
nodev ramfs
msdos
vfat
iso9660
nodev nfs
nodev nfsd
nodev autofs
udf
nodev mqueue
nodev oprofilefs
nodev rpc_pipefs

Mount only works as root, but that's not the real problem

root@markscpu:~# mount /mnt/winxp
mount: unknown filesystem type 'ntfs'
 
Old 05-07-2006, 01:39 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
It seems you do not have ntfs support? Are you sure you are running the new kernel you just built?

uname -r
 
Old 05-07-2006, 01:47 AM   #5
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Original Poster
Rep: Reputation: 15
bash-3.00$ uname -r
2.6.16MyCustom

Which is correct, I changed the name in the makefile, and double checked the config.
 
Old 05-07-2006, 01:55 AM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Since you have ntfs built into the kernel I would try building it as a module and see if that helps.
 
Old 05-07-2006, 02:09 AM   #7
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Original Poster
Rep: Reputation: 15
Will leave compiling but for now sleep...
 
Old 05-07-2006, 02:15 AM   #8
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,156

Rep: Reputation: 234Reputation: 234Reputation: 234
I have ntfs compiled as a module but it doesn't show up in /proc/filesystems. I can mount ntfs partitions however.
 
Old 05-07-2006, 02:17 AM   #9
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I usually will not show up in /proc/filesystems untill you mount the partition. After that it loads the module then it should show up.
 
Old 05-07-2006, 03:18 AM   #10
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
ive had problems like that when i built my kernel... and simple make && make modules_install again will usually fix it. i dont know why it does that.. and i would get pissed off and fight with it over and over.. but now i just try reinstalling the kernel again.. and it usually works.
 
Old 05-07-2006, 04:06 AM   #11
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,156

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by mjl3434
bash-3.00$ uname -r
2.6.16MyCustom

Which is correct, I changed the name in the makefile, and double checked the config.
You don't have the support as a module, but just make sure that the modules got installed to the right directory under /lib. I don't know if renaming can create other problems or not. On the other hand, if you didn't have the modules accessible, you would get tons of other errors...
 
Old 05-07-2006, 08:16 AM   #12
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Original Poster
Rep: Reputation: 15
Well I would prefer to have it built into the kernel, but I built it as a module and now it works. No idea why it didnt work built in. I'm not going remake my kernel just to see if I can get it built it. Anyway that was strange...
 
Old 05-07-2006, 08:39 AM   #13
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I have seen the same thing but with reiserfs, except it didn't like being built as a module for one particular kernel. Then a couple kernels later it was OK again. So if you really want it built into your kernel then keep trying cause it might work later.
 
Old 05-08-2006, 12:10 AM   #14
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
I'm having the same thing happen with samba, only reverse. If I build it as a module I get a kernel oops when I try to interact with my win box. Building it directly into the kernel and all is well. Some strange things afoot in new kernel land...
 
  


Reply

Tags
ntfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NIS broken with kernel upgrade simeoa Linux - Networking 4 04-28-2006 08:55 AM
Slackware Broken after kernel miscompiles raven.sorrow Linux - General 3 01-09-2005 07:53 PM
Kernel update has broken SAMBA abovett SUSE / openSUSE 0 01-01-2005 08:25 AM
X seems to be broken after compiling alternate kernel BenjiF Linux - Software 3 08-23-2003 02:01 AM
X broken after recompiling kernel. raylpc Linux - General 1 08-14-2003 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08: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