Bill Jonas on Sat, 8 Jun 2002 11:31:43 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] resizing a partition


On Sat, Jun 08, 2002 at 09:09:55AM -0400, pinkee@cavegirl.org wrote:
> Is there a sane way to make it all one partition?

Although it's always best to fdisk and restore, take a look at GNU
parted, in the Debian package 'parted'.  It looks like 'nparted' is GNU
parted with a pretty front-end.

Of course, parted comes with the same warranty as Partition Magic (none)
and the same warnings and disclaimers (this might cause massive data
loss so only proceed if you have a known good working backup).  At a
minimum, I would suggest backing up /home, /usr/local and /var/local (if
there are any files there), /etc, and, on a Debian system, save the
output of 'dpkg --get-selections'.  You might also want to save the
contents of /var/cache/apt/archives so you don't have to download all
the package files again if you do have to reinstall.  If you've never
done it, you might run 'apt-get autoclean' to keep only files that you
can still download (according to the contents of the /var/lib/apt/lists
files).  To restore, feed the contents of the file to which you saved
'dpkg --get-selections' into 'dpkg --set-selections' ('dpkg
--set-selections <file'), run 'apt-get dselect-upgrade', then restore
your backup of /etc.  This should restore your configuration to just
what it was before you did anything.

Depending on which filesystem you're using, check out the ext2resize
package.  Additionally, resize_reiserfs comes with reiserfsprogs.

See also <http://linuxmafia.com/~rick/faq/#partition>.

-- 
Bill Jonas    *    bill@billjonas.com    *    http://www.billjonas.com/
"They that can give up  essential  liberty to obtain a little temporary
safety deserve neither liberty nor safety."        -- Benjamin Franklin

Attachment: pgp1Xsx8G6ogB.pgp
Description: PGP signature