1. 首先使用命令查看各个分区的信息,找到想要挂载到分区
sudo fdisk -l
终端列出磁盘列表,如:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcdb9b627
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 5099 40853504 7 HPFS/NTFS
/dev/sda3 5100 30402 203239628 f W95 Ext'd (LBA)
/dev/sda5 5100 26771 174080308+ 7 HPFS/NTFS
/dev/sda6 26772 27015 1951744 82 Linux swap / Solaris
/dev/sda7 27015 30402 27205632 83 Linux
确定挂载windows中到d盘,即/dev/sda5
2. 在/media下面建立挂载映射目录
cd /media
sudo mkdir windows
3. 挂载与卸载分区
sudo mount /dev/sda5 /media/windows/ -t force
sudo umount /media/windows
4. 开机自动挂载
编辑/etc/fstab
sudo gedit /etc/fstab
添加
/dev/sda5 /media/windows ntfs-3g defaults, locale=zh_CN.UTF-8 0 0