LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not able to write to NTFS pen drive (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-write-to-ntfs-pen-drive-861276/)

clifford227 02-07-2011 06:49 PM

Not able to write to NTFS pen drive
 
Hi,

Im having a problem writing to an NTFS pendrive.

I have created the NTFS pen drive in the following way:

Code:

fdisk /dev/sda
created the label with 'o', then written the table with 'w'

I've then gone into fdisk again :
Code:

fdisk /dev/sda
started the partition creation with 'n', and chosen 1 partition '1', then written that with 'w'

I then used mkntfs to format:
Code:

mkntfs /dev/sda1
The blkid command gives me this output:
Quote:

/dev/sda1: UUID="58CEA9511D6BCEFA" TYPE="ntfs"
I can mount the pendrive (as root) with:

Code:

mount -t ntfs /dev/sda1 /mnt/pendrive
and the mount command output:

Quote:

/dev/sda1 on /mnt/pendrive type ntfs (rw)
I have changed the permissions on /mnt/pendrive (while mounted) to 777, owner/group=root

However, when I try to copy something to the drive I get this error:

Quote:

cp: cannot create regular file `/mnt/pendrive/file.txt': Permission denied
What am I missing here?

misconfiguration 02-07-2011 06:54 PM

Status of SELINUX?

Quote:

# getenforce
What is the output of /var/log/audit/audit.log?

jefro 02-07-2011 08:29 PM

Thought one would have to mount ntfs-3g to get write support??

clifford227 02-08-2011 04:33 AM

Thanks jefro,

looks like ntfs-3g is included in the stock slackware install. I'll give it a go.

John VV 02-08-2011 12:06 PM

ntfs = read only
with an exception- force write BUT the file MUST allready exist and the change can not be bigger then the 4k sector ( what is left on that 4k part)
ntfs-3g = read AND write


All times are GMT -5. The time now is 11:57 AM.