1. 在ubuntu下查看windows磁盘信息, Ctrl + Alt + t打开终端,, 输入以下命令:
sudo fdisk -l
信息如下:
:~$ sudo fdisk -l
[sudo] password for cryhelyxx:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 , 121601 cylinders, total 1953525168 sectors
Units = 扇区 of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xf7b8cd85
设备 启动
起点
终点
块数 Id 系统
/dev/sda1 *
63 251674289 125837113+ 7 HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
/dev/sda2
251674351 1848662464 798494057 f W95 扩展 (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda3
1952178176 1953523711
672768 82 Linux 交换 / Solaris
/dev/sda4
1848664064 1952177735 51756836 83 Linux
/dev/sda5
251674353 677412854 212869251 7 HPFS/NTFS/exFAT
Partition 5 does not start on physical sector boundary.
/dev/sda6
677412918 1103151419 212869251 7 HPFS/NTFS/exFAT
Partition 6 does not start on physical sector boundary.
/dev/sda7
1103151483 1528889984 212869251 7 HPFS/NTFS/exFAT
Partition 7 does not start on physical sector boundary.
/dev/sda8
1528890048 1848662464 159886208+ 7 HPFS/NTFS/exFAT
Partition table entries are not in disk order
:~$
可知本人的ubuntu下的windows的分区有sda1, sda5, sda6, sda7, sda8, 因为本人的windows分区有C、D、E、F、G盘
2. 接着创建要挂载的磁盘的文件夹, 依次输入以下命令来创建对应的文件夹:
sudo mkdir /media/C
sudo mkdir /media/D
sudo mkdir /media/E
sudo mkdir /media/F
sudo mkdir /media/G
Linux--自动挂载win目录