查看磁盘信息
fdisk -l
/dev/sda1 2048 923647 921600 450M Windows recovery environment
/dev/sda2 923648 1128447 204800 100M EFI System
/dev/sda3 1128448 1161215 32768 16M Microsoft reserved
/dev/sda4 1161216 187154431 185993216 88.7G Microsoft basic data
/dev/sda5 187154432 187447295 292864 143M Linux swap
/dev/sda6 187447296 250068991 62621696 29.9G Linux filesystem
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 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: 2A87EF44-1006-4A05-895B-85E2FA7771EE
设备 Start 末尾 扇区 Size 类型
/dev/sdb1 2048 419432447 419430400 200G Microsoft basic data
/dev/sdb2 419432448 838862847 419430400 200G Microsoft basic data
在要挂载到的地方新建文件夹,比如
sudo mkdir /media/neucrack/data
sudo mkdir /media/neucrack/software
设置开机挂载
手动挂载:
mount /dev/sdb1 /media/neucrack/software
mount /dev/sdb2 /media/neucrack/data
自动挂载:
vi /etc/fstab
/dev/sdb1 /media/neucrack/software ntfs defaults 0 0
/dev/sdb2 /media/neucrack/data ntfs defaults 0 0
立即生效
sudo mount -a