Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have recently downloaded and installed redhat 9, and am currently trying to enable ntfs support in it, by recompiling the kernel so that ntfs support is built-in.
here's what i did:
Code:
cd /usr/src/linux-2.4
make menuconfig
here all i did was enable built-in ntfs (read only) support
Code:
make dep && make clean bzImage modules modules_install
cp /usr/src/linux-2.4/arch/i386/boot/bzImage /boot
unfortunately, my last make line gave me errors:
Code:
make[3]: *** No rule to make target `/usr/src/linux-2.4.20-8/drivers/pci/devlist.h', needed by `names.o'. Stop.
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/pci'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/pci'
make[1]: *** [_subdir_pci] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** [_dir_drivers] Error 2
and the bzImage file was not written. what am i doing wrong here?
Hmm... what gives you the idea that a file is missing?
anyway, i doubt its that, because the rh9 installer has a built-in cd-checker, which checks your cds integrity before install, and all 3 of mine passed.
If you don't have the kernel-source installed you will see:
[jimh@garfield jimh]$ rpm -q kernel-source-2.4.18-5
package kernel-source-2.4.18-5 is not installed
If the kernel source is not installed, download the source from your favorite Red Hat mirror site. You will need to be logged in as root to install the kernel source. Install the kernel source with:
rpm -ivh kernel-source-2.4.18-5.i386.rpm
If you are registered with The Red Hat Network you can also use up2date to install the kernel. This will download and then install the kernel-source for you.
up2date kernel-source
Preparing the kernel source
Login as the root user.
Change to the /usr/src/linux-2.4.18-5 directory
[root@garfield root]# cd /usr/src/linux-2.4.18-5
"make mrproper"
[root@garfield linux-2.4]# make mrproper
"make xconfig"
[root@garfield linux-2.4]# make xconfig
Load the default Red Hat kernel config that was used to compile the kernel you have installed.
Side note: Red Hat did not ship an i586 uniprocessor kernel with 7.3. If you have a uniprocessor i586 system the command above will probably return i386. Use the i386.config if it does.
You can look in /usr/src/linux-2.4.18-5/configs to see what the default kernel configs Red Hat uses to compile their kernels.
[jimh@garfield jimh]$ ll /usr/src/linux-2.4.18-5/configs
total 564
-rw-r--r-- 1 root root 39830 May 2 14:36 kernel-2.4.18-athlon.config
-rw-r--r-- 1 root root 39858 May 2 14:36 kernel-2.4.18-athlon-smp.config
-rw-r--r-- 1 root root 49146 May 2 14:36 kernel-2.4.18-i386-BOOT.config
-rw-r--r-- 1 root root 40020 May 2 14:36 kernel-2.4.18-i386.config
-rw-r--r-- 1 root root 39960 May 2 14:36 kernel-2.4.18-i386-smp.config
-rw-r--r-- 1 root root 39957 May 2 14:36 kernel-2.4.18-i586.config
-rw-r--r-- 1 root root 39897 May 2 14:36 kernel-2.4.18-i586-smp.config
-rw-r--r-- 1 root root 40021 May 2 14:36 kernel-2.4.18-i686-bigmem.config
-rw-r--r-- 1 root root 39968 May 2 14:36 kernel-2.4.18-i686.config
-rw-r--r-- 1 root root 40414 May 2 14:36 kernel-2.4.18-i686-debug.config
-rw-r--r-- 1 root root 39966 May 2 14:36 kernel-2.4.18-i686-smp.config
-rw-r--r-- 1 root root 35944 May 2 14:36 kernel-2.4.18-i686-uml.config
-rw-r--r-- 1 root root 40170 May 2 14:36 kernel-2.4.18-x86_64.config
-rw-r--r-- 1 root root 40170 May 2 14:36 kernel-2.4.18-x86_64-smp.config
In the dialog box type the full path to the config file you want to use.
Example: /usr/src/linux-2.4.18-5/configs/kernel-2.4.18-i686.config
Click "Ok" to load the config and exit the dialog box.
Click "File Systems"
Scroll down and find "NTFS filesystem support (read only)"
Click "m" to build NTFS support as a module.
Click "Main Menu"
Click "Save & Exit"
An informational dialog box will popup telling you to run "make dep"
Click "Ok"
Open the toplevel Makefile in a text editor. This would be /usr/src/linux-2.4.18-5/Makefile
Look at the first four lines in the Makefile.
Thats it. You are now ready to use the new ntfs.o module.
Accessing your NTFS partitions
You will have to create a mount point and add an entry to /etc/fstab for the NTFS partitions you want to access.
There are many different options you can use to mount the partition depending upon your needs.
If you have a single user system or don't need to give others access to the partition, you can use this.
Replace "xxx" on uid and gid with your userid and group id.
user = Allow an ordinary user to mount, but only the user who mounted it can unmount the drive.
uid = sets owner for the partition and the files on it.
gid = sets group for the partition and the files on it.
umask = sets the permissions on the partition.
The above mount options will not be correct for all situations. This is just an example.
For more information you should read the manpage for the "mount" command. This manpage explains the mount options available for the NTFS and other filesystems.
thanks for the quick reply! i'll try to work through those directions later on this week... gentoo is excellent, but I can't seem to get it working correctly on this pc that i am messing with. so i figured redhat had the most support availiable online.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.