2009-10-21 07:19:47     NTFS Module: Permission denied

2009-10-21 07:19:47     NTFS Module: Permission denied

Jayakumar Ananthakrishnan (INDIA)

Message: 81528   

Hi,

I have enabled NTFS as module and also selected write support for NTFS.

When I mount a pen-drive in NTFS format, I am able to do the read operation but when I try to do write operations I get "permission denied"

Using 2009RC1.

Anyone please help.

Thanks in advance,

Jai

QuoteReplyEditDelete

2009-10-21 07:27:27     Re: NTFS Module: Permission denied

Jayakumar Ananthakrishnan (INDIA)

Message: 81529   

When the device enumerated, device property displayed “write protection off”. But still I am not able to do any write operation

-jai

QuoteReplyEditDelete

2009-10-21 15:19:31     Re: NTFS Module: Permission denied

Mike Frysinger (UNITED STATES)

Message: 81537   

so run `mount` and make sure the partition has actually been mounted read/write

also by default, things are only accessible by root

QuoteReplyEditDelete

2009-10-22 00:31:04     Re: NTFS Module: Permission denied

Jayakumar Ananthakrishnan (INDIA)

Message: 81545   

Mike,

I am facing the issue only after mounting with root permission. Please find below the log of drive enumeration, mounting steps and when I try to copy a file existing in root prompt to the mounted drive I am getting "permission denied"

[Thu Oct 22 09:49:09 2009] root: />

[Thu Oct 22 09:49:09 2009] root: /> usb 1-1: new high speed USB device using r8a66597_hcd and address 4

[Thu Oct 22 09:49:13 2009] usb 1-1: configuration #1 chosen from 1 choice

[Thu Oct 22 09:49:13 2009] scsi2 : SCSI emulation for USB Mass Storage devices

[Thu Oct 22 09:49:13 2009] usb 1-1: New USB device found, idVendor=054c, idProduct=0243

[Thu Oct 22 09:49:13 2009] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[Thu Oct 22 09:49:13 2009] usb 1-1: Product: Storage Media

[Thu Oct 22 09:49:13 2009] usb 1-1: Manufacturer: Sony

[Thu Oct 22 09:49:13 2009] usb 1-1: SerialNumber: 2A0902180018234

[Thu Oct 22 09:49:18 2009] usb 1-1: address 4, EndpointAddress 0x02 use DMA FIFO

[Thu Oct 22 09:49:18 2009] usb 1-1: address 4, EndpointAddress 0x81 use DMA FIFO

[Thu Oct 22 09:49:18 2009] scsi 2:0:0:0: Direct-Access     Sony     Storage Media    1.00 PQ: 0 ANSI: 2

[Thu Oct 22 09:49:18 2009] sd 2:0:0:0: [sda] 3917824 512-byte hardware sectors: (2.00 GB/1.86 GiB)

[Thu Oct 22 09:49:18 2009] sd 2:0:0:0: [sda] Write Protect is off

[Thu Oct 22 09:49:18 2009] sd 2:0:0:0: [sda] Assuming drive cache: write through

[Thu Oct 22 09:49:18 2009] sd 2:0:0:0: [sda] 3917824 512-byte hardware sectors: (2.00 GB/1.86 GiB)

[Thu Oct 22 09:49:18 2009] sd 2:0:0:0: [sda] Write Protect is off

[Thu Oct 22 09:49:18 2009] sd 2:0:0:0: [sda] Assuming drive cache: write through

[Thu Oct 22 09:49:18 2009]  sda: sda1

[Thu Oct 22 09:49:19 2009] sd 2:0:0:0: [sda] Attached SCSI removable disk

[Thu Oct 22 09:49:22 2009]

[Thu Oct 22 09:49:22 2009] root: /> mkdir mnt/USB

[Thu Oct 22 09:49:26 2009] root: /> chmod 777 -R mnt/USB/

[Thu Oct 22 09:49:30 2009] root: /> mount -t ntfs dev/sda1 mnt/USB/ -o rw,dmask=0,fmask=0

[Thu Oct 22 09:49:49 2009] NTFS volume version 3.1.

[Thu Oct 22 09:49:52 2009] root: /> cd mnt/USB/

[Thu Oct 22 09:49:56 2009] root:/mnt/USB> ls

[Thu Oct 22 09:49:57 2009] 01 Star Wars.wma     02 Hopper Dance.wma  03 Zug-Szene.wma

[Thu Oct 22 09:50:45 2009] root:/mnt/USB> cp /test.txt ./

[Thu Oct 22 09:50:54 2009] cp: cannot create './test.txt': Permission denied

[Thu Oct 22 09:50:54 2009] root:/mnt/USB> cd /

[Thu Oct 22 09:51:09 2009] root: /> umount mnt/USB/

[Thu Oct 22 09:51:12 2009] root: />

-jai

QuoteReplyEditDelete

2009-10-22 00:37:19     Re: NTFS Module: Permission denied

Mike Frysinger (UNITED STATES)

Message: 81546   

please read the documentation:

      The only supported operation is overwriting existing files, without

      changing the file length.  No file or directory creation, deletion or

      renaming is possible.  Note only non-resident files can be written to

      so you may find that some very small files (<500 bytes or so) cannot

      be written to.

QuoteReplyEditDelete

2009-10-22 01:48:01     Re: NTFS Module: Permission denied

Jayakumar Ananthakrishnan (INDIA)

Message: 81548   

Thanks Mike.

If you don't mind could you please provide the link for this document. I tried to browse for the document related to mounting a drive using NTFS filesystem, but my search didn't help.

QuoteReplyEditDelete

2009-10-22 01:52:24     Re: NTFS Module: Permission denied

Mike Frysinger (UNITED STATES)

Message: 81549   

it's in the kernel help for the write option you enabled

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.