Paging `dd` gurus: How did this use of `dd` destroy my Macbook Air HD?

Hi all,
edit: tl;dr:
1) What code tells the Macbook Air (or any PC?) how to boot from a flash drive in the USB port? That wouldn't live on the hard drive or be a part of the MBR or GPT would it? I would have thought that lives in the Macbook's firmware somewhere.
2) Can `dd` change a computer's firmware?
end tl;dr
I'm brand new to Arch Linux, but really like it so far. I got it running nice and smooth on my 4 year old Macbook, so I tried installing it on my Macbook Air.
Long story short, I apparently permanently incapacitated my late 2010 Macbook Air's hard drive from a poor use of `dd`. A new hard drive is on the way and will be taken care of, but I'm curious to learn what exactly my actions did.
After my unfortunate actions, the macbook after powering on would just hang at a gray screen. Tapping the power button didn't do anything, but holding the power button turned it off. I tried putting in the system restore USB stick that came with it, and rebooted while holding down c, and nothing happened. Rebooting while holding down option didn't bring up the boot disk menu. Holding down Cmd+Shift+P+R seemed to reset the PRAM (at least, it restarted like it's supposed to), but didn't fix anything.
I took it into my local Apple store and the Genius at the Genius Bar didn't know what to do. He said we couldn't boot from a restore USB drive, which also means we couldn't boot into target disk mode. He took it to the back area and confirmed the issue is solely with the hard drive, but didn't know of any way to fix the drive (some sort of weird 'blade' drive?). The only thing we could do was order a new drive to replace it.
So my question:
WHAT did my use of `dd` DO, to so permanently mess up the drive? I would have thought it would make a non-functional partition, or at worst mess up the MBR/GPT, but I thought that I'd still be able to boot up with the system restore drive and reformat and fix everything. Isn't booting from a USB drive taken care of by the EFI firmware? Could `dd` really corrupt that?
From memory, below are the detailed steps of what I did. Step 10 is where I typed the `dd` command that I think was the end of my poor drive.
1) Use OS X's Disk Utility program to shrink my OS X partition, leaving about 50 GB of free space.
2) Following (https://wiki.archlinux.org/index.php/US … n_Mac_OS_X), I put an Arch image on my USB flash drive.
3) I installed rEFIt.
4) I booted up with the flash drive inserted, and used rEFIt to select the flash drive.
5) Arch Linux came up. I fire up parted, and saw partition 1 was the EFI partition, 2 was my OS X partition, 3 was some sort of "Recovery CD" partition, and the rest was free space. I typed
mkpart 4 ext4 nnnnnMB -0
(after setting MB as the default unit), and then quit.
6) I restarted, and used rEFIt's tool to MBR <> GPT sync.
7) I restarted, now there were three options: OS X, Linux on the hard drive, and Linux on the flash drive. Both of the Linux options at this point resulted in "No operating system found" if I tried to load them. I understood the new empty partition would be like that, but I'm not sure why the flash drive no longer worked.
8) Puzzled, I booted OS X to search the web. An Ubuntu tutorial somewhere suggested `dd`-ing the .iso into an empty partition. I figured that since I could boot just fine from the USB drive, the first time, maybe if I put the Arch .iso in my new partition I'd be able to boot into it... (I'm thinking now there might have been filesystem issues with that idea.)
9) I opened Disk Utility and saw beneath the icon for my hard drive two entries: My Mac partition, and one called /dev/disk0s4. The flash drive, when it was in there earlier was known as /dev/disk1, and in the linux side I would have thought the new ext4 partition I created would be called /dev/sda4. I therefore assumed /dev/disk0s4 referred to my newly created partition.
10) I opened my terminal and typed
sudo dd if=arch.iso of=/dev/disk0s4 bs=8192
. It waited a while and then it gave the summary of how much it wrote. I didn't pay attention to the output, other than that it looked fairly normal, and I don't remember now what it said exactly.
11) I rebooted.
12) DISASTER
Thanks,
Gabe
Last edited by gjd (2011-09-26 20:08:52)

