LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2011, 07:49 PM   #1
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Rep: Reputation: 64
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?

Last edited by clifford227; 02-07-2011 at 07:53 PM.
 
Old 02-07-2011, 07:54 PM   #2
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
Status of SELINUX?

Quote:
# getenforce
What is the output of /var/log/audit/audit.log?
 
Old 02-07-2011, 09:29 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Thought one would have to mount ntfs-3g to get write support??
 
Old 02-08-2011, 05:33 AM   #4
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Original Poster
Rep: Reputation: 64
Thanks jefro,

looks like ntfs-3g is included in the stock slackware install. I'll give it a go.
 
Old 02-08-2011, 01:06 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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

Last edited by John VV; 02-08-2011 at 01:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pen Drive : write protected is off lincoln.runwal Linux - Newbie 1 05-07-2009 11:13 AM
how to remove write protection from pen drive in linux sanatkrtiwari86 Linux - Newbie 3 03-04-2009 01:48 PM
read & write USB pen drive?? wrangler Linux - Newbie 5 03-08-2005 04:11 PM
usb pen drive, it wont let me write to it Mandrake 10 Whiskers Mandriva 9 08-22-2004 03:15 PM
usb pen drive - only root can write? BrianK Linux - Newbie 3 01-29-2004 01:50 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration