parted - Partition and filesystem resizer ChangeLog

HOWTO


# parted
# ======
# parted itself is a partition and filesystem resizer.  You don't want to
# run parted on a partition that you are actively using.  partboot (a floppy
# image from the author of parted) or paud should be used in those cases,
# unless you install parted to a bootable CD or an alternate partition.
# partboot is probably going to include a newer version of parted than paud
# will (because it's from the author of parted).  partboot used to be very
# light on other rescue-disk type utilities, but now consists of a boot and
# root floppy.  The root floppy has crunchbox and some utils installed on it
# now.  paud fits on one floppy and includes helpful utilities, including
# a copy of busybox.
# Another option is the SystemRescueCD bootable CD, which includes parted.

# If you want a GUI front-end for parted, take a look at gparted
# or QtParted.


# paud 2.0.3
# ==========
# paud 2.0.3 includes glibc 2.2.5, kernel 2.4.20 (the current 2.4.x is
# 2.4.32), and parted 1.6.25

# Prerequisites:
# fdutils (to format the floppies)

cd
test -f installed/paud-2.0.3.img &&
mv installed/paud-2.0.3.img .
test ! -f paud-2.0.3.img && wget http://download.sf.net/paud/paud-2.0.3.img

# Verify the image w/ md5sum:
echo "d2cc392478a02bf57a356922f0d95e64  paud-2.0.3.img" | md5sum -c

# Now put a floppy in your floppy drive.  If your non-root account doesn't
# have access to /dev/fd0, become root first.
fdformat /dev/fd0

# Copy the paud image to the floppy
dd if=paud-2.0.3.img of=/dev/fd0 bs=1k

# FYI, there is now also an expansion floppy that includes reiserfsck
# and SCSI kernel modules.  I've never used it, so I won't cover it here.

cd
mkdir -p -m 0700 installed
rm -f installed/paud-*.img
mv paud-2.0.3.img installed/


# partboot 1.6.6
# ==============
# Prerequisites:
# fdutils (to format the floppies)

# 2006/06/01: the bootdisk subdirectory doesn't seem to be there any more,
# to find somewhere to get it, Google for partboot.img  If you can't
# find it anywhere, let me know.  I may have it on floppies.

cd
test -f installed/partboot/partboot.img &&
mv installed/partboot/partboot.img .
test ! -f partboot.img &&
wget http://ftp.gnu.org/gnu/parted/bootdisk/partboot.img
test -f installed/partboot/partroot-1.6.6.gz &&
mv installed/partboot/partroot-1.6.6.gz .
test ! -f partroot-1.6.6.gz &&
wget http://ftp.gnu.org/gnu/parted/bootdisk/partroot-1.6.6.gz

# Verify the partboot image w/ md5sum:
# (this came from my gpg-verified partboot image)
echo "4aef144051d2cd3689a15fc1e6980233  partboot.img" | md5sum -c

# Verify the partboot image w/ gpg:
( gpg --list-keys A9EE98E0 > /dev/null 2>&1 || gpg --recv-keys A9EE98E0 ) &&
wget -nc http://ftp.gnu.org/gnu/parted/bootdisk/partboot.img.sig &&
  gpg --verify partboot.img.sig && rm partboot.img.sig

# Verify the partroot image w/ md5sum:
# (this came from my gpg-verified partroot image)
echo "8394edfadf4fc80651c003b76da2f53d  partroot-1.6.6.gz" | md5sum -c

# Verify the partroot image w/ gpg:
( gpg --list-keys A9EE98E0 > /dev/null 2>&1 || gpg --recv-keys A9EE98E0 ) &&
wget -nc http://ftp.gnu.org/gnu/parted/bootdisk/partroot-1.6.6.gz.sig &&
  gpg --verify partroot-1.6.6.gz.sig && rm partroot-1.6.6.gz.sig

# Now put a floppy in your floppy drive.  If your non-root account doesn't
# have access to /dev/fd0, become root first.
fdformat /dev/fd0

# Copy the partboot image to the floppy
cat partboot.img > /dev/fd0

## If you want to see what will be on the partroot floppy's filesystem without
## actually creating the floppy, try something like this from the directory
## that you have partroot-1.6.6.gz in:
# modprobe loop
# mkdir foo
# gzip -cd partroot-1.6.6.gz > partroot.img
# mount -o loop partroot.img foo
# cd foo
##
# cd ..
# umount foo
# rmdir foo
# rm partroot.img

# Put another floppy in /dev/fd0 to create the root floppy
fdformat /dev/fd0
cat partroot-1.6.6.gz > /dev/fd0

cd
mkdir -p -m 0700 installed/partboot
rm -f installed/partboot/partboot.img installed/partboot/partroot-*.gz
mv partboot.img partroot-1.6.6.gz installed/partboot/


# parted 1.8.8
# ============
# Slackware includes parted packages in 'extra'.  Slackware 8.1 includes
# version 1.6.1, 9.0 includes 1.6.5, 9.1 includes 1.6.6, 10.0 includes
# 1.6.11, 10.1 and 10.2's include 1.6.21, 11.0's includes 1.7.1, and
# 12.0's includes 1.8.7

# FYI, I tried building parted 1.6.8, .9, .10, and .11 with gcc 3.4.0 and
# it failed with the same error.  On that box, I went with the
# slackware-current package for 1.6.11:
# ftp://ftp.slackware.com/pub/slackware/slackware-current/extra/parted/
# It compiled fine for me on another box with gcc 3.3.3
# 1.6.25.1 compiled fine with gcc 3.4.5

# Prerequisites:
# gettext
# ncurses
# readline
# progsreiserfs' libreiserfs (if you want reiserfs support)

cd
test -f installed/parted-1.8.8.tar.bz2 &&
mv installed/parted-1.8.8.tar.bz2 .
test ! -f parted-1.8.8.tar.bz2 &&
wget http://ftp.gnu.org/gnu/parted/parted-1.8.8.tar.bz2

# Verify tarball w/ md5sum:
# (this came from my sha1sum and gpg-verified tarball)
echo "607ab4c3cfd8455af6588b97d99ad0ba  parted-1.8.8.tar.bz2" | md5sum -c

# Verify tarball w/ sha1sum:
# (this was verified with gpg)
echo "038eaa1656cc1d07ea413526a2e00adb977197f2  parted-1.8.8.tar.bz2" | \
sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 8CB55649 > /dev/null 2>&1 || gpg --recv-keys 8CB55649 ) &&
wget -nc http://ftp.gnu.org/gnu/parted/parted-1.8.8.tar.bz2.sig &&
  gpg --verify parted-1.8.8.tar.bz2.sig && rm parted-1.8.8.tar.bz2.sig

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "parted-*" -exec rm -r {} \;
tar xjvf ~/parted-1.8.8.tar.bz2
cd parted-1.8.8
test $UID = 0 && chown -R root:root .
chmod -R u+w .

# I had to use --without-readline with parted 1.8.7 and 1.8.8  I have
# the current version of readline, version 5.2 (and the patches), and with
# it, the configure test fails.  If you look at config.log you'll see
# 'undefined reference' errors.

./configure --prefix=/usr --enable-static=no --disable-nls \
--without-readline
make

# If you have texinfo installed and want the docs in HTML format (you'll
# get them in 'info' format already), run this, then you can view the docs
# with a web browser by opening doc/parted/index.html
( cd doc ; makeinfo --html parted.texi )

# Become root to install it
su

test -x /sbin/removepkg && /sbin/removepkg parted
rm -f /usr/lib/libparted.* /usr/lib/libparted-*.so.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/parted-*.tar.*
mv parted-1.8.8.tar.bz2 installed/


# If you ever want to uninstall parted, this should do it:
cd
su
test -d src/parted-* && ( cd src/parted-* ; make uninstall )
rm -f /usr/info/parted.info /usr/lib/libparted.* \
/usr/man/pt_BR/man8/parted.8 /usr/share/aclocal/parted.m4
test -d /usr/include/parted && rm -r /usr/include/parted
( cd /usr/man/man8 ; rm -f parted.8 partprobe.8 )
( cd /usr/sbin ; rm -f parted partprobe )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "parted-*" -exec rm -r {} \;
rm -f ~/installed/parted-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2007-09-13 4:02pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]