---- please choose one (? for help. .. to quit this menu)---- [exi]t [d]ebug/ [l]abel/ [b]adblock/ [exe]rcise/ [r]epartition/ fx> repartition ----- partitions----- part type cyls blocks Megabytes (base+size) 0: efs 7 + 80 2835 + 32400 1 + 16 1: rawdata 87 + 202 35235 + 81810 17 + 40 6: efs 289 + 1269 117045 + 513945 57 + 251 7: efs 7 + 1551 2835 + 628155 1 + 307 8: volhdr 0 + 7 0 + 2835 0 + 1 10: entire 0 + 1550 0 + 630990 0 + 308 capacity is 631017 blocks ----- please choose one (? for help, .. to quit this menu)----- [ro]otdrive [u]srrootdrive [o]ptiondrive [re]size
You see the partition layout for the disk that you specified when fx was started, followed by the repartition menu. Look at the size column for partitions 0, 1, and 6. In this example, you have 32400 + 81810 + 513945 = 628155 blocks to use. Look at the start block numbers, and notice that partition 7 overlaps 0, 1, and 6. Partition 0 is the Root filesystem, and is mounted on the system's root directory (/). Partition 1 is your system's swap space. Partition 6 is the Usr filesystem, and it is mounted on the /usr directory. In this example, you will take space from the Usr filesystem and expand the Root filesystem.
fx/repartition> resize Warning: you will need to re-install all software and restore user data from backups after changing the partition layout. Changing partitions will cause all data on the drive to be lost. Be sure you have the drive backed up if it contains any user data. Continue? y After changing the partition, the other partitions will be adjusted around it to fit the change. The result will be displayed and you will be asked whether it is OK, before the change is committed to disk. Only the standard partitions may be changed with this function. Type ? at prompts for a list of possible choices
fx/repartition/resize: partition to change = (swap) root current: type efs base: 7 cyls, 2835 blks, 1 Mb len: 80 cyls, 32400 blks, 16 Mb
fx/repartition/resize: partitioning method = (megabytes (2^20 bytes)) <Enter>
fx/repartition/resize: size in megabytes (max 307) = (16) 20 ----- partitions----- part type cyls blocks Megabytes (base+size) 0: efs 7 + 101 2835 + 40960 1 + 20 1: rawdata 108 + 180 43795 + 73250 21 + 36 6: efs 289 + 1269 117045 + 513945 57 + 251 8: volhdr 0 + 7 0 + 2835 0 + 1 10: entire 0 + 1558 0 + 630990 0 + 308
The new partition map is displayed. Note that the 4 megabytes that you added to your root partition were taken from the swap partition. Ultimately, you want those megabytes to come from the usr partition, but for the moment, accept the new partition layout.
Use the new partition layout? (no) yes
The new partition table is printed again, along with the total disk capacity. Then you are returned to the repartition menu.
fx/repartition> resize
You see the same warning message again.
fx/repartition/resize: partition to change = (swap) <Enter> current: type raw base: 108 cyls, 43795 blks, 21 Mb len: 180 cyls, 73250 blks, 36 Mb
fx/repartition/resize: partitioning method = (megabytes (2^20 bytes)) <Enter>
fx/repartition/resize: size in megabytes (max 307) = (36) 40 ----- partitions----- part type cyls blocks Megabytes (base+size) 0: efs 7 + 101 2835 + 40960 1 + 20 1: rawdata 108 + 202 43795 + 81920 21 + 40 6: efs 310 + 1247 125715 + 505275 61 + 247 8: volhdr 0 + 7 0 + 2835 0 + 1 10: entire 0 + 1558 0 + 630990 0 + 308
You see the new partition table. Note that the partition table now reflects that 4 megabytes have been taken from partition 6 (usr) and placed in the swap partition.
Use the new partition layout? (no) yes
The new partition table and the repartition submenu are displayed again.
fx/repartition> .. ----- please choose one (? for help, .. to quit this menu)----- [exi]t [d]ebug/ [l]abel/ [b]adblock/ [exe]rcise/ [r]epartition/ fx>