3

I read online that there was a command line to activate the partition option on Disk Utility:

diskutil partitionDisk disk4 1 GPT HFS+ newdisk

Which is just supposed to unlock the possibility to partition THEN chose the partition size or erase. Instead it renamed the disk but it also made all my data disappear!!

Please tell me there's a way to retrieve it or I'm going to smash the Mac to pieces...

  • Firstly, welcome to Ask Different! :) Do you have a backup (e.g. Time Machine, etc)? – Monomeeth Dec 18 '18 at 21:19
  • 1
    do not tell me you messed with disk drive without making backup ? – Ruskes Dec 18 '18 at 22:27
  • No I don't have Time Machine, in fact I was trying to create a partition for it but because of Disk Utility crap update I couldn't, so I entered the command line which was only supposed to unlock to option to partition. – Augure Dec 19 '18 at 2:20
  • 1
    Don’t smash the mac - it was the operator that made the error... – Solar Mike Dec 19 '18 at 5:28
3

diskutil partitionDisk command does exactly what you described happening. Partitions a disk, removing all volumes. All volumes on the disk you ran the command on are destroyed. So you partitioned disk4 and renamed it newdisk using GPT HFS+. I'm not sure where you got the command information from but the command you entered did exactly what it was supposed to do. I would recommend looking into data recovery services if you need anything that was on that drive.

  • I'm looking into recovery app and have launched one but it'll take 18 hours. Does it allow for the recovery of the disk as is, with folders, filenames and metadatas? – Augure Dec 18 '18 at 20:03
  • 1
    I have no idea. More information would be needed to determine if you can recovery anything but if a disk is re-partitioned it's always possible that data was written over/lost. You may or may not be able to recover the data from the disk. – LaterSkater Dec 18 '18 at 20:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .