插入硬盘后比插入前多的部分:
Disk /dev/sda: 1.8 TiB, 2000398933504 bytes, 3907029167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B623B6B9-3AD0-4F82-A951-79A11657BCC1
Device Start End Sectors Size Type
/dev/sda1 40 409639 409600 200M EFI System/dev/sda2 411648 3907028991 3906617344 1.8T Microsoft basic data
2.挂载:(如果 /opt/bigd1目录不存在,需要先创建目录)
sudo mount /dev/sda2 /opt/bigd1
FUSE exfat 1.2.8
WARN: volume was not unmounted cleanly.
挂载的时候遇到过这个挂在失败的问题:
mount: /opt/bigd1: 未知的文件系统类型“exfat”.
解决办法:
sudo apt-get install exfat-utils
3.查看是否挂载成功了
df -h
/dev/sda2 1.9T 1.1T 830G 56% /opt/bigd1 (有这行就是挂载上了)
4.进行cp文件吧,从硬盘到服务器
cp /opt/bigd1/xxx /home/xxx
5.不需要硬盘的时候要卸载挂载
(先切换到其他目录)执行 umount /dev/sda2