GNU Parted

 [image of the Head of a GNU]


Table of contents


Introduction

GNU Parted is a program for creating, destroying, resizing, checking and copying partitions, and the file systems on them. This is useful for creating space for new operating systems, reorganising disk usage, copying data between hard disks and disk imaging.

Features

Supported disk labels: raw access (useful for RAID and LVM), MS-DOS partition tables, Intel GPT partition tables, MIPS/DVH partition tables, Amiga partition tables PC98 partition tables, Sun and BSD disk labels and Macintosh partition maps.

Supported operations
File system detect create resize copy check
ext2 * * *1 *2 *3
ext3 * *1 *2 *3
fat16 * * *4 *4 *
fat32 * * * * *
linux-swap * * * * *
HFS / HFS+ * *1,5
JFS *
NTFS *
ReiserFS * *6 *1,6 *6 *3,6
UFS *
XFS *

Notes:

  1. The start of the partition must stay fixed.
  2. The partition you copy to must be bigger or exactly the same size as the partition you copy from.
  3. Limited checking is done when the file system is opened. This is the only checking at the moment. All commands (including resize) will gracefully fail, leaving the file system intact, if there are any errors.
  4. The size of the new partition, after resizing or copying, is restricted by the cluster size for fat (mainly affects FAT16). This is worse than you think, because you don't get to choose your cluster size (it's a bug in Windows, but you want compatibility, right?).

    So, in practise, you can always shrink your partition (because Parted can shrink the cluster size), but you may not be able to grow the partition to the size you want. If you don't have any problems with using FAT32, you will always be able to grow the partition to the size you want.

    Summary: you can always shrink your partition. If you can't use FAT32 for some reason, you may not be able to grow your partition.

  5. Parted can only shrink hfs and hfs+ filesystems.
  6. Reiserfs support is enabled if you install libreiserfs, available at http://www.namesys.com

Downloading

The latest version of parted is : 1.6.24 (released 2005-08-12) here is the corresponding changelog Changelog

When released, all version of GNU Parted can be found on http://ftp.gnu.org/gnu/parted/ or one of the mirrors.

Currently, Parted runs under GNU/Linux and GNU/Hurd. If you don't have either, then a boot disk image is available on all mirrors in the /gnu/parted/bootdisk directory.

Alternatively, Parted is included in many GNU/Linux distributions. Moreover, Parted is often available in "rescue mode" that can be accessed by booting from the installation CDs. Note that GNU/Linux distributors frequently apply patches that are not included with the official GNU Parted versions published here.

Repository Access

Parted has moved from using cvs to subversion, the history has been imported to subversion, and thus you should find the same information there than was previously avaiable in cvs.

The address of the svn repository is "svn+ssh://svn.debian.org/svn/parted/"

The repository is in fact located on Alioth of the debian project and can be accessed from the project page which is http://alioth.debian.org/projects/parted/.

Stable branch:

The easiest way to obtain source would be to grab the package into the ftp(see Downloading).

Documentation

Parted's documentation is available here in English and Japanese (old version).

Reporting bugs

The first thing to do is to try the latest version of parted, maybe we are already aware of the bug and it was fixed! But if you feel you have a somewhat rare setup, you may forward your bug to the mailing list to tell us that version x.x.x fixed the problem(if any) that version x.x.x had.

To reach the mailing list send an email to bug-parted@gnu.org , containing the problem encountered, the version of Parted, and the output of:

Starting with version of parted 1.6.23, the best output would be to use the

parted /dev/hda print unit s print unit chs print

using other version (We suggest you try a more recent one)

parted /dev/hda print

And if possible add the following information

fdisk -l /dev/hda

fdisk -l -u /dev/hda (if working)

Mailing List

There is only one mailing list for GNU Parted, bug-parted@gnu.org. All discussion related to Parted is welcome. Subscription information and archives are available at http://mail.gnu.org/mailman/listinfo/bug-parted