1828716 Members
2511 Online
109984 Solutions
New Discussion

NTFS mount problem

 
satish_40
Occasional Advisor

NTFS mount problem

when i mount an Ntfs drive from an ordinary user login and when i try to access the drive it says permission denied. plz help me in resolving this problem.


Satish
14 REPLIES 14
Gopi Sekar
Honored Contributor

Re: NTFS mount problem


first of all you can not mount any drive as normal user unless you are calling the mount program using 'sudo'.

but i believe you should be able to see the files atleast (not sure about modification) if the user has directory listing and reading permission set for the mount point.

eg: if you have mounted ntfs partition on /mnt/ntfs then /mnt/ntfs directory should have permission like 'rwxr-xr-x'. For this you should run 'chmod 755 /mnt/ntfs' as root user

Hope this helps,
Gopi
Never Never Never Giveup
Ivan Ferreira
Honored Contributor

Re: NTFS mount problem

Remember that NFS is mounted read only.

Try using the umask mount option:

mount -t ntfs -o umask=000 /dev/device /mount_point
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
satish_40
Occasional Advisor

Re: NTFS mount problem

Thanks gopi

Being a normal user iam to mount because i added the following line in /etc/fstab

/dev/hda /home/satish/mnt/d ntfs rw,auto,user,sync 0 0


with u'r command iam able to give permission to the folder d but not to the files in that folder

satish
Gopi Sekar
Honored Contributor

Re: NTFS mount problem

if you want to give this permission across everyother file on the folder (recursively) then do this:

Go to the mount point of the ntfs
eg: cd /mnt/ntfs
then run,
chmod -r 755 *

-r option will recursively set the 755 option to every other file and directories(and its contents and their contents...) use this option carefully because you are playing with another filesystem

Regards,
Gopi
Never Never Never Giveup
Ivan Ferreira
Honored Contributor

Re: NTFS mount problem

Permissions can't be established to nfs filesystems. Use the umask=000 in your fstab options.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jack Baruth_1
New Member

Re: NTFS mount problem

Satish,

Your version of Linux may not support read-write operation of NTFS partitions. Try removing the rw and seeing what happens. It could be that the mount is failing.

And just to make sure, we are talking about NTFS (a Windows NT, 2000, or XP partition) as opposed to NFS (Network File System), right?
Replaces my unrecoverable 2001 profile.
Arunvijai_4
Honored Contributor

Re: NTFS mount problem

Download and install latest NTFS driver from http://linux-ntfs.sourceforge.net/downloads.html
for your kernel.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
satish_40
Occasional Advisor

Re: NTFS mount problem


Thanks Ferreira

The solution which u gave worked for me.I added the umask=000 in the fstab options it worked. Thanks a lot

Satish
satish_40
Occasional Advisor

Re: NTFS mount problem

Hi,


can plz any help me in knowing what is umask and how does it work

Satish
Gopi Sekar
Honored Contributor

Re: NTFS mount problem


umask is used to define what is the default permission to be set when a new directory or file is created by the user.

umask values can generally be set by the administrator in /etc/profile so that it applies to all the users who logs on to the system. Default umask values for files in Linux is 644 which means read/write for user, read only for group and others.

umask in mount command (/etc/fstab) defines what is the default permission to be used for file system where the unix style permission can not be used (eg: ntfs)

Hope this helps,
Gopi

Never Never Never Giveup
satish_40
Occasional Advisor

Re: NTFS mount problem

Thanks Gopi for helping me in knowing me about umask

satish
satish_40
Occasional Advisor

Re: NTFS mount problem

I have a 40 gb hard disk having windows XP.can i make an image of that entire hard disk and copy that image to 80gb hard disk. please some body help me regarding this issue.
Ivan Ferreira
Honored Contributor

Re: NTFS mount problem

You can use a tool like ghost.

I used to copy disks using a 3rd Windows installation. Let's call this installation Windows 3

So, I put disk (40) and disk 2 (80) as slave in Windows 3. Then I use xcopy to copy all files from disk to disk.

After that, you need to use the fixboot and fixmbr command from the recovery console to boot the new disk.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Bharat Katkar
Honored Contributor

Re: NTFS mount problem

Hi satish
we would appreciate if you can validate or award the replies with points to know which one resolved your problem. Being new to the forum you may like to know the point assignment theroy.

Regards,
You need to know a lot to actually know how little you know