这是从Superuser导入的,我觉得比在Superuser中更容易在这里获得答案-如下所示进行复制粘贴。
因此,我在磁盘工具和diskutil中有一些奇怪的问题。(希望如此)这不是问题,但是我只想确保我没有走上磁盘损坏或故障的道路。这是磁盘实用程序读取硬盘的方式:
(已列出)
- 磁盘描述:APPLE SSD SD0256F介质
- 总容量:251 GB(251,000,193,024字节)
- 连接总线:PCI
- 写入状态:读/写
- 类型和位置:固态硬盘,内部
- SMART状态:已验证
- 分区图方案:GUID分区表
这是分区:
- Macintosh HD
- 格式:Mac OS Extended(已发布)
- 大小:202.66 GB
- 恢复高清
- 格式:Mac OS Extended(已发布)
- 大小:650 MB
- 磁盘0s4
- 格式:Mac OS Extended(已发布)
- 大小:46.8 GB
- 磁盘0s6
- 格式:Linux交换
- 大小:681.6 MB
我担心的原因有两点:1)可以看到Recovery HD,这可能会引起我的误解,但不应看到它,也不能将其安装在Disk Utility中,以及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>
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*
我之前使用过gdisk来使硬盘驱动器混合MBR / GPT,并且已经安装了Ubuntu 14.04。
任何人都想知道这是为什么,disk0s5在哪里,这会是一个问题吗?