分页: 1 / 1

这些信息说明了什么问题?

发表于 : 2021-11-16 14:43
百草谷居士
sudo gdisk -l /dev/sdb

GPT fdisk (gdisk) version 1.0.8

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 976773120 sectors, 465.8 GiB
Model: Extreme SSD
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 4EC7C997-BFB3-4FB7-9B2A-CC13F0B9351E
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 976773086
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

-----------------------------------------------------------------------------------------------
上面这些信息说明了什么?

Sector size (logical/physical): 512/4096 bytes
为什么逻辑扇区会小于物理扇区?

Re: 这些信息说明了什么问题?

发表于 : 2021-11-16 15:41
funicorn
物理扇区就好比自然村,是地形地物划分的。逻辑扇区就好比行政村,是管理造册划分的。

Re: 这些信息说明了什么问题?

发表于 : 2021-11-16 22:47
astolia
百草谷居士 写了: 2021-11-16 14:43 上面这些信息说明了什么?
说明没剩余空间了,考虑到这还是个ssd,嗯,还是祝你好运吧
百草谷居士 写了: 2021-11-16 14:43 Sector size (logical/physical): 512/4096 bytes
为什么逻辑扇区会小于物理扇区?
512和4096都有其历史原因,见wiki https://en.wikipedia.org/wiki/Disk_sector 。而linux总是把硬盘的扇区大小当成512来处理,这就是所谓的logical sector size,见内核源代码中的注释 https://elixir.bootlin.com/linux/latest ... pes.h#L120

Re: 这些信息说明了什么问题?

发表于 : 2021-11-17 9:19
百草谷居士
funicorn 写了: 2021-11-16 15:41 物理扇区就好比自然村,是地形地物划分的。逻辑扇区就好比行政村,是管理造册划分的。
你说哩太形象了,可是大多数情况下是行政村大于等于自然村,现在是一个自然村被分成了几个行政村 :Faint