Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 9 章 Harddisk

目录

9.1. 查看分区分区 UUID
9.2. Label
9.2.1. Ext2
9.2.1.1. 查看卷标
9.2.1.2. 更改卷标
9.3. 临时增加 swap 分区
9.4. Show partition
9.5. Create partition
9.6. Clone partition
9.7. Format partition
9.7.1. ext3
9.7.2. ReiserFS
9.8. estimate disk / directory / file space usage
9.9. Convert from ext3 to ext4 File system
9.10. GPT
9.10.1. 设置GTP磁盘
9.10.2. 查看分区
9.10.3. 创建分区
9.10.4. 删除分区
9.10.5. 退出
9.10.6. mount
9.11. loop devices
9.11.1. losetup - set up and control loop devices

主分区最多4个

逻辑分区:

9.1. 查看分区分区 UUID

$ blkid
/dev/sda1: UUID="a457213b-e72d-4c9c-953d-b438ec554d3c" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: UUID="cc2c1be9-a6e0-4494-a5f0-76b39d3fc1f0" TYPE="swap"
/dev/sda6: UUID="3c9a1484-1295-4fb9-9c94-f9c69ae7e770" TYPE="ext3"
/dev/sda7: UUID="ade7b5e7-a311-45de-9b24-e16be73de715" TYPE="swap"

$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2009-07-11 00:52 3c9a1484-1295-4fb9-9c94-f9c69ae7e770 -> ../../sda6
lrwxrwxrwx 1 root root 10 2009-07-11 00:52 a457213b-e72d-4c9c-953d-b438ec554d3c -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-07-11 00:52 ade7b5e7-a311-45de-9b24-e16be73de715 -> ../../sda7
lrwxrwxrwx 1 root root 10 2009-07-11 00:52 cc2c1be9-a6e0-4494-a5f0-76b39d3fc1f0 -> ../../sda5
		
comments powered by Disqus