-   Linux - Hardware (
-   -   NTFS file system (

ilengna 10-08-2003 06:12 AM

NTFS file system
hai all,

i can not mount my harddisk because it uses NTFS file system? how can my linux see that harddisk? pls help...

fridgehead 10-08-2003 06:16 AM

you can read ntfs drives with linux, but writing to them isnt really supported (as far as i remember, i use 2.4.19 and ntfs write support is marked as experimental in the config for the kernel).

you need to recompile the kernel with NTFS support to use it. thats where my experience ends with NTFS and linux, so hopefully someone else can take over from here :)

ilengna 10-08-2003 06:27 AM

thx man,

i'll compile my kernel first, hopefully it works...

frogman 10-08-2003 06:35 AM

Re: NTFS file system
|_ what he said, basically. What distro are you using? Some come with ntfs support already in the default kernel, with others you have to compile it in.

Basic writing to ntfs from *Nix is supported in 2.4.21, but still with a "use at own risk" caveat. There used to be a program to run after you'd written to the disk which checked / made sure you hadn't screwed it up, but I can't remember the name.

I assume (probably as root):

#mkdir /mnt/windows1
#mount /dev/hd?? /mnt/windows1
#cd /mnt/windows1
(where ?? is your ntfs disk / partition), ie hda1 etc.

doesn't work?

Popichulo 10-08-2003 01:10 PM

I can sucessfully mount my drive when using su and logging in as root at a prompt but once its mounted I cant view the files because it says Im not allowed to and they can only be viewed if I log in to linux fully as root at the login screen, and also when I try to add the command line to fstab it gives me errors and doesnt mount it at bootup.

Skyline 10-08-2003 02:07 PM


What line are you inserting in fstab?

Are you trying to mount NTFS or FAT32?

Can you post the contents of :

cat /etc/fstab

Popichulo 10-08-2003 02:17 PM

right now I am at work so I cant tell you exactley but I believe it was
/dev/hda5 /mnt/windows2 -t ntfs -r -o umask=0222

Im pretty sure thats what it was.
And whats with me not being able to view the files when logged in as myself and only as root.

Popichulo 10-08-2003 02:19 PM

this was another one I tried
/dev/hda1 /mnt/windows ntfs auto,ro,umask=0222 0 0
but when the system reboots it says that there are errors on those lines in the fstab

Electro 10-08-2003 05:32 PM

As root or su type
mount -t ntfs -o ro,umask=0222 /dev/hda1 /mnt/windows

You need to first make a directory in /mnt called windows if it is not there.

If you want to make sure your kernel supports the filesystem, type cat /proc/filesystems

If you want it automaticall be mounted every time you start up or reboot your computer. Add a line in fstab that says
/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0

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