When I give the command "cp file1 file2" then the error comes: cp: cannot create regular file `file2': Input/output error This occurs sometimes and it occurs when I am giving the command inside a external hard disk which is mounted by "ntfs-3g" manually. Why does this error come? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110114/fdc4db19/attachment-0002.html>
On Friday 14 January 2011 04:01, Ritika Garg wrote:> When I give the command "cp file1 file2" then the error comes: > cp: cannot create regular file `file2': Input/output error > > This occurs sometimes and it occurs when I am giving the command inside a > external hard disk which is mounted by "ntfs-3g" manually. > Why does this error come?I believe it is self explanatory. Looks like you don't have write permissions on the drive. Check your permissions. -- Regards Robert Linux The adventure of a lifetime. Linux User #296285 Get Counted http://counter.li.org/
On 01/14/11 1:01 AM, Ritika Garg wrote:> When I give the command "cp file1 file2" then the error comes: > cp: cannot create regular file `file2': Input/output error > > This occurs sometimes and it occurs when I am giving the command > inside a external hard disk which is mounted by "ntfs-3g" manually. > Why does this error come?last I heard, NTFS-3g still had issues with writing new files and directory block splitting.
I always mount the hard disk in read write by the command "ntfs-3g /dev/sda1 /media/harddisk umask=0". cut, copy, paste works fine when I perform these operations by mouse. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110115/b7d4d5c0/attachment-0002.html>