没有合适的资源?快使用搜索试试~ 我知道了~
GNU Parted - Manual
5星 · 超过95%的资源 需积分: 15 10 下载量 84 浏览量
2008-12-05
16:25:01
上传
评论
收藏 195KB PDF 举报
温馨提示
试读
27页
GNU Parted 手册(英文原版),对GNU Parted 工具的介绍。 GNU Parted 是话GNU 的一款优秀的分区工具。
资源推荐
资源详情
资源评论
GNU Parted User Manual
GNU Parted, version 1.7.0trunk, 15 May 2006
Andrew Clausen clausen@gnu.org
Richard M. Kreuter kreuter@anduril.rutgers.edu
Leslie Patrick Polzer polzer@gnu.org
Copyright
c
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document under the terms of
the GNU Free Documentation License, Version 1.1 or any later version published by the
Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with
no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free
Documentation License”.
i
Short Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Using Parted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Related information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Appendix A Copying This Manual . . . . . . . . . . . . . . . . . . . . . 16
Appendix B This manual’s history . . . . . . . . . . . . . . . . . . . . . 23
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Chapter 1: Introduction 1
1 Introduction
1.1 Overview of GNU Parted
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, for reorganizing disk usage,
for copying data between hard disks and for “disk imaging” — replicating an installation
on another computer.
This documentation is written with the assumption that the reader has some under-
standing of partitioning and file systems. If you want to learn more about these, the
upcoming GNU Storage Guide is recommended reading.
GNU Parted was designed to minimize the chance of data loss. For example, it was
designed to avoid data loss during interruptions (like power failure) and performs many
safety checks. However, there could be bugs in GNU Parted, so you should back up your
important files before running Parted. Also note that reiserfs support relies on libreiserfs,
which does not fulfil the aforementioned requirement. The same holds for any external tools
like ntfsresize.
The GNU Parted homepage is http://www.gnu.org/software/parted. The library
and frontend themselves can be downloaded from
ftp://ftp.gnu.org/gnu/parted. You
can also find a listing of mailing lists, notes for contributing and more useful information
on the web site.
Please send bug reports to bug-parted@gnu.org. When sending bug reports, please
include the version of GNU Parted. Please include the output from these commands (for
disk ‘/dev/hda’):
# parted /dev/hda print unit s print unit chs print
Feel free to ask for help on this list — just check that your question isn’t answered
here first. If you don’t understand the documentation, please tell us, so we can explain it
better. General philosophy is: if you need to ask for help, then something nee ds to be fixed
so you (and others) don’t need to ask for help.
Also, we’d love to hear your ideas :-)
1.2 Software Required for the use of Parted
If you’re installing or compiling Parted yourself, you’ll need to have some other pro-
grams installed. If you are compiling Parted, you will need both the normal and devel
packages of these programs installed:
• libuuid, part of the e2fsprogs package. If you don’t have this, you can get it from:
http://web.mit.edu/tytso/www/linux/e2fsprogs.html
If you want to compile Parted and e2fsprogs, note that you will need to make install
and make install-libs e2fsprogs.
• GNU Readline (optional), available from
ftp://ftp.gnu.org/gnu/readline
Chapter 1: Introduction 2
If you are compiling Parted, and you don’t have readline, you can disable Parted’s
readline support with the --disable-readline option for configure.
• GNU gettext (or compatible software) for compilation, if internationalisation support
is desired.
ftp://ftp.gnu.org/gnu/gettext
• libreiserfs, if you want reiserfs support:
http://reiserfs.osdn.org.ua
Note that parted will automatically detect libreiserfs at runtime, and enable reiserfs
support. libreiserfs is new, and hasn’t been widely tested yet.
1.3 Platforms on which GNU Parted runs
Hopefully, this list will grow a lot. If you do not have one of these platforms, then you
can use a rescue disk and a static binary of GNU Parted. See Section 1.6 [Static binaries],
page 3.
GNU/Linux
Linux versions 2.0 and up, on Alpha, x86 PCs, PC98, Macintosh PowerPC, Sun
hardware.
GNU/Hurd
GNU libc 2.1 or higher is required. You can probably use older versions by using the
‘--disable-nls’ option. See Section 1.5 [Compiling], page 2. (Note: I think we have now
dropped this requirement. T ODO: check if libc 2.0 works!)
1.4 Terms of dist ri buti on for GNU Parted
GNU Parted is free software, covered by the GNU General Public License Version 2.
This should have been included with the Parted distribution, in the COPYING file. If
not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301, USA.
Libparted is considered part of GNU Parted. It is covered by the GNU General Public
License. It is NOT released under the GNU Lesser General Public License (LGPL).
1.5 Building GNU Parted
If you want to compile GNU Parted, this is generally done with:
$ ./configure
$ make
However, there are a few options for configure:
--without-readline
turns off use of readline. This is useful for making rescue disks, etc., where few
libraries are available.
--disable-debug
don’t include assertions
Chapter 1: Introduction 3
--disable-dynamic-loading
disables dynamic loading of some libraries (only libreiserfs for now, although
we hope to expand this). Dynamic loading is useful because it allows you to
reuse libparted shared libraries even when you don’t know if some libraries will
be available. It has a small overhead (mainly linking with libdl), so it may be
useful to disable it on bootdisks if you don’t need the flexibility.
--disable-fs
disable all file system support
--disable-nls
turns off native language support. This is useful for use with old versions of
glibc, or a trimmed down version of glibc suitable for rescue disks.
--disable-shared
turns off shared libraries. This may be necessary for use with old versions of
GNU libc, if you get a compile error about a “spilled register”. Also useful for
boot/rescue disks.
--disable-Werror
ignore warning messages in compilation
--enable-discover-only
support only reading/probing (reduces size considerably)
--enable-mtrace
enable malloc() debugging
--enable-read-only
disable writing (for debugging)
1.6 Using st atic binari es of GNU Parted
1.6.1 Introductio n
If you want to run GNU Parted on a machine without GNU/Linux installed, or you
want to resize a root or boot partition, you will need to use a boot disk.
Special boot disk images for GNU Parted used to be available, but with the emergence
of a plethora of rescue disks and Live CDs that all include GNU Parted this is no longer
necessary. However, please note that these disks often ship with out-of-date versions of
Parted. To compensate for this a static binary of the latest GNU Parted version is available,
which you can use thus:
1.6.2 Creating the Parted disk
1. Boot your system
2. Download ‘parted-static-VERSION.tgz’ from ftp://ftp.gnu.org/parted/static
3. Unpack the tarball, resulting in a file called “parted.static".
4. Insert a floppy.
剩余26页未读,继续阅读
资源评论
- hjl11182012-02-24编译通过了,不错,谢谢
dong_miao
- 粉丝: 2
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功