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.3.1. swapon failed: Invalid argument
9.4. Show partition
9.5. Create partition
9.6. Clone partition
9.7. estimate disk / directory / file space usage
9.8. Convert from ext3 to ext4 File system
9.9. GPT
9.9.1. 設置GTP磁碟
9.9.2. 查看分區
9.9.3. 創建分區
9.9.4. 刪除分區
9.9.5. 退出
9.9.6. mount
9.10. loop devices
9.10.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