Can I extend /usr partition ??

Alexander Dalloz ad+lists at uni-x.org
Sat Nov 13 21:55:51 UTC 2004


Am Sa, den 13.11.2004 schrieb Rob Cartier um 21:40:

> I was trying to upgrade from FC2 to FC3 and was met with
> I need 142 mb of free space to upgrade on /usr :(
> 
> I have moved all the data out of  an adjacent partition
> which is /dev/hda6. (/shared)
> 
> The question is can I resize the existing /usr (/dev/hda5)
> to use all of /shared (/dev/hda6).
> 
> I tried using partitionmagic 8.0 but it appears it
> didnt like ext3 filesystems.
> 
> Will parted handle this task or am I just kidding myself
> and since this is the /usr partition the only option
> I have is to rebuild the system. If I use parted will I
> corrupt the partition table and be hosed.

See the parted feature list and parted's limitations:

http://www.gnu.org/software/parted/parted.html

Do resizing only with a full valid backup!

> This machine has been upgrade from RH9 -> FC1 -> FC2
> 
> 
> Disk /dev/hda: 30.0 GB, 30020272128 bytes
> 255 heads, 63 sectors/track, 3649 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1          64      514048+  83  Linux
> /dev/hda2              65        3649    28796512+   5  Extended
> /dev/hda5              65         447     3076416   83  Linux
> /dev/hda6             448         830     3076416   83  Linux
> /dev/hda7             831        1022     1542208+  83  Linux
> /dev/hda8            1023        1150     1028128+  83  Linux
> /dev/hda9            1151        1278     1028128+  83  Linux
> /dev/hda10           1279        1311      265041   82  Linux swap
> /dev/hda11           1312        1344      265041   82  Linux swap
> /dev/hda12           1345        1727     3076416   83  Linux
> /dev/hda13           1728        1855     1028128+  83  Linux
> /dev/hda14           1856        2365     4096543+  83  Linux
> /dev/hda15           2366        3649    10313698+  83  Linux
> 
> [root at apollo rcartier]# df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda1               497829    312197    159930  67% /
> /dev/hda8              1011928    527068    433456  55% /home
> none                    257924         0    257924   0% /dev/shm
> /dev/hda12             3028080   1788588   1085672  63% /shared2
> /dev/hda14             4032092    108720   3718548   3% /shared3
> /dev/hda15            10151832   4670816   4965332  49% /shared4
> /dev/hda9              1011928     16752    943772   2% /tmp
> /dev/hda5              3028080   2357808    516452  83% /usr
> /dev/hda13             1011928    501012    459512  53% /usr/local
> /dev/hda7              1517920    703192    737620  49% /var
> /dev/hda6              3028080     32824   2841436   2% /shared

> Rob Cartier

I would suggest following path: as hda5 and hda6 are neighbour partition
boot your system without /usr (hda5) not being used. Maybe do so with a
special rescue CD or a live-CD Linux like knoppix. Then move the data
from hda5 to a safe place and then erase both partitions hda5 and hda6.
Then recreate a new partition which will be used by hda5 and for /usr
and the remaining rest for hda6. Create the filesystem on both new
partitions. Copy back the saved data to the new and bigger hda5. Boot as
before.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.8-1.521smp 
Serendipity 22:47:50 up 24 days, 20:27, load average: 0.28, 0.42, 0.38 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20041113/988a9708/attachment-0002.bin 


More information about the users mailing list