LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-06-2002, 02:05 PM   #1
nilch
LQ Newbie
 
Registered: Sep 2002
Distribution: RH7.3
Posts: 9

Rep: Reputation: 0
no NTFS support in RH 7.3 ?


Hi
Just loaded RH 7.3 (the unofficial versionm from LinuxCentral).

Now when I try mounting the Windows partition (Win XP) to /mnt/win with the ' -t ntfs' option, I get a message that'fs ntfs is not supported in the linux kernel' .

How can I get back the support for mounting ntfs file systems so that I can access my Win XP partition ?

Thnaks in advance
Nil
 
Old 09-06-2002, 02:46 PM   #2
thanko
Member
 
Registered: Feb 2002
Location: MI
Distribution: Slackware 9.1
Posts: 83

Rep: Reputation: 15
Did you include NTFS support when you compiled the kernel? It may not be there by default.

mount -t ntfs /dev/hdb1 /mnt/windows would mount the ntfs partition located in the first partition on the second hard drive to /mnt/windows.

I'm guessing you need to recompile the kernel with NTFS support.
 
Old 09-06-2002, 03:25 PM   #3
nilch
LQ Newbie
 
Registered: Sep 2002
Distribution: RH7.3
Posts: 9

Original Poster
Rep: Reputation: 0
I just loaded the stock RH 7.3 as it came on the CD's.

How do I compile the Kernel for the NTFS support ?
Any additional files needed to do that ?
Or can I set it up at insyall time as an option ?

I am not too far advanced in Linux uptil the 'cook my own kernel' stage as yet.
so help is appreciated.

Thanks
Nil
 
Old 09-06-2002, 03:46 PM   #4
thanko
Member
 
Registered: Feb 2002
Location: MI
Distribution: Slackware 9.1
Posts: 83

Rep: Reputation: 15
whatever you have to type literally is in quotes. Otherwise a password or something where the exact moniker does not matter. Do not type the quotes though.

From a linux terminal window do:

"su" - enter your root password
"cd /usr/src/linux-2.4.18-3"
"make xconfig"
click File Systems button
scroll down to NTFS read support
select y
Click Main Menu
Click save and exit
"make dep;make clean;make bzImage"
"make modules;make modules_install"
"cp arch/i386/boot/bzImage /boot/ntfs-kernel" (actual name does not matter)
"pico /etc/grub.conf"
copy lines from title up to next title entry and paste them in at above first title entry

change the title name to something unique and in kernel=/ change to name you gave your recompiled kernel.

Example:
title Red Hat Linux (NTFS)
root (hd0,0)
kernel /ntfs-kernel ro root=/dev/hda2
initrd /initrd-2.4.18-3.image

make sure the root (hd0,0) and /dev/hda2 are the same as the other entries.

reboot linux with the new kernel.

Last edited by thanko; 09-06-2002 at 03:47 PM.
 
Old 09-06-2002, 11:33 PM   #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
Quote:
Originally posted by nilch
I just loaded the stock RH 7.3 as it came on the CD's.

How do I compile the Kernel for the NTFS support ?
Any additional files needed to do that ?
Or can I set it up at insyall time as an option ?

I am not too far advanced in Linux uptil the 'cook my own kernel' stage as yet.
so help is appreciated.

Thanks
Nil
A few things you might want to try to save you from having to recompile your kernel just yet.

Try modprobing for the NTFS module (in a terminal):
modprobe ntfs
If this returns nothing, and simply puts you back at a new bash prompt, then you have probably successfully loaded the module.
Now using the above mentioned method for mounting the drive (also in a terminal):
mkdir /mnt/winbloze
mount -t ntfs /dev/hdX /mnt/winbloze


Replacing X with the correct drive letter/number for your winbloze drive. You decipher which drive is your winbloze drive type:
fdisk -l (FDISK -L lowercase)
and look for the NTFS filesystem. The corresponding drive will be the one to mount.

Cool
 
Old 10-14-2002, 04:50 PM   #6
The_Butler_1999
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Rep: Reputation: 0
VERY VERY 3rd day in lunix but learning!


This is more than likely a very old thred however I need some help.

I followed this (below) to the letter and when I get to the

cp arch/i386/boot/bzImage /boot/ntfs-kernel
it returns

no such file or directory: arch/i386/boot/bzImage

I am running kernel 2.4.18-10 in redhat 7.3 and I still dont have ntfs support.

any ideas?



Quote:
Originally posted by thanko
whatever you have to type literally is in quotes. Otherwise a password or something where the exact moniker does not matter. Do not type the quotes though.

From a linux terminal window do:

"su" - enter your root password
"cd /usr/src/linux-2.4.18-3"
"make xconfig"
click File Systems button
scroll down to NTFS read support
select y
Click Main Menu
Click save and exit
"make dep;make clean;make bzImage"
"make modules;make modules_install"
"cp arch/i386/boot/bzImage /boot/ntfs-kernel" (actual name does not matter)
"pico /etc/grub.conf"
copy lines from title up to next title entry and paste them in at above first title entry

change the title name to something unique and in kernel=/ change to name you gave your recompiled kernel.

Example:
title Red Hat Linux (NTFS)
root (hd0,0)
kernel /ntfs-kernel ro root=/dev/hda2
initrd /initrd-2.4.18-3.image

make sure the root (hd0,0) and /dev/hda2 are the same as the other entries.

reboot linux with the new kernel.

Last edited by The_Butler_1999; 10-14-2002 at 04:55 PM.
 
Old 10-15-2002, 12:30 PM   #7
therion12
Member
 
Registered: Dec 2001
Location: chicago, IL
Distribution: Gentoo 1.4_rc1
Posts: 913

