No resize linux partitions



  • Server
    • FOG Version:1.3.4
    • OS: Centos 7
    Client
    • Service Version: no
    • OS: Centos 7 / ubuntu 16
    Description

    Hi ! After deploy image I found root disk not resize completely ( just only size parent root) . Parent drive for image: sda1 /boot 300mb, sda2 / 10gb, sda3 swap 2gb. If I delete swap partition image resizing correct. I`m testing on CentOS7minimal and Ubuntu 16. What is wrong?

    P.S. Sorry for bad English.



  • As I understand realize resizing a few partitions is difficult? I try explain. If I manually partitioning drive and change default filesystem to ext4 for root, installer CentOS7 changes order of partitions. May be this is bug. But in some cases this feature will be strongly useful.

    I have one more question. Trouble with wrong UUID deployed swap partition is not solved?


  • Developer

    @tecm As you can see in the partitions listings you posted (thanks for that!) FOG does not alter the start of partitions. In your case sda3 (swap) will always start at sector 54624256 no matter what.

    Installing your system with swap as sda2 and root as sda3 should solve this for you!



  • That contained in files d1.minimum.partitions:

    %
    label: dos
    label-id: 0x0007adfe
    device: /dev/sda
    unit: sectors
    
    /dev/sda1 : start=        2048, size=      614400, type=83, bootable
    /dev/sda2 : start=      616448, size=     3304066, type=83
    /dev/sda3 : start=    54624256, size=     4096000, type=82
    
    

    That contained in files d1.partitions:

    %
    label: dos
    label-id: 0x0007adfe
    device: /dev/sda
    unit: sectors
    
    /dev/sda1 : start=        2048, size=      614400, type=83, bootable
    /dev/sda2 : start=      616448, size=    54007808, type=83
    /dev/sda3 : start=    54624256, size=     4096000, type=82
    

Log in to reply
 

435
Online

38999
Users

10717
Topics

101757
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.