1 linux挂载硬盘
1 2 3 4 5 6 7 8 9 10 11 |
1. 列出NAME,FSTYPE,LABEL,UUID,MOUNTPOINT,并且输出设备的完整名称 >lsblk -fp /dev/sde `-/dev/sde1 ntfs Elements SE D4524FB0524F9660 /dev/sdf `-/dev/sdf1 ntfs Elements B4D48115D480DB4E #仅适用lsblk,可以输出磁盘大小,帮助我们辅助找到正确的刚插入的硬盘。 2. 将文件系统挂载上 mount /dev/sde1 /path/to/point 3. 卸载该文件系统 umount /dev/sde1 |
2 fdisk
1 2 |
sudo fdisk -l sudo fdisk /dev/sdb1 |
3 disks
4 partition types
5 /etc/fstab
6 swap
7 ntfsfix
1 2 3 4 5 6 7 8 9 10 |
ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is NOT a Linux version of chkdsk. It only repairs some fundamental NTFSinconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows. You may run ntfsfix on an NTFS volume if you think it was damaged byWindows or some other way and it cannot be mounted. |
9.