LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting NTFS (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-ntfs-77840/)

teyesahr 07-31-2003 06:57 PM

Mounting NTFS
 
I've been told by a number of sources that NTFS is supported by Linux, at least for read purposes. Yet, I got this error when I tried to mount it to my /mnt/win2k directory:

Quote:

[root@localhost mnt]# mount -t ntfs /dev/hda1 /mnt/win2k
mount: fs type ntfs not supported by kernel
Can anyone help me?

PS: How do I change the name of my computer from "localhost" to something else? Thanks.

Mathieu 07-31-2003 07:15 PM

To add NTFS support to RedHat, you need to install a RPM.
http://linux-ntfs.sourceforge.net/
Or you can recompile your Kernel and add NTFS support directly into the kernel.


To change the hostname, edit the /etc/sysconfig/network file.

teyesahr 07-31-2003 08:17 PM

YES! It's all coming together, now....

teyesahr 07-31-2003 08:27 PM

Hey, I changed the network file, but my terminal window still echoes "localhost"

levian 08-01-2003 05:40 AM

try to change your /etc/hosts also

teyesahr 08-01-2003 07:58 AM

Yes, I already figured that out :-), but thanks.

Hoops66 08-01-2003 09:16 AM

what's the fstab for auto mounting the NTFS, i had a wicked kernel panic and i had to re-install my RH9, and i didn't write down what i did. I can only see NTFS part as root in the command line... here's what i have so far... this time i am writing this down

Code:

LABEL=/              /                      ext3    defaults        1 1
LABEL=/boot        /boot                ext3    defaults        1 2
none                    /dev/pts            devpts  gid=5,mode=620  0 0
none                    /proc                proc    defaults        0 0
none                    /dev/shm          tmpfs  defaults        0 0
/dev/hda6            swap                swap    defaults        0 0
/dev/cdrom          /mnt/cdrom        udf,iso9660 noauto,kudzu,ro 0 0
/dev/fd0              /mnt/floppy        auto    noauto,owner,kudzu 0 0
/dev/hda2            /mnt/windows      auto    ?????????????????

:scratch:

Skyline 08-01-2003 09:35 AM

Hi Hoops66

Try

/dev/hda2 /mnt/windows ntfs auto,ro,umask=002 0 0

or

/dev/hda2 /mnt/windows ntfs defaults,umask=002 0 0

remember the correct spacing - there's 6 fields here all with a space between them - Field 4 is Mount options - it just uses commas between its entries.

Kasperisa 08-01-2003 09:54 AM

Quote:

Originally posted by Skyline
Hi Hoops66

Try

/dev/hda2 /mnt/windows ntfs auto,ro,umask=002 0 0

or

/dev/hda2 /mnt/windows ntfs defaults,umask=002 0 0


I tried those two commands after installing the correct RPM for NTFS support for souceforge for the correct kernel that i have. I get the message:
bash: /dev/hda2: Permission denied

ive tried using hda, hda1, and various others. The NTFS partition im looking for is the primary master harddrive, with it being only one partition. with RH9.0 being on the primary slave in its standard 3 partitions. and yes i was under root when trying it. Does anyone know what happened? what went wrong?

k, i know what when wrong, i just found out (explaining the editing of this post). i downloaded and installed the i386 rpm and i just learned that my processor is a i686... can someone please tell me how to uninstall the package i just installed please?

teyesahr 08-01-2003 10:03 AM

Doing this worked for me:

Quote:

/dev/hda1 /mnt/win2k ntfs auto,ro,umask=002 0 0
I also had to install NTFS support, as per an earlier reply in this thread.

Also, like you, my windows NTFS partition is a monolith, consuming all of my primary harddrive, with all the Linux partitions occupying the slave drive. If you have RH9 like you say, this ought to work.

PS: Not to offend you (I did this, myself, so I assume others might be as stupid), but did you remember to create the 'windows' directory in /mnt?

Kasperisa 08-01-2003 10:16 AM

Quote:

Originally posted by teyesahr
PS: Not to offend you (I did this, myself, so I assume others might be as stupid), but did you remember to create the 'windows' directory in /mnt?
I couldn't remember to create the windows directory, as I didn't have that knowledge to forget in the first place :p

my problem now is actually that i installed the wrong rpm. I installed kernel-ntfs-2.4.20-8.i386.rpm

when i should have installed kernel-ntfs-2.4.20-8.i686.rpm

So i try and install the correct one and says that it is already installed.
and then i try and uninstall the other package kernel-ntfs-2.4.20-8.i386.rpm but it says it doesn't exist. I have tried using
rpm -e kernel-ntfs-2.4.20-8.i386
but still a no go. does anyone know how to find and remove this stupid nuisance?

Hoops66 08-01-2003 12:09 PM

here is the help that i followed the 1st time i did this, it worked like a charm for me.

the umask worked... i have one question though, what is the purpose of the 0 0 switch, at the end of the line??

Hoops66 08-01-2003 12:11 PM

http://linux-ntfs.sourceforge.net/info/redhat.html

sorry 'bout that

Skyline 08-01-2003 12:41 PM

Hi Hoops66

About the last 2 fileds in a typical /etc/fstab entry:


The 5th field indicates whether the filesystem should be included in a back-up.

The 6th Field indicates how the filesystem should be checked on boot up.

Hoops66 08-01-2003 12:59 PM

...thanks


All times are GMT -5. The time now is 07:28 PM.