将文件复制到 NTFS 卷时出错

将文件复制到 NTFS 卷时出错

我在 中有一个文件夹/media/li。我想将文件复制并粘贴到该文件夹​​中。

li@li-HP-Pavilion-Desktop-590-p0xxx:/media/li$ ls -ltr
total 20
drwxr-xr-x 11 li li 16384 Dec 31  1969  DELLRESTORE
drwxrwxrwx  1 li li  4096 Oct 19 20:58 'New Volume'

它说:

复制“question.doc”时出错。

打开文件“/media/li/New Volume/question.doc”时出错:没有此文件或目录

在此处输入图片描述

在此处输入图片描述

$ cat /etc/mtab | grep 'li'
/dev/sdb2 /media/li/New\040Volume fuseblk ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0

~$ sudo fdisk -l | grep -v loop



Device          Start        End    Sectors   Size Type
/dev/sdb1          34     262177     262144   128M Microsoft reserved
/dev/sdb2      264192 2228799487 2228535296     1T Microsoft basic data
/dev/sdb3  2228799488 2287396863   58597376    28G Linux swap
/dev/sdb4  2287396864 3263963135  976566272 465.7G Linux filesystem
/dev/sdb5  3263963136 3283499007   19535872   9.3G Linux filesystem
/dev/sdb6  3283499008 4260065279  976566272 465.7G Linux filesystem
/dev/sdb7  4260065280 4455380991  195315712  93.1G Linux filesystem
/dev/sdb8  4455380992 4457338879    1957888   956M BIOS boot
/dev/sdb9  4457338880 4458319871     980992   479M EFI System
/dev/sdb10 4458319872 7814035455 3355715584   1.6T Linux filesystem



li@li-HP-Pavilion-Desktop-590-p0xxx:/media/li$ sudo mount -t ntfs-3g /dev/sdb2 /media/li -o rw,permissions
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.


li@li-HP-Pavilion-Desktop-590-p0xxx:/media/li$ sudo mount New\ Volume
mount: New Volume: can't find in /etc/fstab.

li@li-HP-Pavilion-Desktop-590-p0xxx:/media/li$ ls
 360SANDBOX                hp                pagefile.sys    'Program       Files (x86)'   SWSetup                      Windows
bootTel.dat               inetpub           PerfLogs         Recovery               SYSTEM.SAV                  '$WINDOWS.~BT'
'Documents and Settings'   Intel             ProgramData     '$RECYCLE.BIN'         'System Volume Information'
 hiberfil.sys              IntelOptaneData  'Program Files'   swapfile.sys           Users

li@li-HP-Pavilion-Desktop-590-p0xxx:/media/li$ touch /media/li/New\ Volume
touch: cannot touch '/media/li/New Volume': Read-only file system
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb4 during installation
UUID=ca31db48-1c16-47bf-95db-b37e59b2954e /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sdb5 during installation
UUID=39757d5a-5bd3-450c-a4ae-c6d96b04c040 /boot           ext4    defaults        0       2
# /boot/efi was on /dev/sdb9 during installation
UUID=2591-F4D4  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sdb10 during installation
UUID=04c65089-71ff-4b33-9a30-c21b8c77eda2 /home           ext4    defaults        0       2
# /tmp was on /dev/sdb7 during installation
UUID=a66a7593-7e4f-49e9-bbe2-0c64b075bceb /tmp            ext4    defaults        0       2
# /usr was on /dev/sdb6 during installation
UUID=d6442eb1-3b8d-4c48-8fe6-26e0f7bf93d4 /usr            ext4    defaults        0       2
# swap was on /dev/sdb3 during installation
UUID=e25f78e5-bbef-48b3-852c-89c5b44b071f none            swap    sw              0       0

答案1

首先,尝试将您的New Volume名称重命名为没有空格的名称:NewVolume或者其他名称(如果可能),然后尝试重复复制。

如果没有帮助,请查看您的/etc/mtab文件以查看用于安装li驱动器的选项:

cat /etc/mtab | grep 'li'

如果您ro在选项中看到它,则需要将其卸载并以rw模式挂载。例如,如果您使用 ntfs 卷,则可以使用:

sudo umount /dev/sdb2
sudo apt install ntfs-3g
sudo mkdir /media/li/newvolume
sudo mount -t ntfs-3g /dev/sdb2 /media/li/newvolume -o rw,permissions

sdXX当您运行sudo fdisk -l | grep -v loop或在 GParted 中您可以看到您的驱动器在哪里

您也可以将其添加到您的/etc/fstab

/dev/sdb2 /media/li/newvolume ntfs rw,permissions 0 0

确保同一分区没有其他记录

还:

  • 下载 Windows 10 Live CD
  • 加载到 Windows -> 设备管理器 -> 磁盘驱动器
  • 选择您的New Volume- 右键单击​​ -> 属性 -> 策略 -> 写入缓存策略
  • 取消选中“在设备上启用写入缓存”
  • 重启进入 Ubuntu 并检查

相关内容