How to Erase or Format a Mac Hard Drive via Command Line

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 115

  • @harrymagooslum5770
    @harrymagooslum5770 3 роки тому +7

    The GUI based "Disk Utility" wasn't letting me break down the multiple partitions and reform my external USB drive... but your command line method worked like a charm. Thanks for making it simple and being so concise. Your soft voice was a pleasure to hear and I followed alongside knowing that you wouldn't lead me astray. Kudos and much thanks to you, my friend.

  • @abelszabo8541
    @abelszabo8541 3 роки тому +3

    How do you only have 277 likes??!!!! Other videos have terrible explaining and they didn't even fix the problem and you? You are amazing and I can't believe it actually worked you are a lifesaver

  • @greg_harding
    @greg_harding Рік тому +1

    Brilliant! I was having issues with disk utility formatting large volume disks to only 1.6TB. I was losing my mind and all the forums just point to the driver being the issue. This totally sorted it out. You've earnt a new sub and a big like!

  • @HugoAlexandreCruz
    @HugoAlexandreCruz 2 роки тому +1

    Great ! Saved me a disk! super easy to follow video! Keep strong and have a great 2022

  • @owl_bear
    @owl_bear 4 роки тому +8

    Very helpful video! Other formatting options not covered here, which can be inserted in place of APFS: ExFAT, FAT32, HFS+, or JHFS+

    • @MrUnderdawg777
      @MrUnderdawg777 4 роки тому +1

      I nearly just turned this off thanks to the pair of you 💙 be safe people in these times

    • @MrUnderdawg777
      @MrUnderdawg777 4 роки тому

      Nope unable to write to the last block of the device when I try to erase it ? Any tips 😇

  • @WitMonday
    @WitMonday Рік тому

    Thank you. I'm a old novice and this helped a lot regards Vic

  • @vnzarius
    @vnzarius 3 місяці тому

    2024 and this worked like magic! thankls man

  • @hbomb1512
    @hbomb1512 3 роки тому

    You are the best! Been searching for hours how to fix this!

  • @kevinbedzi2095
    @kevinbedzi2095 3 роки тому

    Thank you so much. I have been trying to erase a partitioned disk and combine it with the internal main disk and your video helped me achieve that.

  • @DjDestinyChicago
    @DjDestinyChicago 3 роки тому

    I wish I found this sooner! I wasted hours!! Thank you 🙏

  • @shanegilbert6574
    @shanegilbert6574 2 роки тому

    Worked like a charm, couldn't do it on Windows PC's disk management... Didn't feel like doing it on diskpart

  • @NotExplainable
    @NotExplainable 5 років тому +1

    Hey man I would appreciate it so much if you could do a short follow up video explaining how to expand your windows partition in boot camp! There’s no real recent tutorials on how to do it and I think a lot of people would find it helpful/useful.🙏🏾💯 great channel btw!

  • @educapro
    @educapro 4 роки тому

    Thank you, thank you, thank you my friend. This was spot on. I had just briefly forgotten about the file formats but this quickly jarred my memory. With the changing of the guard from HFS to APFS, bumping the external up to APFS (format-wise) was the call now that most current systems are running 10.14 or higher. Brilliant video, I will be checking back from time to time. Cheers!

  • @JW-nd5wr
    @JW-nd5wr 2 роки тому

    I've been messing with this three days you save me 😜🥵😅

  • @superneph4902
    @superneph4902 6 місяців тому

    Thank you so much just got a new sd card that had an issue where it went from 128gb to 4gb and this fixed it thanks!!!

  • @JCAPI
    @JCAPI 4 роки тому

    this was so helpful. Disk formatting wouldn't in disk utilities but worked great using the terminal. Thanks!

  • @AIExplainsThePowerOfGodsLove
    @AIExplainsThePowerOfGodsLove 4 роки тому +1

    Hi thank you for this video I followed it to the letter and the message I get is
    Started erase on disk2
    Unmounting disk
    Error: -69877: Couldn't open device
    Any idea what I can do?

  • @steven_patrick
    @steven_patrick Рік тому

    Thanks, that solved my problem. I had a disk with 5 partitions that normal Disk Utility would not be erased. Now it is back to 1 partition.

  • @Qtonalli
    @Qtonalli Рік тому

    I had the same problem and followed the steps, although in the end I had to erase the disk from the terminal. It has been a whole day and it is still in the erasing process. Will it take longer? Or is there a possibility that it has frozen?

  • @MrImdad
    @MrImdad 2 роки тому

    You Solved my Mac OS installation problem which was stuck in erasing hard disk

  • @ajitahujaa
    @ajitahujaa 3 роки тому

    Super helpful! Thanks a ton, champion! This worked like magic.

  • @DaniTanase96
    @DaniTanase96 4 роки тому +1

    Thank you very much. It was helpfull and you have all my apreciation.

  • @josephs1488
    @josephs1488 2 роки тому

    I am switching my 2012 macbook pro to an SSD from HDD but disk Utility is throwing a osStatus error 49157. I have searched and removed time machine snapshots, but same result. Super Duper and Carbon Copy Cloner are non-effective. (Tried, both failed.)
    Any suggestions or (preferably) solutions?
    Great video with precise details about formatting. Thank you!

  • @MrUnderdawg777
    @MrUnderdawg777 4 роки тому

    Great video 😇 mine says can't write to the last block of device ? Any tips ? Much appreciated 🙏

  • @FadzliRealtor
    @FadzliRealtor 3 роки тому

    I am trying to reinstall after deleting it previously for a new owner for my laptop. Now I want to install the OS. It keeps on giving me error saying "an error occurred when preparing the installation".
    Changed the date and time still nothing.
    So I am trying to start from the beginning by erasing everything again. APFS is greyed out. When I choose Mac OS extended journaled, it gives me an error.

  • @Lokasoyourphotofriend
    @Lokasoyourphotofriend 4 роки тому

    Thanks so much buddy! The most helpful video amongst all others!!

  • @BeMOzArt
    @BeMOzArt 2 роки тому

    Hi Can i format only a partition with terminal? not whole disk

  • @UltimateGin
    @UltimateGin 2 роки тому

    Worked for me thank you !

  • @TechGeniusHacks
    @TechGeniusHacks 4 роки тому

    Awesome and clean explanation

  • @fbenfrank
    @fbenfrank 5 років тому +1

    Great video!!!!! Very Helpful. 👍👍

  • @apersonwhoknows
    @apersonwhoknows 4 роки тому

    I have an internal hitachi hd that appears to be fine when verifying the disk and repairing it. Expect I"m not able to repair disk or verify the permissions for it. Is there a way to fix this problem let alone mount the disk by chance?

  • @kzainovafilmes3812
    @kzainovafilmes3812 Рік тому

    hey thank, the best video

  • @condorfree1992
    @condorfree1992 2 роки тому

    worked nicely

  • @ahmedhesham5009
    @ahmedhesham5009 3 роки тому

    You are a LEGEND 😎

  • @dantelima1
    @dantelima1 Рік тому

    I did exactly as it is in the video but got the following message Error: -69760: Unable to write to the last block of the device. Can you help me?

  • @SilentTroll88
    @SilentTroll88 7 місяців тому

    Pretty cool thanks

  • @teachermanret
    @teachermanret 3 роки тому

    I do so like your videos for erasing etc Mac drives. Can you help erasing and formatting etc a Seagate 2TB disk originally meant for an Acronis True Image. I've tried all sorts but it always fails with, presumably, an error message -69877. Thanks

    • @OptimusGrind3333
      @OptimusGrind3333 3 роки тому

      Hey, unmount the disk before running the command. Worked for me. Wooo

  • @KRS_5150
    @KRS_5150 4 роки тому +1

    Error: -69888: couldn't unmount disk
    I can not get this SSD to unmount or even erase in my MBP

    • @KRS_5150
      @KRS_5150 4 роки тому

      Figured out the problem!

    • @chrismaister721
      @chrismaister721 4 роки тому +1

      @@KRS_5150 Hi, I'm getting the same issue. Could you please let me know how you figured it out?

    • @KRS_5150
      @KRS_5150 4 роки тому +1

      chris maister new sata cable! $10 on Amazon.

    • @chrismaister721
      @chrismaister721 4 роки тому +1

      @@KRS_5150 Many thanks mate!!cheers

    • @name22786
      @name22786 4 роки тому +1

      You have to unmount the disk in the finder first.

  • @orlandogarcia4403
    @orlandogarcia4403 4 роки тому

    Thanks man, you are a PRO!!

  • @jesusabalos555
    @jesusabalos555 4 роки тому

    Thanks uploader, it works

  • @artkiko4460
    @artkiko4460 4 роки тому

    great video. i have an HD that is now not working well with Carbon Copy Cloner, to make a sparse bundle clone. i can restore a volume on this HD from an existing clone but i cannot create a new clone from it without an error. it has a few bad blocks. the data is backed up. would reformatting the drive using Secure Erase (vs Quick Erase, as shown here) allow me to get around this issue or are Bad Blocks already handled by the drive's Firmware and there's really nothing i can do about this? thank you.

  • @davewatt28
    @davewatt28 3 роки тому

    an excellent guide. Thank you

  • @sharonharrison4795
    @sharonharrison4795 3 роки тому

    Worked like a charm
    TYFS!

  • @WOLFSPARTAN117
    @WOLFSPARTAN117 3 роки тому

    Thank you so much you help me out alot

  • @jaleo_in
    @jaleo_in 4 роки тому

    Awesome X10 . ...
    This saved my day..
    thanks mate

  • @Taylor_Brooke
    @Taylor_Brooke 4 роки тому

    I used “diskutil eraseDisk jhfs+ Internal /dev/disk17” it started to erase, in mount, create partition map, waiting for partition map to activate, formatting disk17s1 as Mac OS extended (journaled) with name Internal. BUT THEN IT SAYS “Error: -69850: The chosen size is not valid for the chosen file system. Idk what this means. Help?

  • @DirkKuepper
    @DirkKuepper 4 роки тому

    How does this work in the terminal if the hard disk is already APFS formatted and Catalina is present on it.

  • @simplyyam
    @simplyyam 4 роки тому

    I'm trying to erase my internal hard drive using diskutil eraseDisk JHFS+ hardrivename diskN to do a fresh install but upon reaching 50% im getting error -69760: Unable to write to the last block of the device. Im also getting the same prompt on disk utility. Does it mean that my hard drive or possibly hard drive cable is toast?
    Thanks for any help.

    • @MrUnderdawg777
      @MrUnderdawg777 4 роки тому

      I'm getting the same issue with 2 diffrent cables and a new external harddrive 🤦🏽‍♂️

  • @huntermason3678
    @huntermason3678 3 роки тому

    Very helpful, thank you!

  • @fredriknydal
    @fredriknydal 4 роки тому +5

    oh man! Thank you for saving noobs like me.

  • @jhrobbins97
    @jhrobbins97 4 роки тому

    Hello, I have been trying a lot of your videos to try reset an external drive... I followed this video all the way to the erase disk command but got the error message "error: -69877: Couldn't open Device: I know you're not a tech help guy for random people on the internet like me, but I would really appreciate any help. The disk shows up with the diskutil command, but it seems to not let me do anything to it. thanks for any help.

    • @gokayerenn
      @gokayerenn 3 роки тому

      Did you find any solutions?I have the same issue

    • @jhrobbins97
      @jhrobbins97 3 роки тому

      @@gokayerenn I have not, the disk is still sitting unresponsive in my drawer lol.

  • @ChathuraRanawaka
    @ChathuraRanawaka 2 роки тому

    Thank you very much!!

  • @danstutorials3904
    @danstutorials3904 2 роки тому

    Hi I get this error "You cannot manually format an existing APFS Container disk"

  • @bernardthecreator
    @bernardthecreator 4 роки тому

    Life saver!!!!Thanks a billion times!😍😍😍

  • @SOCALPRINTER
    @SOCALPRINTER 3 роки тому

    Thank you!!! You saved me.

  • @ChuckCasella
    @ChuckCasella 4 роки тому

    saved my drive....great tut

  • @jathinm2940
    @jathinm2940 3 роки тому

    Bro how much time would it take to erase a 750 gb disk

  • @NikosKorakakis
    @NikosKorakakis 3 роки тому

    Nice video mate!
    A question. Im using a raid 5 configaration on an external drive. Although I can see it and use normal the software and the hardware raid , my mac wont format it. I formated on a pc and now my mac wont mount it. Any sugestions?

  • @richardmartinsmulki8277
    @richardmartinsmulki8277 Рік тому

    Please help me my mouse is not clicking I use external mouse still not clicking what could me the problem

  • @vb0.o
    @vb0.o 4 роки тому +1

    it says ‘couldn’t open device’ , any way to workaround this? i’ve tried lots of different methods

  • @attilavidacs24
    @attilavidacs24 3 роки тому

    How do I format the disk including the boot partition? When I do your command it says I can't format the boot disk. (I'm trying to format whilst in the recovery screen.

    • @GemsbokAppleTipsandTricks
      @GemsbokAppleTipsandTricks  3 роки тому

      If you've booted into the recovery partition from the local disk, then it may not let you format the drive because you're booted from a section of it. Try these two optional key combinations to boot and they should help. Note, they boot over the Internet, so your boot will take a loooong time, so you'll have to wait for it.
      Option-Command-R
      Shift-Option-Command-R

  • @Soltheman79
    @Soltheman79 4 роки тому

    I'm trying to uninstall linux and i installed it on the same drive as bootcamp and bootcamp is in my disk1 so do i just format disk1?

  • @ASLrelaxation
    @ASLrelaxation Рік тому

    I did it exactly as you said and it still says it couldn’t unmount the disk

  • @Daisyhstone
    @Daisyhstone 4 роки тому

    Hey, my external disk is ‘windows_fat_32’ how do I get it to say Apple? Or is this not an issue?

    • @GemsbokAppleTipsandTricks
      @GemsbokAppleTipsandTricks  4 роки тому +1

      It’s not really an issue. It should work fine for most Mac functions. It’s just if it’s a Time Machine dusk or a startup disk that it would need to be a Mac specific format.

  • @joemarsarmiento6654
    @joemarsarmiento6654 3 роки тому

    Terminal is giving me this message:
    Joemar:~ jose$ diskutil eraseDisk APFS External /dev/disk2
    Started erase on disk2
    Unmounting disk
    Creating the partition map
    Error: -69877: Couldn't open device
    Joemar:~ jose$
    Any advise on how to fix this? Thanks in advance.

  • @jimwebber7516
    @jimwebber7516 4 роки тому

    I was very hopeful but I got this error: Error: -69825: Wiping volume data to prevent future accidental probing failed

  • @kxngarthur24680
    @kxngarthur24680 4 роки тому

    My card is sis stuck on waiting for the partitions to open and then nothing happens after that

  • @PanchoCarpediem
    @PanchoCarpediem 4 роки тому

    Hey!! I got "eraseDisk : command not found" message... someone knows any solution to that??

  • @Pimp_I_D
    @Pimp_I_D 4 роки тому +1

    Having tried other tutorials that didn't work - THIS ONE DID! Tk U!

    • @calvintobias5245
      @calvintobias5245 3 роки тому

      a trick : you can watch series on Flixzone. I've been using them for watching a lot of movies during the lockdown.

    • @ericmatthias2972
      @ericmatthias2972 3 роки тому

      @Calvin Tobias Yea, have been watching on Flixzone for months myself :D

  • @creationd6097
    @creationd6097 3 роки тому

    My nvme drive not showing.please help

  • @Scotchfrench13
    @Scotchfrench13 5 років тому +1

    Great! Thank you :)

  • @gmlaster
    @gmlaster Рік тому

    The disk won't mount, which is why I couldn't use Disk Utility. I tried your method, but without a mounted disk, it can't erase. I tried anyway with /dev/disk2 but of course it gave me the error "Could not find disk for /dev/disk2", HOW CAN I FORMAT A DISK THAT WILL NOT MOUNT?!!!

    • @shikhab2250
      @shikhab2250 8 місяців тому

      Hi did you ever solve this problem of unmounted disk? I have been looking for answers for almost a year now without luck :(

    • @gmlaster
      @gmlaster 8 місяців тому

      @@shikhab2250 No. I took it to two repair shops and they couldn’t fix it either, or recover my data. It was a lost cause. I had to buy a new drive.

    • @shikhab2250
      @shikhab2250 8 місяців тому

      @@gmlaster thank you for the quick response and I am truly sorry for your lost data. I guess I have the same fate my jnternal hard drive is in this unmounted state and I too have lost all my school work and research papers. I don't know if you have kept your external hard drive or not but if I find some videos which may help I can share the links with you and maybe you can try but chances are I won't find a good solution since all these videos talk about force unmounting not the other way round.

    • @gmlaster
      @gmlaster 7 місяців тому

      @@shikhab2250 I don't have the drive anymore. Luckily, I was able to take it back to the vendor and get a replacement drive for free. And they told me the same thing the repair people did: "ALWAYS keep your most important data backed up on two or more drives, because external hard disk drives really suck, and the manufacturers know it". Back it up while you're working on it so that you know you have it in more than one place.

  • @oyinlolaolasunkanmi
    @oyinlolaolasunkanmi 2 роки тому

    thanks

  • @jodagold5481
    @jodagold5481 4 роки тому

    brill thank you

  • @thenautifamily8936
    @thenautifamily8936 3 роки тому

    Hi it’s giving me an error- 69877: couldn’t open device

  • @AnthonyEngelen
    @AnthonyEngelen 4 роки тому

    it stays at 50%???
    dont understand why it doesnt want to finish....

    • @Danitube55
      @Danitube55 3 роки тому

      Same problem, did you find a solution?

  • @SceneVaultTV
    @SceneVaultTV 3 роки тому

    Couldn’t unmount disk

  • @GLORYSURFER
    @GLORYSURFER 2 роки тому

    Does not work :-(

  • @mahadevappatil
    @mahadevappatil 5 років тому

    Pls help me bro

  • @retrowave4555
    @retrowave4555 4 роки тому

    i dont even understand

  • @pnachtwey
    @pnachtwey Рік тому

    This is a waste of time. I had to listen to a commercial when all I want is a command line. A few lines of text would be better and at least one could copy and paste.

  • @willliu3025
    @willliu3025 4 роки тому

    Good narrative.. thank you so much 🙏🏼