PSW wrote:
gjd wrote:WHAT did my use of `dd` DO, to so permanently mess up the drive? I would have thought it would make a non-functional partition, or at worst mess up the MBR/GPT
This would be my thought too. Unless the Hard Drives in Macs are fundamentally different from those in PCs dd shouldn't break the drive. At most it would corrupt the fuck out of the files on it. Nothing a little partitioning and formatting wont take care of.
I'm relieved to hear my understanding of booting is not too off base.
Is it possible to remove the HDD from a Mac? My first thought would be to plug it into another computer and see exactly what's going on with it.
It is possible to remove, although they're somewhat non-standard in shape (See: MBA's blade-type drives, http://www.wired.com/gadgetlab/2010/11/ … o-anyone/), so I'm not sure how I'd be able to use it on another computer.
However, today at the Apple store they're putting in a brand new drive, which is supposed to fix the problem. If my MBA can boot a brand new drive, I don't see why it wouldn't be able to boot my corrupted drive. I guess this raises two questions for me:
1) When brand new hard drives are shipped, do they generally come zeroed out? Do they have unspecified data? Is there some sort of MBR structure already on them? I realize Apple might be different here, but what about your standard PC drive?
2) Could dd have somehow caused a hardware failure of the drive? From, I don't know, overheating or something? My drive was a SSD, if that matters.
Thanks for your response.