Rep: Reputation: 30
Quote:
I followed this (below) to the letter and when I get to the

cp arch/i386/boot/bzImage /boot/ntfs-kernel
it returns

no such file or directory: arch/i386/boot/bzImage

I am running kernel 2.4.18-10 in redhat 7.3 and I still dont have ntfs support.

any ideas?
When you do that you need to first be in the directory 2.4.18-10. If unsure do cd /usr/src/linux/
then
cp arch/i386/boot/bzImage /boot/ntfs-kernel

Good luck.
 
Old 10-15-2002, 02:36 PM   #8
The_Butler_1999
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Rep: Reputation: 0
root@localhost linux-2.4.18-10]# cp arch/i386/boot/bzlmage /boot/ntfs-kernel
cp: cannot stat `arch/i386/boot/bzlmage': No such file or directory


Any ideas?

 
Old 10-15-2002, 03:39 PM   #9
The_Butler_1999
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Rep: Reputation: 0
I finally got it to compile however this is what I get when I try and boot the NTFS

Filesystem type is ext2fs Partition type 0x83
kernel /ntfs-kernel ro root=/dev/hda7 hdc=ide-scsi
Error 2: Bad file or directory type


ok here is my grub.conf

timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz

title Red Hat Linux (NTFS)
root (hd0,1)
kernel /ntfs-kernel ro root=/dev/hda7 hdc=ide-scsi
initrd /initrd-2.4.18-10.img

title Red Hat Linux (2.4.18-10)
root (hd0,1)
kernel /vmlinuz-2.4.18-10 ro root=/dev/hda7 hdc=ide-scsi
initrd /initrd-2.4.18-10.img

title Red Hat Linux (2.4.18-3)
root (hd0,1)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda7 hdc=ide-scsi
initrd /initrd-2.4.18-3.img
 
Old 10-15-2002, 04:16 PM   #10
therion12
Member
 
Registered: Dec 2001
Location: chicago, IL
Distribution: Gentoo 1.4_rc1
Posts: 913

Rep: Reputation: 30
Don't quote me on this, but aren't you supposed to have /boot/vmlinuz as the kernel directory instead of just /vmlinuz for example?
 
Old 10-17-2002, 07:20 PM   #11
lonestarbacon
LQ Newbie
 
Registered: Oct 2002
Posts: 3

Rep: Reputation: 0
Re: No NTFS support in RH 7.3...

therion12 - Actually with Grub all directories are relative to the /boot directory. So /vmlinuz is what you need.

-Brian
 
Old 12-03-2002, 08:20 AM   #12
puru_09
Member
 
Registered: Jul 2002
Posts: 33

Rep: Reputation: 15
hi guys

as per your advice (by thanko) i did the same thing but this not work. everything was running perfectly buut when i restarted it give me an error at startup mounting of file system fat was failed but previously it was running fine.

i want to access the nfts partition and i did the things exactly and i lost fat partition access also.

Means no ntfs and now no fat.
And one more when i shutted down the system nmb service also failed to shutdown.

on my 40 gb of hdd i have 1 ntfs 1 fat32 and 2 ext3 partitions how can i access both the partitions from my linux

Thanks if you can help me

Puru
 
Old 12-05-2002, 07:09 AM   #13
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you know you can't write to the ntfs drive from linux without
messing it up right? mickeysoft wont release the specs for
it.
a command would be
mkdir /mnt/c
mount -t ntfs /dev/hda1 /mnt/c or
mount -t ntfs /dev/hda2 /mnt/c or others depending on the drive letter.
you've got to have ntfs and fat and vfat compiled into the currently
running kernel for that.
 
Old 12-05-2002, 09:56 PM   #14
puru_09
Member
 
Registered: Jul 2002
Posts: 33

Rep: Reputation: 15
i know how to mount the drive of local system and of network also.
"mount -t ntfs /dev/hda1 /mnt/c "

But doing this it show me a messege "unknown file system ntfs".

If you dont have ntfs support then this command wont work
 
Old 12-05-2002, 10:53 PM   #15
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
this is around the area in your kernel config where ntfs
and fat would be, under filesystems,
you know, make menuconfig
or make xconfig
from your kernel source directory.

is that what you're asking?



x <*> DOS FAT fs support x x
x x <*> MSDOS fs support x x
x x < > UMSDOS: Unix-like file system on top of standard MSDOS fs x x
x x <*> VFAT (Windows-95) fs support x x
x x < > EFS file system support (read only) (EXPERIMENTAL) x x
x x < > Compressed ROM file system support x x
x x[*] Virtual memory file system support (former shm fs) x x
x x <*> ISO 9660 CDROM file system support x x
x x[*] Microsoft Joliet CDROM extensions x x
x x [ ] Transparent decompression extension x x< > Minix fs support x x
x x < > FreeVxFS file system support (VERITAS VxFS(TM) compatible) x x
x x < > NTFS file system support (read only) x x
x x < > OS/2 HPFS file system support x x
x x[*] /proc file system support x x
x x [ ] /dev file system support (EXPERIMENTAL) x x
x x < > QNX4 file system support (read only)
 
  


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
ntfs support doralsoral Linux - Software 2 11-05-2005 11:59 PM
ntfs support mikeghet Linux - General 4 10-18-2005 11:31 AM
Ntfs support alaios Linux - General 4 10-03-2005 07:53 PM
NTFS support merlin371 Fedora 4 11-10-2004 08:32 AM
NTFS support Pieter Linux - Software 13 03-20-2002 11:53 AM

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

All times are GMT -5. The time now is 05:01 PM.

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