LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ntfs on FC2 step by step PLEASE (https://www.linuxquestions.org/questions/linux-newbie-8/ntfs-on-fc2-step-by-step-please-239098/)

idissi 10-05-2004 01:18 PM

ntfs on FC2 step by step PLEASE
 
Can someone write out in plain english how to to read ntfs partitions on FC2.

I downloaded the ntfs files needed, and wrote the required lines on the fstab file but all i get is a general error message, saying the partition(s) have bad blocks, are of the wrong type, or something or other.

iZvi 10-05-2004 03:01 PM

And what is the exact message?
Probably you don´t have ntfs support in the kernel. Try ¨modprobe ntfs¨.

Demonbane 10-05-2004 03:05 PM

1. Download and install the precompiled RPM for ntfs support for your kernel version(uname -r) here:
http://linux-ntfs.sourceforge.net/rpm/fedora2.html

2. Mount it, eg: mount -t ntfs /dev/hda1 /mnt/hda1

idissi 10-05-2004 06:43 PM

this is the message I get even following the above instructions

mount: wrong fs type, bad option, bad superblock on /dev/hdc3,
or too many mounted file systems

MartinN 10-06-2004 12:17 AM

You must have the matching kernel-ntfs RPM installed, like this:
Code:

[martin@chameleon martin]$ rpm -q kernel-ntfs
kernel-ntfs-2.6.8-1.521
[martin@chameleon martin]$ uname -r
2.6.8-1.521
[martin@chameleon martin]$

You should also have a line in /etc/fstab which could look something like this:
Code:

/dev/hda3              /mnt/win                ntfs    umask=0222      0 0
and in /mnt:
Code:

[martin@chameleon martin]$ ls -l /mnt
total 16
drwxr-xr-x  2 root root 4096 Jun 23 20:24 cdrom
drwxr-xr-x  2 root root 4096 Jun 23 20:24 floppy
dr-xr-xr-x  1 root root 8192 Aug 17 16:40 win
[martin@chameleon martin]$

Do you need more help? Feel free to ask again!
Martin

idissi 10-06-2004 06:22 PM

The above didnt work, I've get the latest kernel and am downloading the laters ntfs rpm from the site. everything installs properly when i run the rpm. But whenevr I try to mount nothing.

I just noticed something though, it seems all my partitions are inside an extended drive, I don't know what that might mean, as I only know of extended drives exisisting in windows.

Is there another way to get ntfs support or, can I move some files around on my own.

Its crazy all this for a few word files basically

tuxrules 10-06-2004 07:45 PM

i'm not too comfortable with umask=0222
here's my line

/dev/hda1 /mnt/winxp ntfs auto,ro,users,umask=000 0 0

try this...it might help.

Tux,

not to mention...replace with your device blocks

idissi 10-06-2004 08:01 PM

JESUS FLIPPIN CHRIST!

I just tryed the above, and guess what...NOTHING same old general message, is there log file I can look at to get more info?

amfoster 10-06-2004 08:49 PM

I have always had to recompile the kernel to enable ntfs. I obviously have been wrong.

If you want to recompile the kernel, do these steps

cd /usr/src/linux
make mrproper
make oldconfig
make menuconfig

find the filesystems choice and click on ntfs to build it as a module. Do not select write support!
exit and save your new .config file.

now just execute
make dep clean bzImage modules modules_install install

It will take anywhere between 30 minutes to an hour

reboot and select your new kernel

make a mount point (I use /xp)
then
mount /dev/hda1 /xp
It probably won't even prompt you for the type filesystem, but if it does,
mount -t ntfs /dev/hda1 /xp

MartinN 10-06-2004 11:12 PM

:scratch:

What is the output from
/sbin/fdisk -l
(That's a lower-case L, this command requires root privileges)

If you open a second terminal window as root and issue the command
tail -f /var/log/messages
then you'll get all the error messages from syslog in that window.

Martin

idissi 10-09-2004 03:39 PM

I finally got it, by simply installing the package, and then mounting the partition w/o specifying the type basically

mount /dev/hdx /mnt/win

that was it


All times are GMT -5. The time now is 12:04 PM.