Similar Messages

  • How do I use a projector with my macbook air 11 inch?

    I'm a frequent traveler and use my portable projector for webinars and presentations? How do I connect my macbook air 11 inch to my projector with VGA inputs?

    This adapter and sufficient length VGA cable is all you need.

  • How do i use airplay on my new macbook air ?

    Just purchase a MacAir 11" with the promise I could use Airplay. Can't find the icon or on the top bar. What am I doing wrong?

    Check the option to display on menubar in System Preferences > Displays.
    http://support.apple.com/kb/HT5404
    Edit: Also your profile indicates you're running Lion.  Airplay mirroring is only available on Mountain Lion.

  • How can I use my passport on my MacBook Air keeps saying media type is not supported?

    Im trying to watchmovies on my new Macbook air but it keeps coming up with Quicktime player can't open because a required codec isn't available. I have already downloaded WMV Player and Divx and neither of these are working???

    download Flip4mac.

  • Hello I told you before that my ipad stolen and i dont have icloud , now i pay another ipad and i'm surprise becouse i found my notes that in my stolen ipad in my new one but i don't find anything else no bookmarkets no photos .. My question how did this

    Hello
    I told you before that my ipad stolen and i dont have icloud , now i pay another ipad and i'm surprise becouse i found my notes that in my stolen ipad in my new one but i don't find anything else no bookmarkets no photos .. My question how did this happen ??

    Your documents were synched with iCloud when you logged in with your AppleID.   If you had a photostream before, you could access some photos using the stream.

  • I lost my status from Administrator to standard. Now I have no way of accessing anything into my mac. How did this happen? And how can I go back to being a admin? I'm the only account on my mac and now I cant access anything. Help Help!!1

    I lost my status from administrator to standard and now I have no access to anything on my mac. I'm the only account on my mac. How did this happen? and what can I do to fix this? Help Help!!!

    anastasia808,
    which model Mac do you have, and which version of OS X is installed on it?

  • I use photoshop elements 12 on Macbook air and the screen freezes when I try to use the tools. Then i have to force quit so i lose my work. anyone know how to fix this issue?

    I use photoshop elements 12 on Macbook air and the screen freezes when I try to use the tools. Then i have to force quit so i lose my work. anyone know how to fix this issue?

    What version of OS X are you using? If Yosemite, you need to update to 10.10.1 or higher.
    In any case, start by going to the editor preferences>general, clicking this button and restarting the editor:

  • I downloaded an album last night from iTunes.  This morning i noticed it was in my music on my iPhone.  I have the auto Sync turned off.  How did this happen?

    I downloaded an album last night from iTunes.  This morning i noticed it was in my music on my iPhone.  I have the auto Sync turned off.  How did this happen?

    Settings/Store worked...thanks Lawrence

  • HT202058 iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    iphone 6+ somehow has switched my name on emails into my nephew's name. We share a first and last name but not a middle name. For example, my name might be John George Doe and his name John James Doe. How did this happen? How do I correct it.

    So if the solution recommended by Ralph is not working then the other option is this:
    Please make sure that the emails work correctly when signed into, on a computer
    Then delete the account off your phone - you will not lose the emails
    Reset the phone
    Re add the account back in and see if that helps the issue
    Thanks

  • Ok so i installed windows 7 ultimate 64 bit on a 50 GB partition and now i only have 3.02 GB free HOW DID THIS HAPPEN!!??

    I didnt install anything but google chrome and GTA 4 which is 17 GB total and some how i have only 3.02 GB free of a 50 GB partition how did this happen?

    My Windows 7 virtual machine file is 49.16GB, so I can confrm what Bob says is true.
    Welcome to the world of bloatware. 

  • HT4528 My iphone just lost all of my contacts seemingly out of nowhere, how did this happen?  How can I fix it?

    My iphone just lost all of my contacts.  How did this happen and how can i get them back??

    If they're gone from icloud.com, then they aren't in iCloud.  You could try waiting a while to see if this was caused by a server glitch and they will reappear.  You could also try contacting Apple support to see if there is anything they can do at their end: http://www.apple.com/support/icloud/contact/.
    Otherwise, you may be able to restore them by restoring your last iCloud backup.  Doing this is a bit tricky, as you have to interrupt the restore process as soon as your phone restarts while restoring, either by putting it in airplane mode or pulling the internet connection to your router.  If you don't, iCloud will overwrite and erase any restored calendars.  Then you can disable iCloud calendar syncing and save the calendars to your phone, re-enable your wifi connection and let the restore process proceed, delete any existing calendars from icloud, and turn on icloud syncing on your phone again to upload the recover calendars to iCloud.  This process is explained in this user tip from Winston Churchill: https://discussions.apple.com/docs/DOC-4841.  While this was written for contacts, just replace calendars for contacts and for the same instructions.

  • So i sent 2 PXTs to someone and it came up on their phone from 2 different numbers and none of them mine. I called those numbers and they were just normal people and they had no idea what had happened. How did this happen?

    So i sent 2 PXTs to someone and it came up on their phone from 2 different numbers and none of them mine. I called those numbers and they were just normal people and they had no idea what had happened. How did this happen?
    Both phones were iPhone 4s and everyone was with different carriers.

    Simple process. If an iPhone go to the Apple Store and not Verizon
    the phone from Verizon will be a refurbished device and not new unless under the 14 day worry free guarantee
    good luck

  • Bloodwork Results incorrect - How did this record get entered into my HealthVault?

    I recently had bloodworm done at LabCorp and viewed my results online in my HealthVault.  Shortly thereafter, another record, dated December 10, 2013, appeared in my HealthVault.  How did this record get into my HealthVault?  The record
    was a result of testing done by LifeLine Screening, but, when contacted, they said that they DID NOT put that record in my HealthVault.  They asked if I had given my LifeLine Screening report to any doctors.  I did, in fact, give my record to my
    doctor on Feb. 3, 2014.  I then contacted that Doctor's office and they stated that the record from LifeLine Screening had NOT been entered into their system as of yet (Their system is Ochsner)  So, I don't know how the LifeLine Screening test results
    got into my HealthVault online.  Also, there is a discrepancy in the LifeLine Screening report that they sent me directly through the mail, and the results that appear in my HealthVault.  My eGFR on the LifeLine Screening report from 12-10-2013 is
    "55", whereas, the result in the HealthVault record reflects "eGFR If NonAfricn Am 61"  How do you explain this? 

    Hello Rose,
    My name is Josh, I'm a member of the HealthVault support team, I work closely with Tomas whom initially responded to your concerns.  I was hoping to find out whether there was anything we could do to assist you in resolving this issue.  Your
    concerns are extremely important to us, and we want to ensure this has been resolved.  We're a very responsive team, and I've taken this issue on as a personal concern, but I don't yet have enough information to continue investigating.  If this has
    been rectified to your satisfaction or is no longer occurring, we'd really appreciate you letting us know how it was resolved and/or what may have changed.  Just a quick response in this thread would be terrific.
    If this is still an issue that you're seeing, following Tomas's instructions about creating a ticket would be very valuable and would help provide us the information we need to move our investigation forward. 
    We hope to hear from you soon Rose
    Josh
    MS HealthVault Team

  • How did the used space on my hard drive increase so fast?

    I just bought a new laptop at Best Buy and when I first got it I had 280gb of 285gb free space on my harddrive. After only a few days and no new progams or hardware installed, it now says that I only have 247gb of 285gb free space.
    How did this happen? The only thing I can think of is a Windows Update that took place - but I doubt that would take up so much hard drive space?
    Thanks for any help.

    I'm not really sure without looking at the unit. My best suggestion, have the Geek Squad at your local store check it out.
    Adam
    Best Buy Community - Retail, Americas
    Forum Guidelines | Terms & Conditions | Community Guidelines | Blogging Guidelines
    *Remember to mark your questions solved and click the star under the user's name to show your thanks!

  • How do I use iCloud to backup my Macbook Pro?

    How do I use iCloud to backup my Macbook Pro?

    Hi Rob
    It sounds like my problem is the same as yours..... Sorry, but I'm a bit of an iPad dummy so am writing for some more clarification...
    My problem is..... I am away from home and only travelling with my iPad, however we have sold our house and my bigpond email address on my iPad is getting clogged with all the solicitors stuff etc, so I really need these emails for my files...
    I want to be able to backup these up (so that I can retrieve them later to print out and file) and delete them from my iPad...
    I've just created an iCloud email account (I think) is this what you did? So should I forward all my emails to this iCloud email account? And will I be able to retrieve them later?
    I hope you login here to see my question.....
    Thanks Janet

Maybe you are looking for