Después de eliminar una partición de Windows, mi Recovery HD ha aumentado de tamaño a unos 70 GB. Me gustaría recuperar este espacio en disco en mi disco duro principal, pero no sé cómo. ¿Cuál es la forma más fácil de hacerlo?
La salida de la lista diskutil da:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 429.9 GB disk0s2
3: Apple_HFS Recovery HD 69.9 GB disk0s3
Mi máquina es una MacBook Pro 2015.
Y los resultados de los límites diskutil resizevolume disk0s3 dan:
Resize limits for partition disk0s3 Recovery HD:
Current partition size on map: 69.9 GB (69933821952 Bytes)
Minimum size (constrained by file usage): 553.4 MB (553422848 Bytes)
Recommended minimum size (if used for OS): 5.9 GB (5922131968 Bytes)
Maximum size (constrained by map space): 69.9 GB (69933821952 Bytes)
Reduzca el tamaño de la partición que contiene Recovery HD
el volumen. Puede hacer esto ingresando el comando que se indica a continuación.
diskutil resizeVolume disk0s3 660M
Descargue e instale la herramienta de terceros gdisk
.
Inicie la recuperación de macOS a través de Internet. Reinicie su Mac e inmediatamente mantenga presionada la combinación de teclas option++ . Suelte las teclas cuando aparezca el globo giratorio.⌘R
Deshabilite parcialmente la Protección de interconexión del sistema (SIP). En la barra de menú, seleccione Utilities➔Terminal
. Luego, ingrese el comando dado a continuación.
csrutil enable --without fs
Arranque de nuevo a macOS.
Utilice el comando interactivo gdisk
para cambiar el tipo de partición y los atributos de disk3s3
. Ingrese el comando dado a continuación
sudo gdisk /dev/disk0
Nota: El siguiente procedimiento asume que el campo 49 (bit #49) no está configurado. Si este campo está configurado, debe dejarlo configurado. En otras palabras, si el valor del atributo es
0002000000000000
, entonces se establece el campo 49.
A continuación se muestra un ejemplo de uso gdisk
para reparar su Mac.
Nota: Puede salir
gdisk
en cualquier momento sin guardar los cambios ingresando un control+ C.
GPT fdisk (gdisk) version 1.0.3
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): t
Partition number (1-3): 3
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): AB00
Changed type of partition to 'Recovery HD'
Command (? for help): x
Expert command (? for help): a
Partition number (1-3): 3
Known attributes are:
0: system partition
1: hide from EFI
2: legacy BIOS bootable
60: read-only
62: hidden
63: do not automount
Attribute value is 0000000000000000. Set fields are:
No fields set
Toggle which attribute field (0-63, 64 or <Enter> to exit): 49
Have enabled the 'Undefined bit #49' attribute.
Attribute value is 0002000000000000. Set fields are:
49 (Undefined bit #49)
Toggle which attribute field (0-63, 64 or <Enter> to exit):
Expert command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.
Habilitar SIP. Ingrese el comando que se indica a continuación, luego reinicie su Mac.
sudo csrutil clear
Recupera el espacio libre de vuelta al Macintosh HD
volumen. Puede hacer esto ingresando el comando dado a continuación
diskutil resizeVolume disk0s2 R
Reinicie su Mac y luego ingrese el siguiente comando para verificar los resultados.
diskutil list
david anderson
diskutil list
comando? Además, ¿cómo eliminó las particiones de Windows? ¿Cuál es el modelo/año de tu Mac?david anderson
diskutil resizevolume disk0s3 limits
gato s