Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Windows partition corrupt or unbootable after Yosemite upgrade

My windows bootcamp partition no longer shows up as an option to boot to when hitting "alt/option" while starting.

Reads in disk utility as "disk0s4" and says can't repair disk. How do I recover or backup files?


Last login: Sun Jul 12 15:04:51 on console

tests-MacBook-Pro:~ johntcreedonjr1$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *320.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 135.1 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 159.7 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *134.8 GB disk1

Logical Volume on disk0s2

0EB5178D-45CE-4F4C-B367-86A984984B26

Unencrypted

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: Apple_partition_scheme *16.8 MB disk2

1: Apple_partition_map 32.3 KB disk2s1

2: Apple_HFS Flash Player 16.8 MB disk2s2

tests-MacBook-Pro:~ johntcreedonjr1$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group A976A795-6083-435C-9497-53BD967AAE54

=========================================================

Name: Macintosh HD

Status: Online

Size: 135135137792 B (135.1 GB)

Free Space: 18911232 B (18.9 MB)

|

+-< Physical Volume CF9A9FD2-9DA9-49B2-9467-EB4F541DA9E6

| ----------------------------------------------------

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 135135137792 B (135.1 GB)

|

+-> Logical Volume Family 27AB8FB5-EA5B-41E9-8703-42FFC7B025BD

----------------------------------------------------------

Encryption Status: Unlocked

Encryption Type: None

Conversion Status: NoConversion

Conversion Direction: -none-

Has Encrypted Extents: No

Fully Secure: No

Passphrase Required: No

|

+-> Logical Volume 0EB5178D-45CE-4F4C-B367-86A984984B26

---------------------------------------------------

Disk: disk1

Status: Online

Size (Total): 134763905024 B (134.8 GB)

Conversion Progress: -none-

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

tests-MacBook-Pro:~ johntcreedonjr1$ sudo gpt -w -r show /dev/disk0

When I tried the sudo commands, I entered the only password I recall having on this computer and it didn't work. Any idea how I can figure that out as well? My apologies, as I'm out of my element and don't really have any idea what I am doing here.

MacBook Pro, OS X Yosemite (10.10.1), null

Posted on Jul 18, 2015 1:44 PM

Reply
48 replies

Jul 18, 2015 1:48 PM in response to NovareRes

Can you post the output of the following Terminal commands?


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0


The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

Jul 18, 2015 2:11 PM in response to Loner T

Thanks Loner T - just posted the first two but hit a snag on the sudo commands. I typed in the same password I use for upgrades/installations and it didn't work. How do I figure out or reset password for sudo commands? Thanks!


I tried enabling user and changing passwords in Directory Utility but that password still doesn't do it.

Jul 18, 2015 2:48 PM in response to Loner T

Sorry - solved out the password issue. Here is the remaining info you requested. What next?

gpt show: /dev/disk0: mediasize=320072933376; sectorsize=512; blocks=625142448

gpt show: /dev/disk0: Suspicious MBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/disk0: Sec GPT at sector 625142447

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 263935816 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

264345456 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

265614992 47556976

313171968 311969792 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

625141760 655

625142415 32 Sec GPT table

625142447 1 Sec GPT header

