LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   accessing ntfs file system drives (https://www.linuxquestions.org/questions/linux-newbie-8/accessing-ntfs-file-system-drives-586028/)

swarnimsoni 09-20-2007 06:01 AM

accessing ntfs file system drives
 
linux is not allowing me to access NTFS partitions created in windows

brianL 09-20-2007 06:08 AM

You will need to install fuse and ntfs-3g to allow read/write on ntfs partitions. What distro are you using?

saintkay 09-20-2007 07:58 AM

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

kyodo 09-22-2007 11:09 PM

Quote:

Originally Posted by saintkay (Post 2897815)
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

Hi, I'm using Red Hat Enterprise Linux 5 but I cannot mount a NTFS partition by command: mount -t ntfs /dev/hdb5 /hd_data as you say! Could you help me please?
Best regards!

jay73 09-23-2007 12:08 AM

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.

kyodo 09-25-2007 06:30 PM

Yes, thank you, jay73! I've installed ntfsmount package and then I could mount ntfs partition in Red Hat Enterprise Linux 5.

w_barnes 10-12-2007 04:59 AM

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?

w_barnes 10-14-2007 06:10 AM

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
I use the noauto and users options coz I prefer to manually mount this partition (and allow anyone to do so); both can be dropped if automount at boot time is preferred.


All times are GMT -5. The time now is 12:56 AM.