topics that matter; ideas worth sharing

share a tip, submit a link, add something new

Windows Tip: Shrinking XP partitions using diskpart

June 11, 2007, 03:16 PM —  ITworld.com — 

Send your Windows question to Mitch today! | See other Windows tips



The version of the diskpart command included in Windows Vista allows you to shrink partitions to free up space on your hard drive so you can create additional partitions. Unfortunately, the version of diskpart included in Windows XP doesn't include this functionality, so the usual way of shrinking XP partitions is to use a third-party tool like Symantec's Norton PartitionMagic.



If you have a Windows Vista product DVD around however, you can use Vista's version of diskpart to shrink partitions on a computer that has Windows XP installed. To accomplish this bit of magic, do the following:



1. Boot your system from the Vista DVD and select the Repair Your Computer option to enter the Windows Recovery Environment (Windows RE), a recovery platform based on version 2.0 of the Windows Preinstallation Environment (Windows PE) and which replaces the Recovery Console of previous versions of Microsoft Windows.



2. When the Choose A Recovery Tool screen appears, click Command Prompt to open a command prompt window.



3. Type diskpart to enter the diskpart command shell.



4. Use the select volume command to select the partition you want to shrink.



5. Use the shrink command to shrink the partition the desired amount. This command will start by moving data from the end of your partition before shrinking the partition, so be aware that shrinking a large partition can take a long time.



One caveat: I haven't been able to get definitive word from Microsoft that this is a supported scenario for shrinking XP partitions, but everyone I've talked with who has tried it (including those inside Microsoft) have said it worked fine for them and no data was lost. In other words, try this at your own risk.


Finally, for more information about using Vista's system recovery tools see Chapter 30 Configuring Startup and Troubleshooting Startup Issues in the Windows Vista Resource Kit.

 

ITworld.com

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Resources
White Paper

Symantec Backup Exec 12 and Backup Exec System Recovery 8 deliver industry leading Windows data protection and system recovery. Download this whitepaper to find out the top reasons to upgrade and how to get continuous data protection and complete system recovery.

Webcast

Data and system loss — from a hard drive failure, malicious attack, natural disaster, or simple human error — can happen anytime. Don’t leave your business vulnerable. Make sure you have a secure recovery strategy in place. Symantec's latest backup and system recovery technology can efficiently restore critical applications, individual emails and documents and even restore your entire system in minutes in the event of a loss.

White Paper

Businesses face a growing challenge to ensure that the IT environment is properly protected. Backup Exec 12 integrates with other applications in the Symantec family of products, to complement your current data protection strategy, keep your data securely backed up and make it recoverable when you need it most.

Free stuff
Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

More Resources