tests-MacBook-Pro:~ johntcreedonjr1$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 38913/255/63 [625142448 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>

2: AC 1023 254 63 - 1023 254 63 [ 409640 - 263935816] <Unknown ID>

3: AB 1023 254 63 - 1023 254 63 [ 264345456 - 1269536] Darwin Boot

4: 0C 1023 254 63 - 1023 254 63 [ 313171968 - 311969792] Win95 FAT32L

Jul 18, 2015 6:08 PM in response to Loner T

Thank you so much! Downloaded Testdisk and GPT Fdisk and read through threads but I'm having trouble figuring out exactly how to actually boot Testdisk. I followed the step-by-step guide, looked up some videos but I just can't figure the simple act of opening the program. I have it in a folder on my desktop, it says its a text file, and whenever I click on it, it just opens up terminal and I have no idea what to do there. I tried a number of commands and directories to try to boot it from within terminal but I have no idea what I'm doing and have yet to succeed. I've never used nor opened terminal before today. How do I initially open testdisk?

Jul 19, 2015 10:46 AM in response to Loner T

Thank you again but now it says command not found. The folder is correct, the file is there.


tests-MacBook-Pro:~ johntcreedonjr1$ sudo ./desktop/testdisk-7.0.mac_intel/testdisk-7.0/testdisk

sudo: ./desktop/testdisk-7.0.mac_intel/testdisk-7.0/testdisk: command not found

tests-MacBook-Pro:~ johntcreedonjr1$ cd ~/Desktop

tests-MacBook-Pro:Desktop johntcreedonjr1$ cd testdisk-7.0.mac_intel/testdisk-7.0

tests-MacBook-Pro:testdisk-7.0 johntcreedonjr1$ sudo ./testdisk /dev/rdisk0

Password:

sudo: ./testdisk: command not found

tests-MacBook-Pro:testdisk-7.0 johntcreedonjr1$ sud ./testdisk

-bash: sud: command not found


How do I get output "output of ls -l"?

Jul 19, 2015 2:26 PM in response to Loner T

Sorry - didn't realize that was an "L":

tests-MacBook-Pro:testdisk-7.0 johntcreedonjr1$ ls -l

total 9232

drwxr-xr-x 3 johntcreedonjr1 staff 102 Jul 18 18:31 78

-rw-r--r-- 1 johntcreedonjr1 staff 216 Nov 11 2007 AUTHORS

-rw-r--r-- 1 johntcreedonjr1 staff 17987 Jun 15 2006 COPYING

-rw-r--r-- 1 johntcreedonjr1 staff 117 Apr 18 05:55 INFO

-rw-r--r-- 1 johntcreedonjr1 staff 18573 Apr 18 05:55 NEWS

-rw-r--r-- 1 johntcreedonjr1 staff 2085 Jun 27 2012 README

-rw-r--r-- 1 johntcreedonjr1 staff 344 Apr 21 2008 THANKS

-rw-r--r-- 1 johntcreedonjr1 staff 34 Apr 18 07:01 VERSION

-rw-r--r-- 1 johntcreedonjr1 staff 312 Apr 16 2011 documentation.html

-rw-r--r-- 1 johntcreedonjr1 staff 521340 Apr 18 07:01 fidentify

-rw-r--r-- 1 johntcreedonjr1 staff 898 Apr 18 05:56 fidentify.8

drwxr-xr-x 9 johntcreedonjr1 staff 306 Jul 18 18:31 icons

-rw-r--r-- 1 johntcreedonjr1 staff 2187716 Apr 18 07:01 photorec

-rw-r--r-- 1 johntcreedonjr1 staff 1165 Apr 18 05:56 photorec.8

-rw-r--r-- 1 johntcreedonjr1 staff 1021 Apr 18 05:56 qphotorec.8

-rw-r--r-- 1 johntcreedonjr1 staff 239 Mar 10 2012 readme.txt

-rw-r--r-- 1 johntcreedonjr1 staff 1923704 Apr 18 07:01 testdisk

-rw-r--r-- 1 johntcreedonjr1 staff 1750 Apr 18 05:56 testdisk.8

tests-MacBook-Pro:testdisk-7.0 johntcreedonjr1$

Jul 19, 2015 3:15 PM in response to NovareRes

On my Mac...


ls -l ~/Downloads/testdisk-7.0-WIP/

total 9168

drwxr-xr-x@ 3 MyName staff 102 Sep 13 2014 78

-rw-r--r--@ 1 MyName staff 216 Nov 11 2007 AUTHORS

-rw-r--r--@ 1 MyName staff 17987 Jun 15 2006 COPYING

-rw-r--r--@ 1 MyName staff 117 Jan 8 2014 INFO

-rw-r--r--@ 1 MyName staff 16685 Aug 5 2013 NEWS

-rw-r--r--@ 1 MyName staff 2085 Jun 27 2012 README

-rw-r--r--@ 1 MyName staff 344 Apr 21 2008 THANKS

-rw-r--r--@ 1 MyName staff 38 Sep 13 2014 VERSION

-rw-r--r--@ 1 MyName staff 312 Apr 16 2011 documentation.html

-rwxr-xr-x@ 1 MyName staff 505624 Sep 13 2014 fidentify

-rw-r--r--@ 1 MyName staff 530 Aug 9 2014 fidentify.8

drwxr-xr-x@ 5 MyName staff 170 Sep 13 2014 ico

-rwxr-xr-x@ 1 MyName staff 2177480 Sep 13 2014 photorec

-rw-r--r--@ 1 MyName staff 1082 Aug 9 2014 photorec.8

-rw-r--r--@ 1 MyName staff 239 Mar 10 2012 readme.txt

-rwxr-xr-x@ 1 MyName staff 1924576 Sep 13 2014 testdisk

-rw-r--r--@ 1 MyName staff 1667 Aug 9 2014 testdisk.8


The highlighted line shows the additional 'x' which is a mnemonic for execute. It is missing in your case.


Please try


chmod a+rx testdisk


and test again.


It should look like - https://imgur.com/a/PjmnK

Windows partition corrupt or unbootable after Yosemite upgrade

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.