Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Partition a hard disk without losing data Install
Have you ever wanted to partition your disk without re-formatting your hard drive? Now you can, with the help of the Boot Camp Assistant.

Download and install Boot Camp Assistant and run it. You do not have to burn the Macintosh Drivers CD since you are not installing XP. Follow the instructions until after the disk partitionning screen. Instead of installing XP, click Restart. Now you have an un-mounted XP partition.

Next, boot your Mac with the Tiger Installation CD and run Disk Utility. Click on the XP partition (it has a weird name with letters and numbers) and click Erase. Choose Mac OS Extended (Journaled) as the format and write a name for the partition. Then, click Security Options... and check Zero Out Data. After that, click Erase and wait for Disk Utility to finish. Now you can either install Mac OS on this partition or restart your computer. (You may have to mount the volume with Disk Utility.)

Note: If you get a message asking for your password, or saying that you don't have sufficient privileges when you try to access your newly-created partition after restarting your computer, Control-click the partition and select Get Info, expand the Ownership & Permissions section, and check Ignore ownership on this volume and select Read & Write permissions.

[kirkmc adds: Naturally, you should back up your data before doing this. (Which begs the question of whether it is worth doing in the first place; you can just back up your data and partition the main drive, then copy the backup back...) Also, there's a chance you may not be able to un-partition or re-partition the drive without Boot Camp.]
    •    
  • Currently 1.86 / 5
  You rated: 4 / 5 (7 votes cast)
 
[59,241 views]  

Partition a hard disk without losing data | 17 comments | Create New Account
Click here to return to the 'Partition a hard disk without losing data' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Partition a hard disk without losing data
Authored by: mdanielvm on May 01, '06 08:20:48AM

I think your forgot to mention that this trick works only for mac intel users, since BootCamp does not run on G4/5 machines. The rest of us with PPCs are left out. Thanks Apple! How about integrating this feature into the next version of Disk Utility?



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: stam66 on May 01, '06 10:44:28AM
10.4.6 on a G4 powerbook:

hdutil: Command not found.

Any ideas?

[ Reply to This | # ]

Partition a hard disk without losing data
Authored by: Oneota on May 01, '06 11:03:29AM

Should be "hdiutil", not "hdutil"

But resizing partitions only works on Intel Macs, not PPC.



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: osxpounder on May 01, '06 11:28:57AM

Aha, thanks. Found it. Just needed the proper name for the program: hdiutil ....

---
--
osxpounder



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: splatkus on Jun 20, '06 08:57:29AM

I'm not sure if the poster of this hint actually tried installing OS X on the partition that Boot Camp creates. I tried this hint on my new MacBook, and OS X refuses to install on the partition that Boot Camp makes. During the install when it says preparing the disk, it stops and reports "There were errors installing the software"

This is using Boot Camp 1.0.1 Beta and the Mac OS X 10.4.6 install CD that comes with the MacBook.



[ Reply to This | # ]
AFAIK it works on G4 as well
Authored by: Felix_the_Mac on May 01, '06 08:24:37AM

AFAIK it works on G4 as well.



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: Felix_the_Mac on May 01, '06 08:22:46AM

This ability to non-destuctively repartition a disk doesn't come from nowhere. It was added to the 10.4.6 and is provided by the command:

hdutil resizeVolume

Try hdutil --help for a list of commands.



[ Reply to This | # ]
AFAIK it works on G4 as well
Authored by: Oneota on May 01, '06 09:06:36AM

I'm actually reasonably sure this requires a GUID-partitioned drive, which is only available on Intel Macs. PPC Macs use APM, which I don't think can do the re-partitioning magic.



[ Reply to This | # ]
GPT also available on PPC since 10.4.6
Authored by: boli on May 02, '06 09:49:59AM
since 10.4.6 the GUID Partitioning Table is also available on PowerPC macs. Some (apparently very few) PPC models can even boot off it. See my comments at MacGeekery and the replies by someone who seems to know more...

[ Reply to This | # ]
No, Intel Macs ONLY
Authored by: Chas on May 01, '06 09:26:38AM

This is known to work ONLY on Intel Macs.



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: GlowingApple on May 01, '06 10:27:04AM

I'm using a PowerBook G4 and don't have a hdutil command. There is a hdiutil command, but AFAIK that only works with images, not partitions. It has a resize command, but judging from the man page (don't have my laptop backed up recently enough to test it) it sounds like it'll only shrink or expand the size of an image file.

---
Jayson --When Microsoft asks you, "Where do you want to go today?" tell them "Apple."



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: osxpounder on May 01, '06 11:27:23AM
On my 10.4.5 box, I can't even *find* hdutil. Apparently it's not in my default path for CLI programs.

which hdutil
no hdutil in /bin /sbin /usr/bin /usr/sbin

---
--
osxpounder

[ Reply to This | # ]

Partition a hard disk without losing data
Authored by: themming on May 01, '06 01:09:38PM

If you change to superuser first you should be able to find it. Also the previous posts have named it wrong. Here are the details of the program from my powerbook:
-r-xr-xr-x 1 root wheel 328788 Jan 31 23:45 /usr/bin/hdiutil



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: pmccann on May 01, '06 06:28:18PM
Err, that's because it's hdiutil (note the i). Paul

[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: themming on May 01, '06 01:19:23PM

For users with PPC machines it is possible to resize partitions by using a linux live CD.

I used the Ubuntu Live CD to resize the HFS+ partition on my PowerBook and had no problems. http://www.ubuntu.com/download

Here's a HOWTO on using the live CD to resize partitions:
http://ubuntuforums.org/showthread.php?t=89960



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: lynxie on May 01, '06 02:00:33PM

Nice thread and excellent use of Ubuntu, thanks for posting it Tim! Maybe the information from the Ubuntu thread should be submitted as a hint!?
Petar



[ Reply to This | # ]
Partition a hard disk without losing data
Authored by: sjk on May 01, '06 02:40:01PM
Which begs the question of whether it is worth doing in the first place; you can just back up your data and partition the main drive, then copy the backup back...)
One reason is because there's certain data you can risk losing so there's no need (or resources) for a backup of it. I recently resized volumes on my wife's eMac (using iPartition), decreasing space on one volume in order to increase space on the boot volume The non-boot volume has archived EyeTV recordings which aren't backed up and if those were lost or damaged during resizing it wouldn't have been important, just disappointing. So, I just have a backup of the boot volume and any data worth saving from the other one; the EyeTV archive is expendable. No problems (AFAICT) with the resizing.

[ Reply to This | # ]