首页 > 其他 > 详细

Ubuntu 12.04开机自动挂载硬盘

时间:2014-03-20 06:41:07      阅读:603      评论:0      收藏:0      [点我收藏+]

因为是双系统。。然后就想着每次用的时候手动挂载很累。。所以直接开机给挂载上算了。。


好,先查看下系统下要挂载的盘在哪里,用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


我比较懒,linux没分区。。然后看到我要挂载的盘符(看大小 = =!)我挂载/dev/sda5和/dev/sda6

然后修改/etc/fstab文件

sudo vim /etc/fstab

不会vim用gedit

然后输入密码打开后,再最后添加

/dev/sda5	/media/multimedia	ntfs	default	0	2
/dev/sda6	/media/tools	ntfs	default	0	2

然后保存退出就好了

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

这个是每个部分的意思,磁盘位置啊,挂载点,磁盘文件类型,default不清楚 = =,是否备份,是否检查。




Ubuntu 12.04开机自动挂载硬盘,布布扣,bubuko.com

Ubuntu 12.04开机自动挂载硬盘

原文:http://blog.csdn.net/alps1992/article/details/21519403

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!