You are not logged in.

#1 2011-03-09 22:40:54

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Could not change permissions when copying file; also problems copying

Whenever I try to copy a file from my ext4 partition to my ntfs partition, I get the following error:

Could not change permissions for
<filename>

Also, I've noticed one more problem, not sure if it is anyhow related: I have an Android phone and whenever I try to copy a custom ROM to my microSD card (using cp from terminal), I get no errors, checking md5sum works fine (and matches the download file), but yet the android phone cannot install the ROM (says bad file). Now that would not be weird if it happened all the time, but it only happens sometimes. Like, after 3-4 retries (of copying/rewriting the file), eventually it works well. Yesterday though it wouldn't work well after 10 retries so I gave up.

Are these problems related and how do I fix them? I already checked out this thread, but apparently cifs works only for samba mounted shares.

Here's my /etc/fstab

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
# Commented out by Dropbox
# /dev/sda1 /home ext4 defaults 0 1
/dev/sda4 / ext4 defaults 0 1
/dev/sda5 swap swap defaults 0 0

/dev/sda2     /media/windows    ntfs-3g    gid=users,umask=0002,noperm    0    0
/dev/sdb1     /media/LaCie    ntfs-3g    gid=users,umask=0002,noperm    0    0
#\\dev\sdb1     /media/LaCie    cifs    noperm,uid=bogdan,gid=users,iocharset=utf8
/dev/sdc1     /media/Nova    ntfs-3g    gid=users,umask=0002,noperm    0    0
/dev/sda1 /home ext4 defaults,user_xattr 0 1

My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#2 2011-03-09 22:53:03

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Could not change permissions when copying file; also problems copying

Deusdies wrote:

Also, I've noticed one more problem, not sure if it is anyhow related: I have an Android phone and whenever I try to copy a custom ROM to my microSD card (using cp from terminal), I get no errors, checking md5sum works fine (and matches the download file), but yet the android phone cannot install the ROM (says bad file). Now that would not be weird if it happened all the time, but it only happens sometimes. Like, after 3-4 retries (of copying/rewriting the file), eventually it works well. Yesterday though it wouldn't work well after 10 retries so I gave up.

Perhaps you forgot to sync before removing the card?

Offline

#3 2011-03-09 22:57:45

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: Could not change permissions when copying file; also problems copying

Sync what?


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#4 2011-03-09 23:02:59

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: Could not change permissions when copying file; also problems copying

The sd card on the Android. It's a common problem that cp (and it's GUI equivalents) reports the copy as finished when it hasn't. If you run sync as user it will finish off the job


edit: ntfs doesn't have permissions in the same way ext4 has, instead they're set when the drive is mounted

Last edited by SS4 (2011-03-09 23:04:12)


Rauchen verboten

Offline

#5 2011-03-09 23:08:55

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: Could not change permissions when copying file; also problems copying

Thanks for the sync tip, I had no idea about that.


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#6 2011-03-10 22:26:08

eLBelga
Member
Registered: 2011-03-02
Posts: 10

Re: Could not change permissions when copying file; also problems copying

Deusdies wrote:

Whenever I try to copy a file from my ext4 partition to my ntfs partition, I get the following error:

Could not change permissions for
<filename>

Did you install NTFS-3G?

Offline

Board footer

Powered by FluxBB