MAC FSs

Il sistema operativo

Introduzione

La maggioranza dei pacchetti open source vengono distribuiti con un tarball che si configura, compila ed installa con tre semplici comandi:

I have a 3TB external HDD that I've used for storage with my old Windows laptop. It was formatted to NTFS at the time.

Since then, I've been using my 2014 13" rMBP (10.11 El Capitan) and I want to partition said external drive both as a time machine (needs to be HFS+, correct?), and as storage.

I backed up all the files on the drive, booted up disk utility and tried to erase it and make it HFS+ (OSX Journaled), but I get the following error every time I try it:

    Erase process has failed, press done to continue.

And under the details, it says

    Mediakit reports not enough space on device for requested operation.

After several attempts, I hooked the drive up to a Windows 7 Machine and formatted it to exFAT from there with no issues at all.

I tried formatting to HFS+ on the Mac again, and get the same error. I am able to read/write to the external HDD with no issues, I just can't format it with Disk Utility.

I've also had no problems at all formatting USB Flash drives to exFAT using Disk Utility.

What else can I try? I've googled and searched reddit, found a similar problem, but no solutions.

Any help is greatly appreciated.



What’s the cause?

This type of error is generally caused when your EFI partition is below 200 MB. Mac requires an EFI partition of at least 200 MB to perform any Disk Utility function on an HDD. If your drive came factory formatted in NTFS, chances are your EFI partition would be lesser as Windows can work with a minimum of 100 MB.


Here's what I would try. First run

diskutil list

to get the name to the disk you're trying to format. The below commands assume this is "disk1", but replace "disk1" with the correct disk if it's something different.

Now unmount the disk:

diskutil unmountDisk force disk2

and then write zeros to the boot sector:

sudo dd if=/dev/zero of=/dev/disk2 bs=1024 count=1024

finally attempt to partition it again:

diskutil partitionDisk disk2 GPT JHFS+ "My External HD" 0g


diskutil partitionDisk disk2 GPT JHFS+ "Canvio" 0g

Con il comando diskutil listFilesystems vengono visualizzati i tipi di filesystem supportati da MacOSX. Ecco i principali:

PersonalityUser Visible Name
APFS oppure APFSIAPFS
Case-sensitive APFSAPFS (Case-sensitive)
ExFATExFAT
Free Space oppure FREEFree Space
MS-DOSMS-DOS (FAT)
MS-DOS FAT12MS-DOS (FAT12)
MS-DOS FAT16MS-DOS (FAT16)
MS-DOS FAT32 oppure FAT32MS-DOS (FAT32)
MS-DOSMS-DOS (FAT)
HFS+Mac OS Extended
Case-sensitive HFS+ oppure HFSXMac OS Extended (Case-sensitive)
Case-sensitive Journaled HFS+ oppure JHFSXMac OS Extended (Case-sensitive, Journaled)
Journaled HFS+ oppure JHFS+Mac OS Extended (Journaled)
UFSD_NTFSWindows NT Filesystem
UFSD_NTFSCOMPRWindows NT Filesystem (compressed)

Titolo: Mac FSs
Livello: Medio (2/5)
Data: 21 Giugno 2014
Versione: 1.0.1 - 21 Giugno 2014
Autore: mail [AT] meobogliolo.name