因为是双系统。。然后就想着每次用的时候手动挂载很累。。所以直接开机给挂载上算了。。
好,先查看下系统下要挂载的盘在哪里,用sudo fdisk -l
chen@alps:~$ sudo fdisk -l Disk /dev/sda: 750.2 GB, 750156374016 bytes 16 heads, 63 sectors/track, 1453521 cylinders, total 1465149168 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: 0x446588b8 设备 启动 起点 终点 块数 Id 系统 /dev/sda1 * 63 167798924 83899431 7 HPFS/NTFS/exFAT Partition 1 does not start on physical sector boundary. /dev/sda2 167798986 1465147391 648674203 f W95 扩展 (LBA) Partition 2 does not start on physical sector boundary. /dev/sda5 167798988 471909374 152055193+ 7 HPFS/NTFS/exFAT Partition 5 does not start on physical sector boundary. /dev/sda6 471909438 776019824 152055193+ 7 HPFS/NTFS/exFAT Partition 6 does not start on physical sector boundary. /dev/sda7 776019951 1080130274 152055162 7 HPFS/NTFS/exFAT Partition 7 does not start on physical sector boundary. /dev/sda8 1080130338 1384240724 152055193+ 7 HPFS/NTFS/exFAT Partition 8 does not start on physical sector boundary. /dev/sda9 1384241152 1448679423 32219136 83 Linux /dev/sda10 1448681472 1465147391 8232960 82 Linux 交换 / Solaris
然后修改/etc/fstab文件
sudo vim /etc/fstab
然后输入密码打开后,再最后添加
/dev/sda5 /media/multimedia ntfs default 0 2 /dev/sda6 /media/tools ntfs default 0 2
# <file system> <mount point> <type> <options> <dump> <pass>
Ubuntu 12.04开机自动挂载硬盘,布布扣,bubuko.com
原文:http://blog.csdn.net/alps1992/article/details/21519403