NTFS drive mounted in Linux

shud

Golden Member
Mar 24, 2003
1,200
0
0
Ok, I need some help with this. Somewhere between my mount line and SMB perms (although I doubt it's a SMB problem), my Windows user "Shud" (without quotes obviously) can't write files to this particular drive, though I can see it and browse it.

Here's the mount line in fstab:

/dev/hdb1 /mnt/mp3 ntfs users,owner,rw,umask=0777

I don't quite understand the umask stuff yet, but a friend of mine told me that basically the first # sets no sticky and the other 3 enable read, write, and execute.

Yet I still get permissions denied errors from Windows when I try to copy a file over. Why is this?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
umask is wrong, unless you wan tto remove all permissions from files you write.

Read the manpage for fstab, it probably has a way to set the user or something.
 

shud

Golden Member
Mar 24, 2003
1,200
0
0
fstab and manpage for mount aren't that informative.

So I don't need the umask at all?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: shud
fstab and manpage for mount aren't that informative.

So I don't need the umask at all?

The manpages are quite informative. Try the uid option.

You probably don't need umount.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
If it's a local NTFS drive you won't get write permission no matter what you do, it's disabled in the driver because it's not safe. You could try the Captive NTFS driver which uses the MS NTFS.sys driver for the writing, but I wouldn't trust it myself.
 

shud

Golden Member
Mar 24, 2003
1,200
0
0
Originally posted by: Nothinman
If it's a local NTFS drive you won't get write permission no matter what you do, it's disabled in the driver because it's not safe. You could try the Captive NTFS driver which uses the MS NTFS.sys driver for the writing, but I wouldn't trust it myself.

It's a network drive. It's mounted in the Linux box but that box will never do any writing itself...all of that will come from a Windows XP machine connecting to the drive as a share.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
So you have the box physically in the Linux box and you want to mount it and share it via Samba so that Windows machines can write to it? Still wont' work. If you want the Windows clients to be able to write to the drive Linux has to be able to write to the drive because it'll be doing all of the writing on their behalf. The local filesystem is irrelevant when network clients are involved, they only see a SMB/CIFS share regardless of filesystem. If the local filesystem mattered you wouldn't be able to get to half of the web servers in the world because they run some form of unix and Windows has no drivers for ext3, XFS, ufs, ffs, etc filesystems.
 

shud

Golden Member
Mar 24, 2003
1,200
0
0
Originally posted by: Nothinman
So you have the box physically in the Linux box and you want to mount it and share it via Samba so that Windows machines can write to it? Still wont' work. If you want the Windows clients to be able to write to the drive Linux has to be able to write to the drive because it'll be doing all of the writing on their behalf. The local filesystem is irrelevant when network clients are involved, they only see a SMB/CIFS share regardless of filesystem. If the local filesystem mattered you wouldn't be able to get to half of the web servers in the world because they run some form of unix and Windows has no drivers for ext3, XFS, ufs, ffs, etc filesystems.

Alright, thanks. Looks like I won't be installing MythTV anytime soon. :(
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
really, why use NTFS on that? If you need, you could use ext2/3 and load the Ext driver into windows if you had to recover data from the drives.
 

shud

Golden Member
Mar 24, 2003
1,200
0
0
Originally posted by: nweaver
really, why use NTFS on that? If you need, you could use ext2/3 and load the Ext driver into windows if you had to recover data from the drives.

The drives I want to mount are both nearly full and total more than 400gb. One of them is full of high quality MP3 rips that I've done from CDs that I don't have access to (either didn't belong to me or I left at my parent's house).

The other is full of TV episodes and whatnot. All of this stuff would take ages to burn to DVD and backup.