Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Viewing Nfts Files In Linux
Skawaii
post Dec 4 2003, 11:22 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 4-December 03
Member No.: 1,911



i'm sure that this question has already been asked and entered, but i still need help with it.

i have 2 hard drives. one has windows xp pro and the other redhart linux 9.0.

i am very new to linux and would like to know how to configure linux so that i can see the files on the NFTS drive. i don't even know where to start, so any help would be greatly appreciated. thanks.
Go to the top of the page
 
+Quote Post
frodo44
post Dec 5 2003, 12:04 AM
Post #2


./configure
***

Group: Members
Posts: 95
Joined: 2-December 02
Member No.: 213



NTFS support is still in the 'diamond in the rough' stages as it is. Very rough. In order to be able to view NTFS partitions, you're most likely going to have to recompile your kernel, which can be quite a job... I don't really feel comfortable doing it and I've been using linux for about two years now. But, since you're running redhat, you might be able to download a kernel rpm with ntfs support built into it. But you should know that as for the present, you can only read files on NTFS partitions. There are *very* experimental kernel options out there to write, but it is considered volatile and only suitable for testing (I think... one of the forum admins would be the one's to know a whole lot about this). Anyway, take a look around Redhat's site or a third party rpm distributor to find a ntfs supporting kernel. Hope I helped

Regards,
Eric


--------------------
Windows XP; Debian 3.0r2 (Woody)
---
Shuttle AK32 Mobo w/ Athlon XP 1700+ @ 266 FSB
GeForce 4 mx440 64mb
Turtle Beach Santa Cruz 5.1 Surround Sound
256 MB DDRAM
Seagate 80gb, Western Digital 40gb
---
weezle@charter.net
Go to the top of the page
 
+Quote Post
hughesjr
post Dec 5 2003, 10:31 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



RedHat doesn't turn on the ability to read NTFS partitions in it's kernel.

You can recompile your kernel to turn on NTFS read support.

If you update your redhat install (I highly recommend that you do...) you can download the lastest rh9 rpm files you need below. If you don't have the latest kernel (2.4.20-24.9) I recommend you get it via up2date.

The links I provided are for the latest Kernel-Source (right now 2.4.20-24.9). To see if you already have the required rpm's installed to recompile your kernel:

rpm -q gcc gcc-c++ make kernel-source

If the results look like this:

gcc-3.2.2-5
gcc-c++-3.2.2-5
make-3.79.1-17
kernel-source-2.4.20-24.9


Then you don't need to install/update any packages ... if anything is missing (or a lower version), you can download the rpms below (save them in a seperate directory):


gcc (here)
gcc-c++ (here)
make (here)
kernel-source (here)

now install them like this (only download and put the filenames for rpm's that are not already installed):

rpm -Uvh gcc-3.2.2-5.i386.rpm gcc-c++-3.2.2-5.i386.rpm make-3.79.1-17.i386.rpm kernel-source-2.4.20-24.9.i386.rpm

(the above command is all one line)
-------------------------
Now you are ready to try and recompile the kernel....do the following steps (each step requires the one before it, so if step one end with you in the /usr/src/linux-2.4.20-24.9 directory ... step 2 begins with you in that directory...):
------------------------
1. Clean the kernel from previous install/compile attempts:
cd /usr/src/linux-2.4.20-24.9[b]
[b]make mrproper


2. Copy the file /boot/config-2.4.20-24.9 to the linux-2.4.20-24.9 directory (it is the current configuration):
cp /boot/config-2.4.20-24.9 .config
[b]make oldconfig


3. Configure the kernel so that it will read an NTFS file system ... DO NOT TURN ON NTFS WRITE ... it will screw up your XP partition (you have been warned laugh.gif ):
make menuconfig

(move around inside the menu with arrows, use the spacebar or enter to go into sub menus and select items)

You specifically want to go to:

File systems --->

and then move to (with the arrow keys):

< > NTFS file system support (read only)

and press the space bar until it says:

<M> NTFS file system support (read only)

4. Make all dependancies:
make dep

5. Make the kernel image:
make bzImage

6. Make the modules
make modules

7. Install the modules
make modules_install

8. Figure out your new Kernel's name
The new kernel will need to be named 2.4.20-24.9 or 2.4.20-24.9custom ... to find out which one, issue the following command:

ls -al /lib/modules

If you see 2.4.20-24.9 and 2.4.20-24.9custom we will use 2.4.20-24.9custom; otherwise we will use 2.4.20-24.9. Make sure the date is correct on the directory.

9. Copy the bzImage to the /boot directory:

cp /usr/src/linux-2.4.20-24.9/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20-24.9custom

OR

cp /usr/src/linux-2.4.20-24.9/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20-24.9

(depending on which name we picked in step 8)

10. Copy the current initrd to a new initrd

ls /boot/init*

pick the closest version and copy it to match the vmlinuz- name we used

in my case it was

cp /boot/initrd-2.4.20-24.9.img /boot/initrd-2.4.20-24.9custom.img

11. Edit the file /boot/grub/grub.conf and add the new kernel as a selection

gedit /boot/grub/grub.conf

You will see a scetion that looks similar to this:
CODE
title Red Hat Linux (2.4.20-24.9)
    root (hd0,0)
    kernel /vmlinuz-2.4.20-24.9 ro root=LABEL=/
    initrd /initrd-2.4.20-24.9.img


Copy that whole section, paste it under the firest section and edit it to your new kernel and initrd names ... mine now looks like this:
CODE
title Red Hat Linux (2.4.20-24.9)
    root (hd0,0)
    kernel /vmlinuz-2.4.20-24.9 ro root=LABEL=/
    initrd /initrd-2.4.20-24.9.img

title Red Hat Linux (NTFS)
    root (hd0,0)
    kernel /vmlinuz-2.4.20-24.9custom ro root=LABEL=/
    initrd /initrd-2.4.20-24.9custom.img


Save the file.

12. Reboot and select your new kernel ... if it boots you should be able to mount NTFS partitions.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Joey
post Dec 5 2003, 10:51 AM
Post #4


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



Or you can just install the RPMs - details at http://linux-ntfs.sourceforge.net/
Go to the top of the page
 
+Quote Post
hughesjr
post Dec 5 2003, 11:26 AM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Specifically, the rpm's are here:

http://linux-ntfs.sourceforge.net/rpm/index.html

I havn't used them ... I don't know how well they work.

(Thanks Joey ... that will be just a tad bit easier wink.gif )


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Joey
post Dec 5 2003, 11:49 AM
Post #6


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



They work great, I used to use them when I dual booted. The only problem is if RedHat releases a new kernel RPM it normally takes the guys at linux ntfs a few days to release updated RPM packages. Not really a big deal though.
Go to the top of the page
 
+Quote Post
Skawaii
post Dec 8 2003, 07:48 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 4-December 03
Member No.: 1,911



just wanted to say thanks to you guys for the info. it really helped me out. i was able to install the new rpm and mount my ntfs drive. thanks again.
Go to the top of the page
 
+Quote Post
Joey
post Dec 8 2003, 09:28 PM
Post #8


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



You're very welcome, glad we could help smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 05:18 AM