Rob Wright wrote:

> rwright@aphrodite ~ > df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/sdb7               381139    163205    198256  46% /
> /dev/sdb1                46636     13922     30306  32% /boot
> /dev/sdb6             20849112    149448  19640584   1% /home
> none                   1032568         0   1032568   0% /dev/shm
> /dev/sdb2             41547796    976036  38461224   3% /usr
> /dev/sdb5              1004024    164676    788344  18% /var
>
> I'd like to resize /dev/sdb6 to 40Gb by shrinking /dev/sdb2 to ~20Gb, but

    Considering that all you want to do is swap the size on those two
partitions, it may be easier to just move the data from one partition to the
other, rather than going through the trouble of resizing.  A couple of ways I
can think of accomplishing this, but the best practice would probably be to do
it in rescue mode.  Move the contents of /home onto /usr, and move the contents
of /usr onto /home.  Edit your /etc/fstab and swap the names of the two
partitions (/dev/sda2 becomes /home, and /dev/sda6 becomes /usr), and reboot.

    Anyone see a big problem with this?

--
W | I haven't lost my mind; it's backed up on tape somewhere.
  +--------------------------------------------------------------------
  Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to