accessing ntfs file system drives
linux is not allowing me to access NTFS partitions created in windows
|
You will need to install fuse and ntfs-3g to allow read/write on ntfs partitions. What distro are you using?
|
usually linux distros lack write access to ntfs drives but you can mount the partion at the prompt after logging in as root.
you can pass something simillar to this at the prompt; mount -t ntfs /dev/hda1 (refering to the first primary partition on the primary master) mount -t ntfs /dev/sda1 (refering to the first scsi hdd) remember the 1st hd is a, 2nd b; 3rd is c; and last d; hope this helps |
Quote:
Best regards! |
What do you mean by accessing? Reading and/or writing? You probably need to use the proper permissions on the hd_data directory (umask,uid and gid in /etc/fstab). For a partition sda1, you would put this line in /etc/fstab:
/dev/sda1 /hd_data ntfs-3g defaults,rw,gid=500,uid=500,umask=0022 0 2 The 500 refers to RedHat/Fedora systems. Other systems assign 1000 by default to the first created user. |
Yes, thank you, jay73! I've installed ntfsmount package and then I could mount ntfs partition in Red Hat Enterprise Linux 5.
|
Hi,
I have a similar problem. I've created an LFS system and can mount my NTFS partition (hda1) using root but unprivledged users cannot read it. The kernel is configured for read-only NTFS access and I do not have any other drivers or user-space tools for NTFS. Will adding the entry to fstab as suggested by jay73 allow everyone to read the NTFS partition or only the user with UID=500 (1000 in my case)? Do I need a special driver for global read-only access? |
I figured it out.
This line added to fstab will add global, read-only access to an NTFS partition using only the kernel's ntfs driver. Code:
/dev/hda1 /media/C ntfs ro,noauto,users,nls=utf8,dmask=0222,fmask=0333 0 0 |
All times are GMT -5. The time now is 12:56 AM. |