I have been testing the USB drive. I read the data from it with no issue at all. However, whenever I try to write or delete, it would give me the error. In the set up I set "Readonly" option in Disable mode. I checked the drive info in my finder and the drive access was included both read and write access. Still I can not add new file or delete old file from the drive. Did I miss something else? Thanks.
The error window shows the below. Thanks.
"The Finder can not complete the operation because some data in "" could not be read or written (Error code -36)"
Can not Write to USB drive
Login to the router through ssh or telnet and run command:
mount
post the output, also show me the output of:
ls -la /
The output for mount is
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /jffs type fuseblk (rw,user_id=0,group_id=0,allow_other)
The output of ls -la / is
drwxr-xr-x 16 root root 153 Aug 29 21:43 .
drwxr-xr-x 16 root root 153 Aug 29 21:43 ..
drwxr-xr-x 2 root root 502 Aug 29 21:43 bin
drwxr-xr-x 1 root root 0 Jan 1 1970 dev
drwxr-xr-x 6 root root 444 Aug 29 21:43 etc
drwxrwxrwx 1 root root 20480 Sep 13 21:41 jffs
drwxr-xr-x 3 root root 226 Aug 29 21:43 lib
drwxr-xr-x 2 root root 3 Aug 29 21:43 mmc
drwxr-xr-x 2 root root 3 Aug 29 21:43 mnt
drwxr-xr-x 2 root root 3 Aug 29 21:43 opt
dr-xr-xr-x 46 root root 0 Jan 1 2000 proc
drwxr-xr-x 2 root root 942 Aug 29 21:43 sbin
drwxr-xr-x 10 root root 0 Jan 1 2000 sys
drwxrwxrwx 8 root root 0 Sep 16 14:46 tmp
drwxr-xr-x 7 root root 67 Aug 29 21:43 usr
lrwxrwxrwx 1 root root 7 Aug 29 21:43 var -> tmp/var
drwxr-xr-x 3 root root 63 Aug 29 21:43 www
Thanks
Okay seems like this is a drive with ntfs filesystem, the permissions are correct. Are you using "Custom Config" in samba setup page?
Maybe I have time tonight to do some testing with an ntfs drive.
You can check with ls -la /jffs/pathtofile if it has the right permissions(rwxrwxrwx) if that is okay, there must be an error with ntfs-3g or samba. Maybe the ntfs filesystem is in an unclean state.
Hi,
I just use the default samba setup with /jffs, not custom config.
Running ls -la /jffs/pathtofile give me nothing, but
ls -la /jffs yields
drwxrwxrwx 1 root root 4096 Sep 5 16:49 $RECYCLE.BIN
drwxrwxrwx 1 root root 20480 Sep 13 21:41 .
drwxr-xr-x 16 root root 153 Aug 29 21:43 ..
drwxrwxrwx 1 root root 0 Dec 23 2009 .Trash-1000
drwxrwxrwx 1 root root 48 Sep 12 02:32 .Trashes
drwxrwxrwx 1 root root 0 Sep 11 01:03 .fseventsd
drwxrwxrwx 1 root root 48 Sep 11 19:32 SOMEFILE
drwxrwxrwx 1 root root 8192 Sep 8 00:00 SOMEFILE
drwxrwxrwx 1 root root 4096 Jun 22 10:47 Bin
drwxrwxrwx 1 root root 4096 Sep 3 16:11 SOMEFILE
drwxrwxrwx 1 root root 4096 Sep 3 12:16 SOMEFILE
drwxrwxrwx 1 root root 8192 Sep 3 15:51 Family Album
drwxrwxrwx 1 root root 4096 Sep 7 02:06 SOMEFILE
drwxrwxrwx 1 root root 4096 Aug 30 12:25 Karaoke
drwxrwxrwx 1 root root 8192 Apr 25 21:16 SOMEFILE
drwxrwxrwx 1 root root 0 Aug 30 12:24 RECYCLER
drwxrwxrwx 1 root root 4096 Aug 30 12:18 System Volume Information
drwxrwxrwx 1 root root 4096 Sep 6 14:07 SOMEFILE
drwxrwxrwx 1 root root 20480 Sep 15 17:05 SOMEFILE
drwxrwxrwx 1 root root 4096 Sep 3 12:16 SOMEFILE
-rwxrwxrwx 1 root root 62 Dec 23 2009 SOMEFILE
I have just attached a 500GB NTFS drive and verified that read/write works with the standard config where Readonly is disabled.
Only explanation I have is that the your filesystem state is invalid or it uses ntfs compression/encryption etc.
You can try to attach the drive to a windows computer and run a filesystem check.

RSS

