Disk Utility hanging while resizing partition.

Probably not the first time Disk Utility is hanging in the world, however this time, it's sensitive stuff.

I'm currently resizing my startup partition, the one I'm currently on, right now. It's a partition occupying all the 500GB of data (more or less) on the disk. I wanted to add another partition of only 3GB for experimental stuff (I have reason to make a 3GB partitions).

However, it's been saying "Modifying partition map" since 10 mins without any disk activity going on (I can't hear any spindle moving, nor does iStat show any I/O). Also, when I start an app (remember this is my startup disk), there's noise and iStat shows I/O.

The disk utility logs shows nothing wrong. In fact, here it is (end of post).

*So, what do I do? The usual stuff, force quit Disk Utility (it's actually responding) and potentially leave my disk in an unstable state?* (Of course, as with any partition operation, all the options are greyed out.)

Since, I'm in the position to make a last-minute backup, I am currently. Anyway, I'm on Time Machine and the latest backup is within an hour, and nothing big happened so I'm fine whatever. 🙂

Thanks!

-----
2009-11-09 19:34:35 -0500: Disk Utility started.

2009-11-09 19:44:00 -0500: Preparing to partition disk: “ST3500320AS Media”
2009-11-09 19:44:00 -0500: Partition Scheme: GUID Partition Table
2009-11-09 19:44:00 -0500: 2 volumes will be created
2009-11-09 19:44:00 -0500:
2009-11-09 19:44:00 -0500: Partition 1
2009-11-09 19:44:00 -0500: Name : “Dazzle”
2009-11-09 19:44:00 -0500: Size : 462.4 GB
2009-11-09 19:44:00 -0500: Filesystem : Mac OS Extended (Journaled)
2009-11-09 19:44:00 -0500: Do not erase contents
2009-11-09 19:44:00 -0500:
2009-11-09 19:44:00 -0500: Partition 2
2009-11-09 19:44:00 -0500: Name : “swap_1”
2009-11-09 19:44:00 -0500: Size : 3 GB
2009-11-09 19:44:00 -0500: Filesystem : (null)
2009-11-09 19:44:00 -0500:
2009-11-09 19:44:00 -0500: Modifying partition map.

-----

Mac Pro Quad-Core @ 2.66Ghz 3GB, Mac OS X (10.5.5)

Posted on Nov 9, 2009 5:25 PM

Reply
8 replies

Nov 9, 2009 7:02 PM in response to Armaguy

You need to provide some information:

1. According to Disk Utility what is the true size of the disk in GBs? Is it about 465.6 GBs?
2. Is the existing data on the drive 462.4 GBs?

If so then you cannot likely create a 3 GB partition because there isn't quite enough space to do so.

Can you detail the procedure you followed when you attempted to repartition the drive? You should note that assuming you do have space for the additional partition and that your current volume is nearly full, then it can take quite some time to both shrink the existing volume and create a new one. That may be more than 10 minutes.

BTW, making a swap partition on the same drive as the startup volume isn't going to help you any. It won't be faster. In fact it will be slower. If that's what you had in mind you can save yourself the trouble.

Nov 9, 2009 7:22 PM in response to Kappy

1.The true size of this disk (and all my disk, as a matter of fact) is 500GB. All of them round up at 465.6GB when formatted and in use. That's free space.

2.No, the exising data is far lesser. There's currently around 300GB used, which is leaving aroung 165GB left for this operation.

Thanks for having this in mind 🙂 I am aware that creating a swap partition specificially for the swap file is, well, pretty useless. What's not told is, I'm making a practical experiment (au diable la théorie), where all of my 4 disks will have this 3GB swap partition in the end (couldn't use the beginning of disk, they're all used). I'll then make a RAID 0 array with these, hoping to get 4 times 3GB of swap at 4 times the speed.

By the way, I quit the operation and restarted from the OS X install DVD. For one of the disk (the most crowded one, surprisingly) it went without a hitch. For the same one as mentionned in first in the problem, things went from bad to worst, resulting in the destruction of my Time Machine partition. The operation failed and rendered both current and future partition unsuable (like, really).

A good thing it was only the backup.

How do I proceed:
I select a drive in Disk Utility's left list. I then go to the partition tab, and click the little +. This splits the current partition in halves. I specify that I want the new partition to be 3GB by entering 3 in the size and hitting tab. I specify a name for the partition. I want it, for now, to be HSF+. I hit "apply". And wait. And wait.

AFAIK, I'm not doing anything bad. And like I said earlier, it ruined my TM disk completely (somehow) when I was on the DVD.

I am currently backing up and reformating completely one of the drives that didn't work, for now.

Well thanks to the interest you've showed, I guess I'm a bit flooding the thing with details.

Nov 9, 2009 7:57 PM in response to Armaguy

That's not the best method. What you should do is activate the partition window, then grab the sizing gadget in the lower right corner and push up to shrink the existing partition however much you need. Then click on the [+] button to add a new partition and click on the Apply button. Wait for completion.

Trying to make a RAID of four small volumes at the end of four hard drives to use for a swap is probably an equal waste of time especially if one of the slices happens to be on your startup volume. Worse if the other drives are in any frequent use. Although it's certainly possible to make an array from multiple partitions it is generally a terrible idea for so many reasons. But if swap space is the goal, then you will gain nothing from the exercise. OS X does not need its swap file mounted on a RAID array of small partitions on four drives. This may work in Linux but it's not necessary with OS X which is why OS X does not require nor configure a separate swap volume.

But if you were to put a swap volume on another drive it makes no sense to do so on the startup volume whether separate or as part of a RAID. This is because a drive's read/write head cannot be in two places at the same time. That means while accessing the startup volume the drive cannot also access the swap volume. Since this is true of the partition on the startup volume it will prevent use of the other partitions in your planned array because they cannot be accessed until the volume on the startup volume can be accessed. Hence, it will be slower than if you did nothing. And this doesn't get into the general speed problem of having these small partitions at the end of the drive platter which requires the greatest amount of time for the drive head to access.

If you want any increase in swap volume access, then you need to put the swap on a completely separate drive that is not often used. You then gain the benefit of the multi-tasking capabilities of the OS to access two drives simultaneously.

But if you are set on doing this then I would limit it to the other three drives and skip using the startup volume. An array of three volumes. And be sure that each volume is exactly the same size.

Nov 9, 2009 8:17 PM in response to Kappy

Like I said, the RAID part is my practical experiment. I've been experimenting software RAID on the Mac Pro before with success and failure and this time I am curious.

If I use the little thingy to resize the partition and then click on the +, the minimum partition size is about 25GB. You cannot drop it below because the graph would be unproportional. This is why, when you specify a size, there's a little star (*) that's added, saying: "Denotes that some partitions are smaller than displayed in the list".

It's off topic:
My will to make this is that, as of now, my swap is at the default emplacement: /var/vm
Since I lack a ton of RAM, my swap is used a lot. I wanted it to be a little fasters, so I thought a RAID 0 could only make things go better, since instead of using 1 disk (as by the default setting), I'd use 4 (or 3, depending of my experiments). None of the drives are in fequent use except for an occasional Time Machine on one.

I believe you are right about why it's good not to put the swap on the same volume but at a different partition. It makes perfect sense. I will try a 4-drive configuration (going against this logic) anyway just to do some stats about this. Then the 3-drive confg will probably be proven right.

As for the "end of plates", well yes unfortunatly I could only put data there, because all my stuff are already setup since too long ago. It would take ages to remake all my drives so that a tiny-weeny 3GB can sit on the beginning. But I agree. I will live with it.

I'm nearly done in my first operation - fix all this mess - and then I will proceed with the mod.

Nov 9, 2009 8:42 PM in response to Armaguy

If you cannot resize it manually then simply plug in the size in the text gadget near the format type and volume name.

Well, I guess you aren't interested too much in my suggestion: buy more RAM. It's a lot faster than disk drives and will be a much bigger aid to improving your computer's overall performance.

Do you really have only 3 GBs in your MP (or is this the 2009 model?) If you're hitting the swap file that badly then you need more RAM not a different swap file.

Nov 9, 2009 8:50 PM in response to Kappy

Oh, I am aware that I need more RAM. Except, I simply do not have the budget for it, even less for some super specialized MP.

Plus, I like to break things apart...

I've been plugging numbers in the text gadget since the beginning. However I've always hit some random problems, like hanging or not accessing disk at all. I've lost -twice- a partitions so far, doing nothing. Oh well, I'll just re-format my disk from the very beginning then.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disk Utility hanging while resizing partition.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.