On Wed, Mar 16, 2005 at 10:13:39AM -0600, Chad Walstrom wrote:
> On Wed, Mar 16, 2005 at 10:09:27AM -0600, Nick wrote:
> > Here is the printout from my Linux box, which I'm trying to re-
> > partition without re-installing. To review, Linux is only using half
> > the harddrive. I want to be able to expand linux into the rest of the
> > drive without messing anything up.  Thanks!
> > Nick
> 
> Install GNU parted.  Boot into recovery mode or off a Knoppix CD (that
> has GNU parted).  http://www.gnu.org/software/parted/parted.html
> 

I second the knoppix/parted idea. Before you start, though, be sure to
backup important stuff. You'll need to juggle partitions around to do what
you want. 

This is what you're drive looks like now (sort of) delimited by the cylinder
numbers:

[1..hda1..34].......[504..............hda3...........................1299]
                    [504..hda5(swap)..537][538........hda6(/)........1299]

hda5 and hda6 are logical partitions inside hda3 which is an extended
partition. hda6 is where your file system is. You don't seem to be using
hda1 and the space from cylinder 35 to 503 is unpartitioned.

The simplest thing is to just delete hda1 and create a new hda1 from cylinder
1 to 503 and mount that somewhere on your filesystem.

If you really want one partition, you could create hda1 as above, copy hda6
into it (assuming it fits), delete hda3, 5, and 6, then resize hda1 up to
cylinder 1260 or so and create a new swap partition at the end as hda2.

(And don't forget to rewrite /etc/fstab to point to the new / and swap
partitions.)

-Steve