FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sat May 15, 2021 04:51



Post new topic Reply to topic  [ 2 posts ] 
【Read Only】Mount SD card, the foler is ready only 
Author Message

Joined: Wed Jul 03, 2013 05:25
Posts: 1
Post 【Read Only】Mount SD card, the foler is ready only
【kernel】 Linux 2.6.36
【ntfs】ntfs-3g_ntfsprogs-2013.1.13
【SD】SONY MICRO SDHC 16G, formatted with NTFS.
【Description】I cross compile the ntfs tool with gcc 4.3.3(mipsel-linux-uclibc-gcc) and download ntfs-3g in the board(MTK 7260A),and then plug the SD card, and it can be mounted, but when I enter the mounted folder and create a file it note:cannot create. I inter mount cmd, it shows:
# mount
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /tmp type ramfs (rw,relatime)
none on /var type ramfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/tmp/dev/mmcblk0p1 on /tmp/disk/volume17 type fuseblk (ro,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) *The USB, it can be written*/
/tmp/dev/sda1 on /tmp/disk/volume1 type fuseblk (rw,noatime,user_id=0,group_id=0,allow_other,blksize=4096) /*The SD, read only*/


and the log is :
ntfs_attr_map_runlist(): Entering for inode 0x5, attr 0xa0, vcn 0x0.
ntfs_attr_lookup(): Entering for attribute type 0xa0
ntfs_attr_find(): attribute type 0xa0.
ntfs_mapping_pairs_decompress(): Entering
ntfs_mapping_pairs_decompress_i(): Entering for attr 0xa0.
Mapping pairs array successfully decompressed:
NTFS-fs DEBUG: Dumping runlist (values in hex):
VCN LCN Run length
0 44 1
1 LCN_ENOENT 0 (runlist end)
ntfs_attr_pread_i(): Reading 4096 bytes from vcn 0, lcn 44, ofs 0.
ntfs_pread(): pos 180224, count 4096
ntfs_mst_post_read_fixup_warn(): Entering
Entry not found.
Couldn't find file 'hiberfil.sys'.
ntfs_inode_real_close(): Entering for inode 5
ntfs_inode_real_open(): Entering for inode 2
ntfs_mft_record_read(): Entering for inode 2
ntfs_mft_records_read(): inode 2
ntfs_attr_mst_pread(): Entering for inode 0x0, attr type 0x80, pos 0x800.
ntfs_attr_pread(): Entering for inode 0 attr 0x80 pos 2048 count 1024
ntfs_attr_find_vcn(): Entering for inode 0x0, attr 0x80, vcn 0
ntfs_attr_pread_i(): Reading 1024 bytes from vcn 0, lcn 786432, ofs 2048.
ntfs_pread(): pos 3221227520, count 1024
ntfs_mst_post_read_fixup_warn(): Entering
ntfs_attr_lookup(): Entering for attribute type 0x10
ntfs_attr_find(): attribute type 0x10.
ntfs_attr_lookup(): Entering for attribute type 0x20
ntfs_attr_find(): attribute type 0x20.
ntfs_attr_lookup(): Entering for attribute type 0x80
ntfs_attr_find(): attribute type 0x80.
ntfs_attr_open(): Entering for inode 2, attr 0x80.
ntfs_attr_lookup(): Entering for attribute type 0x80
ntfs_attr_find(): attribute type 0x80.
ntfs_check_logfile(): Entering.
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 0 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 0
ntfs_attr_map_runlist(): Entering for inode 0x2, attr 0x80, vcn 0x0.
ntfs_attr_lookup(): Entering for attribute type 0x80
ntfs_attr_find(): attribute type 0x80.
ntfs_mapping_pairs_decompress(): Entering
ntfs_mapping_pairs_decompress_i(): Entering for attr 0x80.
Mapping pairs array successfully decompressed:
NTFS-fs DEBUG: Dumping runlist (values in hex):
VCN LCN Run length
0 753542 16384
16384 LCN_ENOENT 0 (runlist end)
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 0.
ntfs_pread(): pos 3086508032, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 512 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 0
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 512.
ntfs_pread(): pos 3086508544, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 1024 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 0
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 1024.
ntfs_pread(): pos 3086509056, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 2048 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 0
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 2048.
ntfs_pread(): pos 3086510080, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 4096 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 1
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 4096.
ntfs_pread(): pos 3086512128, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 8192 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 2
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 8192.
ntfs_pread(): pos 3086516224, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 16384 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 4
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 16384.
ntfs_pread(): pos 3086524416, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 32768 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 8
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 32768.
ntfs_pread(): pos 3086540800, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 65536 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 10
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 65536.
ntfs_pread(): pos 3086573568, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 131072 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 20
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 131072.
ntfs_pread(): pos 3086639104, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 262144 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 40
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 262144.
ntfs_pread(): pos 3086770176, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 524288 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 80
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 524288.
ntfs_pread(): pos 3087032320, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 1048576 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 100
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 1048576.
ntfs_pread(): pos 3087556608, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 2097152 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 200
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 2097152.
ntfs_pread(): pos 3088605184, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 4194304 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 400
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 4194304.
ntfs_pread(): pos 3090702336, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 8388608 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 800
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 8388608.
ntfs_pread(): pos 3094896640, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 16777216 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 1000
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 16777216.
ntfs_pread(): pos 3103285248, count 512
ntfs_attr_pread(): Entering for inode 2 attr 0x80 pos 33554432 count 512
ntfs_attr_find_vcn(): Entering for inode 0x2, attr 0x80, vcn 2000
ntfs_attr_pread_i(): Reading 512 bytes from vcn 0, lcn 753542, ofs 33554432.
ntfs_pread(): pos 3120062464, count 512
ntfs_check_logfile(): Done. ($LogFile is empty.)
ntfs_is_logfile_clean(): Entering.
ntfs_is_logfile_clean(): $LogFile is empty
ntfs_inode_real_close(): Entering for inode 2
Loading root directory
ntfs_inode_real_open(): Entering for inode 5
ntfs_mft_record_read(): Entering for inode 5
ntfs_mft_records_read(): inode 5
ntfs_attr_mst_pread(): Entering for inode 0x0, attr type 0x80, pos 0x1400.
ntfs_attr_pread(): Entering for inode 0 attr 0x80 pos 5120 count 1024
ntfs_attr_find_vcn(): Entering for inode 0x0, attr 0x80, vcn 1
ntfs_attr_pread_i(): Reading 1024 bytes from vcn 0, lcn 786432, ofs 5120.
ntfs_pread(): pos 3221230592, count 1024
ntfs_mst_post_read_fixup_warn(): Entering
ntfs_attr_lookup(): Entering for attribute type 0x10
ntfs_attr_find(): attribute type 0x10.
ntfs_attr_lookup(): Entering for attribute type 0x20
ntfs_attr_find(): attribute type 0x20.
ntfs_attr_lookup(): Entering for attribute type 0x80
ntfs_attr_find(): attribute type 0x80.
ntfs_attr_open(): Entering for inode 5, attr 0x100.
ntfs_attr_lookup(): Entering for attribute type 0x100
ntfs_attr_find(): attribute type 0x100.
ntfs_inode_real_close(): Entering for inode 5
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 0 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 0
ntfs_attr_map_runlist(): Entering for inode 0x6, attr 0x80, vcn 0x0.
ntfs_attr_lookup(): Entering for attribute type 0x80
ntfs_attr_find(): attribute type 0x80.
ntfs_mapping_pairs_decompress(): Entering
ntfs_mapping_pairs_decompress_i(): Entering for attr 0x80.
Mapping pairs array successfully decompressed:
NTFS-fs DEBUG: Dumping runlist (values in hex):
VCN LCN Run length
0 786310 120
120 LCN_ENOENT 0 (runlist end)
ntfs_attr_pread_i(): Reading 65536 bytes from vcn 0, lcn 786310, ofs 0.
ntfs_pread(): pos 3220725760, count 65536
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 65536 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 10
ntfs_attr_pread_i(): Reading 65536 bytes from vcn 0, lcn 786310, ofs 65536.
ntfs_pread(): pos 3220791296, count 65536
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 131072 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 20
ntfs_attr_pread_i(): Reading 65536 bytes from vcn 0, lcn 786310, ofs 131072.
ntfs_pread(): pos 3220856832, count 65536
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 196608 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 30
ntfs_attr_pread_i(): Reading 65536 bytes from vcn 0, lcn 786310, ofs 196608.
ntfs_pread(): pos 3220922368, count 65536
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 262144 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 40
ntfs_attr_pread_i(): Reading 65536 bytes from vcn 0, lcn 786310, ofs 262144.
ntfs_pread(): pos 3220987904, count 65536
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 327680 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 50
ntfs_attr_pread_i(): Reading 65536 bytes from vcn 0, lcn 786310, ofs 327680.
ntfs_pread(): pos 3221053440, count 65536
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 393216 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 60
ntfs_attr_pread_i(): Reading 65536 bytes from vcn 0, lcn 786310, ofs 393216.
ntfs_pread(): pos 3221118976, count 65536
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 458752 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x6, attr 0x80, vcn 70
ntfs_attr_pread_i(): Reading 29696 bytes from vcn 0, lcn 786310, ofs 458752.
ntfs_pread(): pos 3221184512, count 29696
ntfs_attr_pread(): Entering for inode 6 attr 0x80 pos 488448 count 65536
ntfs_attr_pread(): Entering for inode 0 attr 0xb0 pos 0 count 65536
ntfs_attr_find_vcn(): Entering for inode 0x0, attr 0xb0, vcn 0
ntfs_attr_map_runlist(): Entering for inode 0x0, attr 0xb0, vcn 0x0.
ntfs_attr_lookup(): Entering for attribute type 0xb0
ntfs_attr_find(): attribute type 0xb0.
ntfs_mapping_pairs_decompress(): Entering
ntfs_mapping_pairs_decompress_i(): Entering for attr 0xb0.
Mapping pairs array successfully decompressed:
NTFS-fs DEBUG: Dumping runlist (values in hex):
VCN LCN Run length
0 786431 1
1 786430 1
2 LCN_ENOENT 0 (runlist end)
ntfs_attr_pread_i(): Reading 4096 bytes from vcn 0, lcn 786431, ofs 0.
ntfs_pread(): pos 3221221376, count 4096
ntfs_attr_pread_i(): Reading 8 bytes from vcn 1, lcn 786430, ofs 0.
ntfs_pread(): pos 3221217280, count 8
ntfs_attr_pread(): Entering for inode 0 attr 0xb0 pos 4104 count 65536
ntfs_pathname_to_inode(): path: '$Secure'
ntfs_inode_real_open(): Entering for inode 5
ntfs_mft_record_read(): Entering for inode 5
ntfs_mft_records_read(): inode 5
ntfs_attr_mst_pread(): Entering for inode 0x0, attr type 0x80, pos 0x1400.
ntfs_attr_pread(): Entering for inode 0 attr 0x80 pos 5120 count 1024
ntfs_attr_find_vcn(): Entering for inode 0x0, attr 0x80, vcn 1
ntfs_attr_pread_i(): Reading 1024 bytes from vcn 0, lcn 786432, ofs 5120.
ntfs_pread(): pos 3221230592, count 1024
ntfs_mst_post_read_fixup_warn(): Entering
ntfs_attr_lookup(): Entering for attribute type 0x10
ntfs_attr_find(): attribute type 0x10.
ntfs_attr_lookup(): Entering for attribute type 0x20
ntfs_attr_find(): attribute type 0x20.
ntfs_attr_lookup(): Entering for attribute type 0x80
ntfs_attr_find(): attribute type 0x80.
ntfs_inode_lookup_by_name(): Entering
ntfs_attr_lookup(): Entering for attribute type 0x90
ntfs_attr_find(): attribute type 0x90.
ntfs_attr_open(): Entering for inode 5, attr 0xa0.
ntfs_attr_lookup(): Entering for attribute type 0xa0
ntfs_attr_find(): attribute type 0xa0.
ntfs_attr_mst_pread(): Entering for inode 0x5, attr type 0xa0, pos 0x0.
ntfs_attr_pread(): Entering for inode 5 attr 0xa0 pos 0 count 4096
ntfs_attr_find_vcn(): Entering for inode 0x5, attr 0xa0, vcn 0
ntfs_attr_map_runlist(): Entering for inode 0x5, attr 0xa0, vcn 0x0.
ntfs_attr_lookup(): Entering for attribute type 0xa0
ntfs_attr_find(): attribute type 0xa0.
ntfs_mapping_pairs_decompress(): Entering
ntfs_mapping_pairs_decompress_i(): Entering for attr 0xa0.
Mapping pairs array successfully decompressed:
NTFS-fs DEBUG: Dumping runlist (values in hex):
VCN LCN Run length
0 44 1
1 LCN_ENOENT 0 (runlist end)
ntfs_attr_pread_i(): Reading 4096 bytes from vcn 0, lcn 44, ofs 0.
ntfs_pread(): pos 180224, count 4096
ntfs_mst_post_read_fixup_warn(): Entering
ntfs_inode_real_open(): Entering for inode 9
ntfs_mft_record_read(): Entering for inode 9
ntfs_mft_records_read(): inode 9
ntfs_attr_mst_pread(): Entering for inode 0x0, attr type 0x80, pos 0x2400.
ntfs_attr_pread(): Entering for inode 0 attr 0x80 pos 9216 count 1024
ntfs_attr_find_vcn(): Entering for inode 0x0, attr 0x80, vcn 2
ntfs_attr_pread_i(): Reading 1024 bytes from vcn 0, lcn 786432, ofs 9216.
ntfs_pread(): pos 3221234688, count 1024
ntfs_mst_post_read_fixup_warn(): Entering
ntfs_attr_lookup(): Entering for attribute type 0x10
ntfs_attr_find(): attribute type 0x10.
ntfs_attr_lookup(): Entering for attribute type 0x20
ntfs_attr_find(): attribute type 0x20.
ntfs_attr_lookup(): Entering for attribute type 0x80
ntfs_attr_find(): attribute type 0x80.
ntfs_index_ctx_get(): Entering
ntfs_index_ctx_get(): Entering
ntfs_pathname_to_inode(): path: '.NTFS-3G/UserMapping'
ntfs_inode_lookup_by_name(): Entering
ntfs_attr_lookup(): Entering for attribute type 0x90
ntfs_attr_find(): attribute type 0x90.
ntfs_attr_open(): Entering for inode 5, attr 0xa0.
ntfs_attr_lookup(): Entering for attribute type 0xa0
ntfs_attr_find(): attribute type 0xa0.
ntfs_attr_mst_pread(): Entering for inode 0x5, attr type 0xa0, pos 0x0.
ntfs_attr_pread(): Entering for inode 5 attr 0xa0 pos 0 count 4096
ntfs_attr_find_vcn(): Entering for inode 0x5, attr 0xa0, vcn 0
ntfs_attr_map_runlist(): Entering for inode 0x5, attr 0xa0, vcn 0x0.
ntfs_attr_lookup(): Entering for attribute type 0xa0
ntfs_attr_find(): attribute type 0xa0.
ntfs_mapping_pairs_decompress(): Entering
ntfs_mapping_pairs_decompress_i(): Entering for attr 0xa0.
Mapping pairs array successfully decompressed:
NTFS-fs DEBUG: Dumping runlist (values in hex):


Wed Jul 03, 2013 07:57
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: 【Read Only】Mount SD card, the foler is ready only
Hi,

Quote:
but when I enter the mounted folder and create a file it note:cannot create.


And what is the error returned ?

Quote:
/tmp/dev/mmcblk0p1 on /tmp/disk/volume17 type fuseblk (ro,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) *The USB, it can be written*/
/tmp/dev/sda1 on /tmp/disk/volume1 type fuseblk (rw,noatime,user_id=0,group_id=0,allow_other,blksize=4096) /*The SD, read only*/


I would suggest /tmp/dev/mmcblk0p1is read-only (option ro shown), and /tmp/dev/sda1 is writeable (option rw shown).

Please show your mount command, and/or your /etc/fstab file

Quote:
and the log is :


I can only see normal behavior in this log, you have truncated it before any tries to write were shown. Maybe there were no tries at all, if the device was mounted read-only (and I have no information to tell whether this log was about /tmp/dev/mmcblk0p1 or /tmp/dev/sda1, though this was apparently for a 16GB device)

Note : some devices have a switch to make them unwriteable, when set so, ntfs-3g forces read-only mode.

Regards

Jean-Pierre


Wed Jul 03, 2013 10:18
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.