Ich verwende OS X 10.10.5 (Yosemite).
Platzmangel auf ~60 GB Bootcamp NTFS-Partition mit 250 GB SSD. Es wurde versucht, die Mac-Partition zu reduzieren und Windows zu vergrößern, aber Win7 bootet nicht mehr. Ich möchte lieber nicht die mehrwöchigen Kopfschmerzen der Neuinstallation von Software durchmachen, auf die ich nach einem kürzlichen Umzug keinen sofortigen Zugriff habe; Außerdem muss ich wirklich arbeiten.
Nachdem ich mehrere Anweisungen gesucht und befolgt hatte, habe ich versucht, die Dinge zu reparieren, aber sie nur noch schlimmer gemacht. Ich habe es geschafft, Dateien abzurufen und zu sichern, habe aber jetzt nur Leseberechtigung von OSX. Es sieht so aus, als ob alle Daten noch vorhanden sind, aber ich habe keinen Zugriff. TestDisk liest: "Schreibzugriff für dieses Medium ist nicht verfügbar." Bootsektorwiederherstellung und MFT-Reparatur über TestDisk sind nicht möglich. Dachte mir, ich sollte aufhören zu versuchen, auf das Laufwerk zu schreiben, damit ich nicht noch mehr Chaos anrichte. Vielleicht ist es nicht zu retten, aber ich bin bereit, es zu versuchen. Gibt es da draußen Hilfe?
Peinlicherweise ging ich willkürlich an die Dinge heran und versuchte etwas willkürlich, sie zu beheben, ohne die Reihenfolge der Vorgänge aufzuzeichnen oder zu überdenken. Grobe Reihenfolge ist
Nachfolgend finden Sie Ausgaben von gdisk, fdisk, diskutil und testdisk.
sudo gpt -r -vv show disk0 Password: gpt show: disk0: mediasize=251000193024; sectorsize=512; blocks=490234752 gpt show: disk0: Suspicious MBR at sector 0 gpt show: disk0: Pri GPT at sector 1 gpt show: 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 272774744 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC 273184384 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC 274453920 98593376 373047296 117186560 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 490233856 863 490234719 32 Sec GPT table 490234751 1 Sec GPT header sudo fdisk /dev/disk0 Password: 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 2 - 1023 254 63 [ 1 - 373047295] <Unknown ID> *2: 07 1023 254 63 - 1023 254 63 [ 373047296 - 117186560] HPFS/QNX/AUX 3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused 4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused diskutil list /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 139.7 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 4: Microsoft Basic Data BOOTCAMP 60.0 GB disk0s4 TestDisk 7.1-WIP, Data Recovery Utility, October 2017 Christophe GRENIER <grenier@cgsecurity.org> http://www.cgsecurity.org Disk /dev/rdisk0 - 251 GB / 233 GiB - 490234752 sectors (RO) Current partition structure: Partition Start End Size in sectors 1 P EFI System 40 409639 409600 [EFI system partition] 2 P Mac HFS 409640 273184383 272774744 [Customer] 3 P Mac Boot 273184384 274453919 1269536 [Recovery HD] Warning: number of heads/cylinder mismatches 255 (NTFS) != 1 (HD) Warning: number of sectors per track mismatches 63 (NTFS) != 1 (HD) 4 P MS Data 373047296 490233855 117186560 [BOOTCAMP] [BOOTCAMP] The harddisk (251 GB / 233 GiB) seems too small! (< 1981 GB / 1845 GiB) Check the harddisk size: HD jumper settings, BIOS detection... The following partitions can't be recovered: Partition Start End Size in sectors Mac HFS 439371214 628115151 188743938 HFS blocksize=16777216, 96 GB / 90 GiB Mac HFS 448217086 3870769407 3422552322 HFS blocksize=67108864, 1752 GB / 1632 GiB MS Data 490233848 706013168 215779321 NTFS, blocksize=4096, 110 GB / 102 GiB MS Data 490233855 607420414 117186560 NTFS, blocksize=4096, 59 GB / 55 GiB Mac HFS 490234708 491504243 1269536 HFS+ blocksize=4096, 650 MB / 619 MiB Partition Start End Size in sectors P EFI System 40 409639 409600 [EFI System Partition] [EFI] FAT32, blocksize=512, 209 MB / 200 MiB D Mac HFS 409640 273184383 272774744 HFS+ blocksize=4096 + Backup, 139 GB / 130 GiB D MS Data 157267969 274454528 117186560 NTFS found using backup sector, blocksize=4096, 59 GB / 55 GiB D Mac HFS 250627280 439371217 188743938 HFS found using backup sector!, 96 GB / 90 GiB D Mac HFS 273184384 274453919 1269536 HFS+ blocksize=4096 + Backup, 650 MB / 619 MiB D MS Data 274454528 391641087 117186560 NTFS, blocksize=4096, 59 GB / 55 GiB D MS Data 274454528 490233848 215779321 [BOOTCAMP] NTFS found using backup sector, blocksize=4096, 110 GB / 102 GiB D MS Data 373047296 490233855 117186560 [BOOTCAMP] NTFS found using backup sector, blocksize=4096, 59 GB / 55 GiB D MS Data 392333427 392339600 6174 NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB D MS Data 392339600 392345773 6174 [Boot] NTFS, blocksize=512, 3161 KB / 3087 KiB D MS Data 392339619 392345792 6174 NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB D MS Data 392345792 392351965 6174 [Boot] NTFS, blocksize=512, 3161 KB / 3087 KiB D MS Data 392345811 392351984 6174 TFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB D MS Data 392351984 392358157 6174 [Boot] NTFS, blocksize=512, 3161 KB / 3087 KiB D EFI System 392358160 392361039 2880 [EFI System Partition] [EFISECTOR] FAT12, blocksize=512, 1474 KB / 1440 KiB D EFI System 392361040 392363919 2880 [EFI System Partition] [EFISECTOR] FAT12, blocksize=512, 1474 KB / 1440 KiB D MS Data 393466395 393472568 6174 NTFS found using backup sector, blocksize=512, 3161 KB / 3087 KiB D MS Data 393472568 393478741 6174 [Boot] NTFS, blocksize=512, 3161 KB / 3087 KiB D MS Data 452438731 452441610 2880 [NO NAME] FAT12, blocksize=512, 1474 KB / 1440 KiB D MS Data 467629110 467646179 17070 [NO NAME] FAT12, blocksize=4096, 8739 KB / 8535 KiB D MS Data 482388228 482420294 32067 [NO NAME] FAT12, blocksize=4096, 16 MB / 15 MiB D Mac HFS 488965176 490234711 1269536 HFS+ found using backup sector!, 650 MB / 619 MiB
Um Ihr Problem richtig zu diagnostizieren, wären mehr Informationen darüber erforderlich, was Sie getan haben, um das Problem überhaupt zu verursachen.
Ich glaube, dass die folgenden Aussagen wahr sind.
Sie scheinen Windows korrekt in der 4. Partition in der GPT installiert zu haben, aber falsch in der 2. Partition der MBR-Partitionstabelle. Es gibt 3 mögliche Lösungen.
Bearbeiten Sie die MBR-Partitionstabelle, um die Partitionen zu entfernen, und fügen Sie die in der GPT angezeigte 4-Partition hinzu. Die erste davon wäre natürlich eine schützende MBR-Partition. Sie können entweder fdisk
oder verwenden, gdisk
um dies zu tun. Das Dienstprogramm gdisk
verfügt über einen Befehl „Hybrid-MBR erstellen“, der diese Korrektur relativ einfach macht. Ein Beispiel ist unten angegeben.
Marlin:debug davidanderson$ 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): r
Recovery/transformation command (? for help): h
WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.
Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 2 3 4
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y
Creating entry for GPT partition #2 (MBR partition #2)
Enter an MBR hex code (default AF): af
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #3 (MBR partition #3)
Enter an MBR hex code (default AB): ab
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #4 (MBR partition #4)
Enter an MBR hex code (default 07): 07
Set the bootable flag? (Y/N): y
Recovery/transformation 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.
Bei Erfolg sudo fdisk /dev/disk0
sollte eine Ausgabe ähnlich der unten gezeigten ausgegeben werden. Hinweis: Ihre tatsächlichen Werte für cyl
, hd
und sec
können abweichen, aber das ist in Ordnung, da diese Werte ignoriert werden. Die wichtigen Werte sind #
, id
, start
und size
.
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 2 - 25 127 14 [ 1 - 409639] <Unknown ID>
2: AF 25 127 15 - 1023 254 63 [ 409640 - 272774744] HFS+
3: AB 1023 254 63 - 1023 254 63 [ 273184384 - 1269536] Darwin Boot
*4: 07 1023 254 63 - 1023 254 63 [ 373047296 - 117186560] HPFS/QNX/AUX
Booten Sie von der Windows 7-Installations-DVD, installieren Sie den Bootcode neu und erstellen Sie das BCD neu. Warnung: Bei Erfolg haben Sie von Windows aus keinen Zugriff auf die OS X (macOs)-Partition.
Sie müssen Lösung 1 implementieren, gefolgt von Lösung 2. In diesem Fall sollte die OS X (macOS)-Partition von Windows aus zugänglich sein.
permanent00b
permanent00b
David Anderson
permanent00b