[oclug] aaawwwww crap
brianbarber at myrealbox.com
Mon Jun 14 13:35:41 EDT 2004
I agree with Andrew, but there was a situation with a server at work where it wasn't feasible implement any of his sugestions. IIRC, I went into runlevel 1, copied the contents of the partition to be downsized to another partition, unmounted and deleted the partition to be downsized using fdisk, increased the size of the partition that needed to be increased using parted, re-created the partition that I just deleted using fdisk, formatted and mounted it, copied the data back into the newly created partiton, and returned to the original runlevel. As it turns out, I don't even recall having to modify /etc/fstab.
It sounds like a nasty bit of work, bit it's do-able if you're careful about the process. If you are going to approach it this way, please have good, tested backups (note: plural) and please verify the steps before you start. I am going off the top of my head and I may have omitted something.
All the best,
From: "Andrew J. Hutton" <ajh at steamballoon.com>
To: General Membership Discussion List <oclug at lists.oclug.on.ca>
Date: Mon, 14 Jun 2004 13:24:08 -0400
Subject: Re: [oclug] aaawwwww crap
On Monday 14 June 2004 13:20, Michael Bazdell wrote:
> On Mon, 2004-06-14 at 01:31, Tom Goulet wrote:
> > Parted.
> > Read some Fine Material and... get a Parted-capable bootdisk. Like
> > this:
> > | http://paud.sourceforge.net/
> Okay so I was reading into resize the partition, and now I'm this is
> where it gets tricky..
> I want to take the room from /dev/hda2 and put it into /dev/hda5.
> /dev/hda5 is ofcourse a extended partition and hda2 is a primary. If I
> resize the drive and the first block or cylender or whatever is
> different, will my data still be there after I resize the file system?
What most of us end up doing after awhile is just buying a new drive, copying
things over to it using cp into the new layout and going on. This isn't the
cheapest option, and if your current drive is less than 6 months old is
probably not the right one for you but if it is older the speed up from a new
drive is always nice.
The other option of course is just backing up /etc and /home and
re-installing, this is often the fastest approach.
OCLUG general discussion list
OCLUG at lists.oclug.on.ca
More information about the OCLUG