Questions tagged [diskutil]

diskutil is a command line tool for modifying, verify and repairing disks.

Filter by
Sorted by
Tagged with
0
votes
1answer
245 views

diskutil and df show different sizes

I had a failure trying to repartition an external drive (a Drobo array) using Disk Utility. Now Disk Utility says my drive is 8.8 TB, but it has only one partition on it using 5.4 TB using up "all" ...
2
votes
2answers
963 views

Strange virtual disk. Delete or leave?

I have two virtual disks: Main macOS disk Bootcamp windows disk When I use diskutil listin command line, it shows me: So what the /dev/disk1 is? Should I delete it? And what is EFI EFI disk0s1 is? ...
3
votes
1answer
142 views

Can´t mount encrypted external hdd after encryption was interrupted

After I plug the disk it requests the password, I enter it and then it says it is not readable by my computer. Then with Terminal I ask diskutil cs list and displays that info about the volume (see ...
2
votes
1answer
66 views

100% full USB stick un-mountable after forced eject

During an rsync my USB stick became 100% full without me noticing it. When I tried to eject it, I got a message that it was in use, but no application was named and I could not see anything that was ...
0
votes
1answer
2k views

External HDs spontaneously unmount themselves, now one won't remount

I have a short stack of WD bus-powered external drives connected to my mid-2010 17" MBP through a 10-port powered hub. (According to specs, the hub supplies more than enough amperage to power all of ...
1
vote
1answer
108 views

Can I safely remove a broken recovery partition?

Can I remove the broken recovery partition? $ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
0
votes
2answers
391 views

diskutil moving partitions into order for merging

I just had my first attempt with diskutil mergePartitions - it was on a backup disk and I ended up loosing all partitions in between :p Having learnt from my mistake that mergePartitions merges from ...
1
vote
1answer
1k views

Unable to allocate the free space to main volume

I've been trying to allocate the left unallocated free space after uninstalling the ubuntu. As there are no options available in disk utility to do that now. The unshaded part is unallocated. I ...
2
votes
1answer
73 views

Help Unmouting disk if UUID is mounted until a Specific Time

Every morning I have the same routine. I come into work and plug in my peripherals including my Time Machine Backup. I have my Time Machine scheduled to only run one daily backup at 3:30pm. I ...
2
votes
2answers
10k views

diskutil verifyVolume / : POSIX reports: Exec format error

I'm having problems with my main system OSX volume. When running sudo diskutil verifyVolume / : $ sudo diskutil verifyVolume / Password: Started file system verification on disk1 OSX Verifying ...
0
votes
1answer
748 views

How to recover lost partition after diskutil erasevolume noformat

I previously had 2 partitions on my 1TB hard drive... - Partition 1 (disk0s4): Macintosh HD (which had OS-X and all my data) - Partition 2 (disk0s2): Apple HD (which was a back-up partition) I erased ...
0
votes
1answer
53 views

Deleted Partitions and Wasted Storage

After doing diskutil list: /dev/disk0 (internal): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme 500.3 GB ...
0
votes
1answer
108 views

Format external HFS disk without ESP

When formatting an external disk larger than 2GB, OS X automatically creates an EFI System Partition (ESP). For compatibility with other devices, I want to format a large disk with only one partition,...
5
votes
1answer
655 views

Why won't an fsck-declared-good volume mount?

I have a CoreStorage logical (virtual), encrypted volume that will not mount, even though fsck_hfs declares it clean. Does anyone know what the deal is here? Here is the drive information: /dev/...
0
votes
1answer
753 views

Mounted drive does not show up on Disk Utility, Desktop, Finder Sidebar

I've an external drive that consists of 2 partitions, one NTFS that I use for storing stuff and one Journaled that I use for TimeMachine. I've connected the drive to my Mac but now the NTFS partition ...
3
votes
1answer
3k views

diskutil fails to fix Fusion Drive

My iMac suddenly stopped booting, failing to mount the disk at boot. Running diskutil repair fails with this error: bash-3.2# diskutil repairVolume disk3 Started file system repair on disk3 ...
1
vote
1answer
185 views

Boot Camp won't work: why don't I have disk0s0 or disk0s1 partitions?

I'm trying to use Boot Camp after resolving a partition mess. I've gotten back to a single partition after receiving the The startup disk cannot be partitioned or restored to a single partition. ...
0
votes
1answer
803 views

Accidentally ran command to erase volume with “no format”, how can I get it back?

I accidentally ran this command and now I am missing 100gb of space, how can I get it back? All help appreciated!! diskutil eraseVolume free %noformat% disk0s2 Terminal gives this diskutil info: ...
29
votes
7answers
51k views

External drive does not mount after plug off without eject

I accidentally unplugged my hard drive without properly ejecting it, and now the drive does not mount when plugged in. What can I do to make it work again? I can see the disk in lsusb and diskutil ...
7
votes
2answers
17k views

Difference between “diskutil unmount” and “diskutil unmountDisk”?

Sometimes when I try to unmount a disk using the "diskutil" command I get the following message: $ diskutil unmount /dev/disk1 disk1 was already unmounted or it has a partitioning scheme so use "...
1
vote
1answer
845 views

How to rename a USB stick using disk number (via terminal and using diskutil)?

I'm creating a bash script that will rename the USB stick using a diskutil command. From what I've read in the man and various examples, I need to supply the volume name. In my situation, the volume ...
2
votes
1answer
1k views

Cannot reformat external drive with no file system

This whole mess started with trying to encrypt Time Machine backups. I have a 4TB Lacie P9230 external drive which has been working for about a year just fine. The drive has been partitioned into two ...
0
votes
1answer
516 views

Different partition configuration between gpt and fdisk

After resizing my HFS partition (to solve a case sensitive/insensitive problem) I found out my BOOTCAMP partition was no longer accessible. As I navigate the web, I found out this is a common issue ...
2
votes
1answer
1k views

Disk image of OS + Recovery partition?

I'm working with multiple OS X versions frequently and I'd like to have an image which contains a particular OS version's system partition and its recovery partition. Is this possible? (the disk where ...
8
votes
2answers
12k views

How to fix Mac hard drive partition showing as Fdsik_partition_scheme

My situation seems very similar to how to fix GUID hard drive corrupted to MBR but with enough differences that I haven't been able to put together a confident solution. I have a 3TB Toshiba drive in ...
2
votes
0answers
609 views

UDF support removed from El Capitan?

In previous versions of OS X, I used the UDF format extensively. I recently had to upgrade to El Capitan, and now none of my UDF drives are readable (Finder prompts me to intialize the disk). Since ...
4
votes
4answers
16k views

Couldn't open device

I can not partition nor use a removable USB disk without file system. I obtained the following informations: sh-3.2# diskutil info disk2 Device Identifier: disk2 Device Node: ...
1
vote
3answers
2k views

Can’t increase partition size of cloned volume in Mac OS X 10.11 (El Capitan)

I have a MacBook with a 120 GB SSD. I bought a new one with 240 GB. I cloned the content from the old one over with an ICY BOX cloning device. I inserted new SSD in the MacBook and everything is fine ...
3
votes
4answers
19k views

EFI system partition repair

I'm having a problem with the internal SSD on one of my Macs running 10.10. It was working fine when I was browsing the web one day and then suddenly froze with the spinning beachball; I couldn't ...
1
vote
1answer
2k views

Resize 'Macintosh HD" into unallocated space vacated by Bootcamp partition

I have a Boot Camp partition on my MBP. When initially setting up the Boot Camp installation I set this partition to be quite large but now I wish to utilise more of that space in the Macintosh HD ...
0
votes
0answers
152 views

Merge all partitions back to single volume

I was trying to install windows 10 on my Retina Mid 2015 MBP using bootcamp, and ran into a few problems during the installation. Without going into too much of detail, this is what i have right now, ...
2
votes
1answer
9k views

How to mount Core Storage volume under Linux (or force conversion on unrevertible volume)?

I tried to mount HFS+ partition in Linux today, but I had problem with hfsplus: unable to find HFS+ superblock I've found later that this partition is in fact Core Storage container for the logical ...
3
votes
1answer
15k views

Creating a partition in unallocated space

I left some unallocated space on my external HD (around 200 GB) and now I would like to create a partition on it using gpt in terminal since the Disk Utility tool on El Capitan is not even showing the ...
1
vote
1answer
7k views

Error: -69711 this operation couldn't proceed because the target's boot helper was mounted; you may want to try again

I have a MacBook Pro 8,1 (13", 2011 unibody) running Yosemite (no upgrades). Tried to partition my SSD hard drive and it threw an error when it was almost through saying it can't find the partition. ...
2
votes
1answer
806 views

Find specific attached disk, not volume, by Applescript

I have a script I use to format any inserted SD card, copy data from specific folders to it, then eject. Each format/copy is triggered manually, as part of a batch process involving maybe a hundred ...
0
votes
1answer
282 views

How to recover this damaged CoreStorage PV records?

I have played something following https://www.reddit.com/r/osx/comments/2wzlxc/a_corestorage_primer_aka_why_you_cant_manipulate/ ,like: hdiutil attach -nomount ram://$[2048*1024] diskutil cs ...
1
vote
1answer
271 views

Decipher diskutil error code

Checking catalog hierarchy The volume could not be verified completely Volume repair complete Updating boot support partitions for the volume as required Error: -69845: File system verify or repair ...
1
vote
3answers
5k views

Recover corrupted Mac HFS+ drive (image) under Linux

I'm trying to recover an apparently corrupted disk. It appears that through improper shutdown the drive has been somehow killed. It's the main partition of a Macbook Pro. I've used dd to copy the ...
0
votes
1answer
576 views

GPT looks valid. Diskutil sees empty disk

External 3 TB disk. Stopped working after a power bump. GPT reports as follows: bash-3.2# gpt show /dev/disk6 start size index contents 0 1 PMBR ...
0
votes
1answer
518 views

Use shell wildcard OR with diskutil

I have the following terminal command, which matches volumes called A001R45R, A123R45R, etc. diskutil eraseVolume HFS+ FreshMag /Volumes/*R45R But I also want it to match volumes called B001R4G5, ...
2
votes
1answer
10k views

Create a partition on SD card for ext4 filesystem

I've got an SD card and want to create a partition on it for the ext4 fs. The partition must start after 1MB. This 1MB will be used for a bootloader (u-boot). I'm doing this on OS X Yosemite. Here's ...
6
votes
0answers
9k views

Is there a way to clean up possibly invalid disks that only show up on Mac OS Recovery through ‘diskutil list’ in Terminal? Does Recovery use them?

Hopefully that question is clear enough, and hopefully this is just me being silly. When I boot into the Recovery Partition, go into Terminal, and run 'diskutil list', I get quite a few tiny and ...
1
vote
2answers
11k views

Disk Utility on Mavericks fails because “disk is too small”

I'm on mavericks and I am trying to delete a partition of an external hard drive. This is its schema Partition1: 50GB "MavericksBackup": Bootable backup Partition2: 187GB "Home Data": Absolutely ...
14
votes
3answers
94k views

How can I delete a partition (coreStorage logical volume?) from the Terminal?

I finally understood why Disk Utility will not change the partitions on my HDD, even though I added the most recent one myself (maybe significant: to test Yosemite DP) with it. Now I see it says it ...
67
votes
6answers
96k views

How do I get detailed SMART disk information on OS X (Mavericks or later)

I'm trying to get a detailed SMART status report on the drives in my Mac. I'm not talking about "Verified," I'm talking about the detailed report that's about 100 lines long listing all the vital ...
2
votes
2answers
3k views

Hard Drive Formatting Error in Terminal

I have tried formatting and partitioning this brand new hard drive and it has failed on multiple computers using multiple methods. It is a LaCie Porsche Design 4TB hard drive. Here is the commands I ...
0
votes
1answer
1k views

Why does the diskutil shows I have two local hard drives? [duplicate]

I was trying to get my NTFS drive to work today and I discovered that the diskutil thinks I have two local hard drive. This phenomenon is not occurred on my Macbook Pro. Do anyone know why? Here is ...
3
votes
2answers
18k views

How can I create a bootable USB drive for Ubuntu from OS X?

I've decided to switch from OS X to Ubuntu. I'm following the documentation on Ubuntu's site for creating a bootable USD Drive. I converted the ISO to IMG. I ran diskutil list. I inserted my flash ...
1
vote
1answer
164 views

What are disks “MadRiver5M993.iPhone”, “ Bittersweet6M149.iPh…” as shown by “diskutil list”

When I type diskutil list, I see disks I don't recognise: /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
1
vote
1answer
316 views

Flash Drive only mounts through USB Hub

I have a PNY 32gb flash drive, when trying to connect the drive directly to my Mid 2012 MBP (specs attached) the drive never mounts, doesn't list in diskutil as an unmounted drive either, however when ...