Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > diskutil isn't creating partitions in the expected size

diskutil isn't creating partitions in the expected size
Thread Tools
shifuimam
Addicted to MacNN
Join Date: Aug 2006
Location: The deep backwoods of the PNW
Status: Offline
Reply With Quote
May 14, 2020, 12:26 PM
 
Background: I have an IDE drive in a FW400 enclosure, which I use as a recovery and boot drive for all my FW-capable Macs. It has seven partitions: two each for OS 9, 10.4, and 10.5 (I only have a few Intel Macs lol), plus an extra partition for data and other stuff I need to transfer between computers. I'm pretty sure the hard drive I've been using is finally on the road to failure, so I swapped it for a 128GB mSATA SSD in an IDE adapter.

The thing is, I'm trying to create partitions of specific sizes, particularly for the installer images, and if I do this using diskutil, the resulting partitions aren't the expected size. I've tried with both GB and MB as the unit (one of the partitions is just a CD image, so it's only ~780MB).

Code:
sh-3.2# diskutil partitionDisk disk1 \ > JHFS+ "x OS 9 (Backup)" 3.22G \ > JHFS+ "x OS 9 (Install)" 786.4M \ > JHFS+ "x Tiger (Backup)" 6.44G \ > JHFS+ "x Tiger (Install)" 3.22G \ > JHFS+ "x Leopard (Backup)" 15.03G \ > JHFS+ "x Leopard (Install)" \ > 7.62G JHFS+ "x Data" 0B Started partitioning on disk disk1 Creating partition map Formatting disk1s3 as Mac OS Extended (Journaled) with name x OS 9 (Backup) Formatting disk1s12 as Mac OS Extended (Journaled) with name x Leopard (Install) Formatting disk1s8 as Mac OS Extended (Journaled) with name x Tiger (Install) Formatting disk1s10 as Mac OS Extended (Journaled) with name x Leopard (Backup) Formatting disk1s4 as Mac OS Extended (Journaled) with name x OS 9 (Install) Formatting disk1s6 as Mac OS Extended (Journaled) with name x Tiger (Backup) Formatting disk1s14 as Mac OS Extended (Journaled) with name x Data [ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] Finished partitioning on disk disk1 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme *119.2 Gi disk1 1: Apple_partition_map 31.5 Ki disk1s1 2: Apple_HFS x OS 9 (Backup) 3.1 Gi disk1s3 3: Apple_HFS x OS 9 (Install) 786.4 Mi disk1s4 4: Apple_HFS x Tiger (Backup) 6.3 Gi disk1s6 5: Apple_HFS x Tiger (Install) 3.1 Gi disk1s8 6: Apple_HFS x Leopard (Backup) 14.9 Gi disk1s10 7: Apple_HFS x Leopard (Install) 7.5 Gi disk1s12 8: Apple_HFS x Data 82.8 Gi disk1s14
What am I doing wrong?
Sell or send me your vintage Mac things if you don't want them.
     
reader50
Administrator
Join Date: Jun 2000
Location: California
Status: Offline
Reply With Quote
May 14, 2020, 12:49 PM
 
You're losing space to the journal or something. Result size is a constant ~128MB smaller than requested size. Simplest solution is to bump your requests by 128 MB, or 144 MB to add some safety margin.

DU has sometimes had quirks. You didn't say what OS version you're doing it under.
     
shifuimam  (op)
Addicted to MacNN
Join Date: Aug 2006
Location: The deep backwoods of the PNW
Status: Offline
Reply With Quote
May 14, 2020, 01:34 PM
 
Sorry - this was on 10.5 on a PowerBook G4. Should I redo it on another machine? I've also got a Macbook running 10.6.8, a MacBook Pro on 10.13.3, and a couple machines on 10.11.

I'll try the 128MB trick and see what that does though.
Sell or send me your vintage Mac things if you don't want them.
     
Spheric Harlot
Clinically Insane
Join Date: Nov 1999
Location: 888500128, C3, 2nd soft.
Status: Offline
Reply With Quote
May 14, 2020, 05:41 PM
 
Wow, hi there!

:waves:
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:04 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,