Ubuntu自动挂载本地磁盘

查看本地磁盘信息: ls -l /dev/disk/by-uuid

 

total 0
lrwxrwxrwx 1 root root 10 May 24 14:14 2C10CFFB10CFCA52 -> ../../sda6
lrwxrwxrwx 1 root root 10 May 24 14:14 3A88EA3B88E9F573 -> ../../sda1
lrwxrwxrwx 1 root root 11 May 24 14:14 5326af25-5d9d-43f3-9db2-34c57053ddcb -> ../../sda10
lrwxrwxrwx 1 root root 10 May 24 14:14 7C70FFB270FF716E -> ../../sda7
lrwxrwxrwx 1 root root 10 May 24 14:14 a177ed6b-9d64-4b74-b610-23f51ce325b9 -> ../../sda9
lrwxrwxrwx 1 root root 10 May 24 14:14 D8E42E3BE42E1BEE -> ../../sda8
lrwxrwxrwx 1 root root 10 May 24 14:14 F6E499FDE499BFF3 -> ../../sda5

 

打开配置文件: sudo gvim /etc/fstab

配置信息:

UUID=5a0bd731-6b01-4cbc-b088-b0cb70ca463c /               ext4    errors=remount-ro 0       1

UUID=a177ed6b-9d64-4b74-b610-23f51ce325b9 none            swap    sw              0       0

上面这两个磁盘是ubuntu系统盘,是磁盘信息中的sda9和sda10

 

添加本地磁盘则需要在以上配置信息中添加其他磁盘的信息,如下为本人配置:

UUID=F6E499FDE499BFF3          /media/Softwares     ntfs    utf8,umask=007,gid=46       0         1
UUID=2C10CFFB10CFCA52          /media/Daily         ntfs    utf8,umask=007,gid=46       0         1
UUID=7C70FFB270FF716E          /media/Learning      ntfs    utf8,umask=007,gid=46       0         1
UUID=D8E42E3BE42E1BEE          /media/Others        ntfs    utf8,umask=007,gid=46       0        1

 

 

 

posted @ 2013-04-01 12:29  Jing5022  阅读(323)  评论(0编辑  收藏  举报