因此,我在磁盘实用程序和 diskutil 中遇到了一些奇怪的问题。这不是问题(希望如此),但我只是想确保我不会走上磁盘损坏或故障的道路。这是我的磁盘实用程序读取硬盘的方式:
(如列表所示)
- 磁盘描述:APPLE SSD SD0256F 介质
- 总容量:251 GB(251,000,193,024 字节)
- 连接总线:PCI
- 写入状态:读/写
- 类型和位置:固态磁盘,内部
- SMART 状态:已验证
- 分区图方案:GUID 分区表
分区如下:
- 麦金塔高清
- 格式:Mac OS 扩展(日志式)
- 大小:202.66 GB
- 高清恢复
- 格式:Mac OS 扩展(日志式)
- 大小:650 MB
- 磁盘0s4
- 格式:Mac OS 扩展(日志式)
- 尺寸:46.8 GB
- 磁盘0s6
- 格式:Linux Swap
- 大小:681.6 MB
我担心的原因有两点:1)Recovery HD 是可见的,我可能弄错了,但它不应该在磁盘工具中可见或安装,2)disk0s4 实际上是 ext4,而不是 JHFS+。
diskutil 列表的输出:
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 202.7 GB disk0s2
3: Apple_HFS Recovery HD 650.0 MB disk0s3
4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 46.8 GB disk0s4
5: Linux Swap 681.6 MB disk0s6
来自 gdisk...
>sudo gdisk /dev/disk0
Password:
GPT fdisk (gdisk) version 1.0.0
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): p
Disk /dev/disk0: 490234752 sectors, 233.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B01E51EA-D531-4CA4-ADA4-A936F8C27DCD
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 490234718
Partitions will be aligned on 8-sector boundaries
Total free space is 949 sectors (474.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 396222607 188.7 GiB AF00 Macintosh HD
3 396222608 397492143 619.9 MiB AF00 Recovery HD
4 397492224 488902655 43.6 GiB 8300
6 488902656 490233855 650.0 MiB 8200 Apple_HFS_Untitled_2
Command (? for help): ^C>
我之前曾使用过 gdisk 将我的硬盘混合为 MBR/GPT,并安装了 Ubuntu 14.04。
有人知道为什么会这样吗?disk0s5 在哪里?这会是个问题吗?
编辑:
gpt 有这个输出 -
>sudo gpt -vvv show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752
gpt show: /dev/disk0: Suspicious MBR at sector 0
gpt show: /dev/disk0: MBR part: type=175, start=409640, size=395812968
gpt show: /dev/disk0: MBR part: type=175, start=396222608, size=1269536
gpt show: /dev/disk0: MBR part: type=131, start=397492224, size=91410432
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: GPT partition: type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, start=40, size=409600
gpt show: /dev/disk0: GPT partition: type=48465300-0000-11AA-AA11-00306543ECAC, start=409640, size=395812968
gpt show: /dev/disk0: GPT partition: type=48465300-0000-11AA-AA11-00306543ECAC, start=396222608, size=1269536
gpt show: /dev/disk0: GPT partition: type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, start=397492224, size=91410432
gpt show: /dev/disk0: GPT partition: type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, start=488902656, size=1331200
gpt show: /dev/disk0: Sec GPT at sector 490234751
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 395812968 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
396222608 1269536 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
397492144 80
397492224 91410432 4 GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
488902656 1331200 6 GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
490233856 863
490234719 32 Sec GPT table
490234751 1 Sec GPT header
和 fdisk...:
>sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 0 0 1 - 1023 254 63 [ 1 - 409639] <Unknown ID>
*2: AF 1023 254 63 - 1023 254 63 [ 409640 - 395812968] HFS+
3: AF 1023 254 63 - 1023 254 63 [ 396222608 - 1269536] HFS+
4: 83 1023 254 63 - 1023 254 63 [ 397492224 - 91410432] Linux files*