Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Windows share mounted on Ubuntu 10.

I've tried mounting it as smbfs & cifs. I can connect & see data on that share when I use either one.

The mount point for Samba is /backup.

If I create a file, say using vi, directly in /backup, it saves just fine.

However, if I try to create a file in /backup using mysqldump or copy a folder using cp, it fails, saying "cannot create regular file...(name of file it is trying to create)...no such file or directory."

What am I doing wrong? How come I can create files on the share with vi, but not anything else? Thank you!

P.S. I am using a user that is "root" at the time of my attempt.

share|improve this question
    
You do both tasks with root? Could you tell us your permissions on /backup ? –  wullxz May 23 '11 at 16:15
    
Yes, as root for both commands. The permission for /backup is 777, owned by root. –  djdy May 23 '11 at 21:05
add comment

1 Answer

up vote 0 down vote accepted

I am just guessing, but I would say that if you examine your fstab file, you are mounting the file system without the UTF-8 option (which is required for a ntfs-3g filesystem. If you remount with that option, then you'll probably find that writing to that share will then work. Just a guess though. It's easy to check your mount options.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.