Re: Resizing a hard drive

Holden Hao <[email protected]>
Newsgroups gmane.org.user-groups.mlug.main
Message-ID <[email protected]>
> I did try a Knoppix CD but when I run parted from the CD, I get a warning
> that my swap partition is in use. Funny thing is a df doesn't show this.
> I'm cautious because a wrong step would end up screwing up five years of
> running without a reinstall.

The easiest solution would be to just creat a new partition and file
system for the free space and mount it to your existing filesystem.

If what you want is to expand an small partition, this involves two
things, expanding the partition itself and telling the filesystem of
this change.  I am not familiar if parted can already do this
automatically.  I do know that some filesystems have tools that can do
this manually.

If you want to disable your swap space, try running "swapoff" from a
terminal.  And if you move it into another partition, remeber to edit
and adjust /etc/fstab, accordingly.

As a word of caution, please backup your partition before you try any
of the above.


Holden
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.