Subject: Re: bin/37422: file copy over USB works with dd, but not with cp: Invalid argument.
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, kuehro@gmx.de>
From: Matthias Scheler <tron@zhadum.org.uk>
List: netbsd-bugs
Date: 11/27/2007 20:40:03
The following reply was made to PR bin/37422; it has been noted by GNATS.

From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/37422: file copy over USB works with dd, but not with cp: Invalid argument.
Date: Tue, 27 Nov 2007 20:37:45 +0000

 On Fri, Nov 23, 2007 at 03:20:00PM +0000, kuehro@gmx.de wrote:
 > >Description:
 > If I try to copy certain files from a fat or NTFS partition on an external USB harddisk, I get the following (with FFS1, no matter if
 > softdep is used or not):
 > 
 > # cp /mnt/dummy/fortran/blas.tgz /home/archive
 > cp: /home/archive/blas.tgz: Invalid argument
 
 1.) The error is completely harmless. "cp" probably tried to set attributes
     which FAT or NTFS filesystems don't suport.
 
 2.) Writing to NTFS volumes is known to be broken. From "man mount_ntfs":
 
      Warning: do not mount NTFS filesystems read-write.  The write support is
      not very useful and is not tested well.  It's not safe to write to any
      file on NTFS; you might damage the filesystem.  Unless you want to debug
      NTFS filesystem code, mount the NTFS filesystem read-only.
 
    I would therefore recomment to use NTFS only read-only at the moment.
 
 Do you have any problems besides the error message when writing to
 FAT32 volumes?
 
 	Kind regards
 
 -- 
 Matthias Scheler                                  http://zhadum.org.uk/