In the past it was easy to mount Windows NTFS partitions and to copy files to Windows. But in the new opensuse Leap16 operating system, copying with cp or with mc regularly fails with an error message. Currently I have to copy to an USB stick first, and then use the USB stick in Windows operating system to import the files…
Please show how you are trying to mount and copy, all OK here, for instance:
beta_bruno@lt-b:/run/media/beta_bruno/Backup_W/SW_Apps> cp /home/beta_bruno/Downloads/y2log-YqaUmE.tar.xz y2log-YqaUmE.tar.xz
beta_bruno@lt-b:/run/media/beta_bruno/Backup_W/SW_Apps> ls y2log*
y2log-YqaUmE.tar.xz
beta_bruno@lt-b:/run/media/beta_bruno/Backup_W/SW_Apps>
But that is also, what you call, a NTFS partition. Thus we have to find out whay the one differs from the other.
I assume you use the NTFS file systems also on a Windows system that is available multi-boot on he same system? Then check if those NTFS file system are mounted read-only on your openSUSE. When yes, it could be that they are improper removed from the Windows system, which itself can happen when the Windows system uses “Fast boot”. So switch Fast boot off and check again.
as root:
mount /dev/sda7 /mnt
cp blk2.txt /mnt/my
cp: reguläre Datei '/mnt/my/blk2.txt' kann nicht angelegt werden: Das Argument ist ungültig
Please show ls -l /mnt/ after the mount operation.
Do you have the “ntfs-3g” package installed?
- It’s in the Leap 16.0 OSS Repository …
Please read the README – ‘/usr/share/doc/packages/ntfs-3g/README’
Also the man (8) page: mount.ntfs-3g
Further information is here: <ArchWiki: NTFS>
lcl:~ # mount /dev/sda7 /mnt
lcl:~ # ls -l /mnt
insgesamt 179
drwxrwxrwx 1 root root 4096 6. Jan 2017 $RECYCLE.BIN
drwxrwxrwx 1 root root 4096 30. Aug 2018 BIG
drwxrwxrwx 1 root root 4096 11. Feb 2019 C
drwxrwxrwx 1 root root 4096 30. Jul 2022 DOKU
drwxrwxrwx 1 root root 4096 27. Okt 10:25 my
-rwxrwxrwx 1 root root 1100 15. Dez 2022 Profile Lines.dbf
-rwxrwxrwx 1 root root 396 15. Dez 2022 Profile Lines.prj
-rwxrwxrwx 1 root root 1476 15. Dez 2022 Profile Lines.shp
-rwxrwxrwx 1 root root 212 15. Dez 2022 Profile Lines.shx
drwxrwxrwx 1 root root 4096 10. Aug 2018 Programme
drwxrwxrwx 1 root root 4096 8. Jun 2020 System Volume Information
lcl:~ #
the windows files on this partition can be copied to the linux filesystem without any problems....
fast boot in Windows is deactivated, as well as any hibernation. After mounting the Windows NTFS filesystem the files there can be copied as usual to the linux filesystem, but not vice versa…
is it necessary ?
So does file blk2.txt actually exist where you think it is? Check cat blk2.txt
[And please we are in the English Forum so prepend LANG=C to the commands that you are going to post here]
Is it mounted read-only?
mount | grep sda7
If you need to write and read NTFS (MS Windows) Partitions → yes, it’s needed.
Further information is available from the “ntfs-3g” and “mount.ntfs-3g” man (8) pages.
There’s also a “ntfs-3g.probe” command →
The ntfs-3g.probe utility tests a volume if it's NTFS mountable read-only or read-write, and exits with a status value accordingly. The volume can be a block device or image file.
ntfs-3g is installed
lcl:~ # mount | grep sda7
/dev/sda7 on /mnt type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
lcl:~ # dir
total 44
-rw-------. 1 root root 27545 Oct 30 13:23 .bash_history
drwx------. 1 root root 88 Jul 14 17:04 .cache
drwxr-xr-x. 1 root root 32 Jul 15 12:08 .config
drwx------. 1 root root 0 Jan 28 2025 .gnupg
drwxr-xr-x. 1 root root 10 Jul 14 14:55 .local
drwx------. 1 root root 30 Jul 14 15:05 .ssh
-rw-------. 1 root root 99 Oct 30 13:43 .xauthb03zwO
drwxr-xr-x. 1 root root 0 Jan 28 2025 bin
-rw-------. 1 root root 11620 Aug 14 21:42 blk2.txt
lcl:~ # cat blk2.txt
shutdown now
lsblk -f
man fdisk
mc
cd
#grub2-mkconfig -o /boot/grub2/grub.cfg
mc
(...)
the file exists and contains a long list of commands…
I am still wondering about the original error message. Can you please provide that in English:
LANG=C cp blk2.txt /mnt/my
lcl:~ # dir
total 44
-rw-------. 1 root root 27778 Oct 30 16:01 .bash_history
drwx------. 1 root root 88 Jul 14 17:04 .cache
drwxr-xr-x. 1 root root 32 Jul 15 12:08 .config
drwx------. 1 root root 0 Jan 28 2025 .gnupg
drwxr-xr-x. 1 root root 10 Jul 14 14:55 .local
drwx------. 1 root root 30 Jul 14 15:05 .ssh
-rw-------. 1 root root 99 Oct 30 16:45 .xauthkLBcXh
drwxr-xr-x. 1 root root 0 Jan 28 2025 bin
-rw-------. 1 root root 11620 Aug 14 21:42 blk2.txt
lcl:~ # cp blk2.txt /mnt/my
cp: cannot create regular file '/mnt/my/blk2.txt': Invalid argument
Is that ntfs a (very) old one?
Does touch /mnt/my/blk2.txt and/or touch /mnt/my/BLK2.TXT spit the same error?
Question to others: Is that the correct file system type for NTFS?
Your mount options might be a problem: user_id=0,group_id=0 probably means that everything is owned by user root and group root.