Re: Grow Partion or Map /usr and /var to New Partition Out of Disk Space

From: mjt (mjtobler_at_removethis_consultant.com)
Date: 11/28/03


Date: Fri, 28 Nov 2003 17:19:17 GMT

On Fri, 28 Nov 2003 07:22:11 -0600, Gary Heinl <garyheinl@covad.net> wrote:

> All I need
> really is to grow the / partition which is now 3.7 gig

... to grow the current partition, you simply re-create it
to include the new size you want. let's say you have:
/dev/hdb1 == 3.7 gig, formatted as ext3
/dev/hdb2 == 4.1 gig, formatted as ext3

you want hdb1 to include (grow it) hdb2 (using fdisk):

1) delete partition /dev/hdb2
2) let fdisk tell you the starting cylinder # for hdb1
3) delete /dev/hdb1
4) create a new Linux (hdb1) partition, using the starting
   cylinder number given in (2) and for the size, give
   it the sum of 3.7+4.1 or 7.8M
5) grow the filesystem (which already exists) on hdb1

for a somewhat detailed overview, go here:
http://groups.google.com/advanced_group_search?hl=en

... and use the following msg-id:
Message-ID: <L25l9.38427$hf2.465135726@newssvr30.news.prodigy.com>

in here, i described how a resized a reiserfs

>or add the new
> partition which is 4.1 gig with some mapping /usr and /var. My problem is
> that I don't want to reinstall Redhat 9.0 since I have everything working
> so I would have to copy the existing /usr and /var to the new partition
> and let the operating system know where they are.

... simply create the directories on that blank partition,
copy the directories' contents to the newly created ones,
then specify the entries in /etc/fstab
.

-- 
///    Michael J. Tobler: motorcyclist, surfer, skydiver,    \\\ 
\\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
Be free and open and breezy!  Enjoy!  Things won't get any 
better so get used to it.


Relevant Pages

  • Re: Migrate ubuntu to another partition
    ... I want to migrate my installation from one partition to another. ... currently it is on hdb1 and I want to move it to hdb3. ... I am not familiar enough with Ubuntu to explain it step by ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (Ubuntu)
  • Re: Migrate ubuntu to another partition
    ... I want to migrate my installation from one partition to another. ... currently it is on hdb1 and I want to move it to hdb3. ... I am not familiar enough with Ubuntu to explain it step by ...
    (Ubuntu)
  • Re: Removing/Replacing primary IDE disk
    ... hdb1 is currently a 0.5G swap partition. ... hda5 is the first logical partition - are logical partitions always ... I had swap on hdb1 and haven't ...
    (uk.comp.os.linux)
  • Re: [SLE] New Harddrive - almost there!
    ... > I'm setting up a new harddrive (hdb) and want to move all the user data ... > partition hdb should I partition as a primary or as an extended ... If you're going to use the whole disk as /home then make it hdb1, ... When you copy the old /home files, you mount it on a different directory. ...
    (SuSE)
  • Re: Debian in a VMware VM and LVM
    ... First I had a look at the current disk layout using fdisk -l ... Partition 1 does not end on cylinder boundary. ...
    (Debian-User)