Home | Mirror | Search

第 13 章 Harddisk

目錄

1. 查看分區分區 UUID
2. Label
2.1. Ext2
2.1.1. 查看卷標
2.1.2. 更改卷標
3. 臨時增加 swap 分區
4. Show partition
5. Create partition
6. Clone partition
7. Format partition
7.1. ext3
7.2. ReiserFS
8. estimate disk / directory / file space usage
9. Convert from ext3 to ext4 File system
10. GPT
10.1. 查看分區
10.2. 創建分區
10.3. 退出
10.4. mount
11. loop devices
11.1. losetup - set up and control loop devices

主分區最多4個

邏輯分區:

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