Ubuntu拷贝大文件时卡死及无法正常挂载移动硬盘的解决办法

您所在的位置:网站首页 u盘传输文件卡住不动 Ubuntu拷贝大文件时卡死及无法正常挂载移动硬盘的解决办法

Ubuntu拷贝大文件时卡死及无法正常挂载移动硬盘的解决办法

2023-09-20 00:07| 来源: 网络整理| 查看: 265

最近在将Ubuntu系统中的大量文件(超过100G)拷贝到移动硬盘的过程中,出现了卡死的情况。开始是采用直接文件夹复制粘贴的方式,出现卡死之后换成了"scp -r"的方式,都没能搞定。

这个问题主要是由于Ubuntu系统中Kernel写入缓存太大,以至于从高速存储写往低速设备时出现拥塞瓶颈,从而出现卡死的情况。

解决方法是避免使用文件管理器及scp的方法,在拷贝大文件时可以采用如下指令:

rsync -avP source/ target/

rsync是一个远程数据同步工具,可通过LAN/WAN快速同步多台主机间的文件,且可以查看文件传输过程、速率等,十分方便。

此外,在拷贝到移动硬盘卡死的时候,由于强行拔出移动硬盘导致文件索引目录损坏,导致Ubuntu系统无法挂载移动硬盘,并出现如下错误提示:

Failed to mount '/dev/sdb1': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details.

根据上面的提示,可在Windows系统下解决:  1、Windows下 “运行”中输入cmd进入DOS命令行窗口  2、查找移动硬盘的卷名(如G:)  3、在命令行中输入:

chkdsk G:/f

chkdsk命令用于扫描磁盘,自动检查并修复索引错误等。上述第3步指令输入后有三个阶段,如果文件数目很多的话,时间会很久,需要耐心等待修复完成。之后,在Ubuntu系统中就可以正常挂载了。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3