Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

第 8 章 Harddisk 磁盘管理

目录

8.1. 查看分区分区 UUID
8.2. 通过 UUID 或 标签 查询设备文件
8.3. Label
8.3.1. Ext2
8.4. swap 交换分区
8.4.1. swapon failed: Invalid argument
8.5. Show partition
8.6. Create partition
8.7. Clone partition
8.8. estimate disk / directory / file space usage
8.9. Convert from ext3 to ext4 File system
8.10. GPT
8.10.1. 设置GTP磁盘
8.10.2. 查看分区
8.10.3. 创建分区
8.10.4. 删除分区
8.10.5. 退出
8.10.6. mount
8.11. loop devices
8.11.1. losetup - set up and control loop devices
8.12. Linux磁盘分区加密

主分区最多4个

逻辑分区:

8.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