Ubuntu 10.04通过UUID来区分各个磁盘分区,在/etc/fstab配置文件中就是通过UUID来挂载分区的。
UUID,英文全称为:Universally Unique Identifier。下面介绍2种查看分区UUID的方法:1.在终端中执行命令:blkid返回结果:/dev/sda1: UUID="E414E02914E00082" TYPE="ntfs" /dev/sda5: UUID="E4DCB02EDCAFF8C6" TYPE="ntfs" /dev/sda6: LABEL="e-disk" UUID="d8463d0b-41f6-4f9b-acc1-a481dfa9a9c5" TYPE="ext4" /dev/sda7: UUID="CA8A22CE8A22B6BB" TYPE="ntfs" /dev/sda8: UUID="0C38BF5538BF3C90" TYPE="ntfs" /dev/sda9: UUID="dd85f22a-4130-4ca9-bdc4-2bfbf0a76801" TYPE="swap" /dev/sda10: UUID="2ea3fd65-23ef-4930-a87c-1788f6bc3f4d" TYPE="ext4" /dev/sdb: UUID="BC90-1EEA" TYPE="vfat" 2.在终端中执行命令:ls -l /dev/disk/by-uuid/返回结果:lrwxrwxrwx 1 root root 10 2012-03-13 09:40 0C38BF5538BF3C90 -> ../../sda8lrwxrwxrwx 1 root root 11 2012-03-13 09:40 2ea3fd65-23ef-4930-a87c-1788f6bc3f4d -> ../../sda10lrwxrwxrwx 1 root root 9 2012-03-13 09:47 BC90-1EEA -> ../../sdblrwxrwxrwx 1 root root 10 2012-03-13 09:40 CA8A22CE8A22B6BB -> ../../sda7lrwxrwxrwx 1 root root 10 2012-03-13 09:40 d8463d0b-41f6-4f9b-acc1-a481dfa9a9c5 -> ../../sda6lrwxrwxrwx 1 root root 10 2012-03-13 09:40 dd85f22a-4130-4ca9-bdc4-2bfbf0a76801 -> ../../sda9lrwxrwxrwx 1 root root 10 2012-03-13 09:40 E414E02914E00082 -> ../../sda1lrwxrwxrwx 1 root root 10 2012-03-13 09:40 E4DCB02EDCAFF8C6 -> ../../sda5