• Hi there,

    The original system disk used to take image:
    lsblk
    sda 477G

    the destination disk is:
    lsblk
    sda 447.1G

    in fog, the image on disk size is 288GB

    it’s a dual partition windows / ubuntu image.

    it’s set to ‘Single Disk - Resizeble’

    When I try to put the image on the smaller disk it says there’s not enough space even tho it’s resizeable with far less than the full disk size used.

    Any ideas how to resolve without replacing disks because there’s 30mb size difference?

  • Moderator

    @chris_unit As I said, this is a legacy BIOS partition layout and we can’t move around partitions on that.

    Sorry if you got my last message wrong. Simply deleting the first partitions won’t help. You’d need to move the still existing ones forward. But doing that in a rush could kill your Linux system. Depending on the boot loader used it might point to a certain sector on the disk.


  • @chris_unit said in HDD size missmatch error.:

    d1.minimum.partitions

    Hi there
    i’ve now deleted the windows partition so that is unused space
    but i’m still getting the error

    unit@fog_ubuntu_v80:/images/VFX-UbtuntuTesting-02nowindows$ cat d1.minimum.partitions
    label: dos
    label-id: 0x1b3934fb
    device: /dev/sda
    unit: sectors
    sector-size: 512

    /dev/sda3 : start= 999156224, size= 1056768, type=27
    /dev/sda4 : start= 439437822, size= 559718402, type=5
    /dev/sda5 : start= 439437824, size= 559718400, type=83

    here’s the layout on ubuntu
    sda 8:0 0 477G 0 disk
    ├─sda3 8:3 0 516M 0 part
    ├─sda4 8:4 0 1K 0 part
    └─sda5 8:5 0 266.9G 0 part /

    You can see here it’s a 477G drive but i just want the data not the unused space taht isn’t in these partitions above.

  • Moderator

    @chris_unit said in HDD size missmatch error.:

    Its fog version 1.5.9
    d1.minimum.partitions
    label: dos

    Sorry but this is an old school legacy BIOS install (DOS partition table) and it’s pretty much impossible to automatically shrink this to a smaller size disk because the the bootloader probably points to fixed sector count for booting and we would break things if we’d move a partition forward after shrinking the other ones.

    You can try manually shrinking this layout using tools like gparted or comercial stuff to manage partitions. FOG won’t be able to do this for you automatically.


  • @sebastian-roth
    Here you go

    C
    chris_unit
    16 minutes ago

    @sebastian-roth said in HDD size missmatch error.:

    d1.minimum.partitions
    

    Its fog version 1.5.9

    d1.minimum.partitions

    label: dos
    label-id: 0x1b3934fb
    device: /dev/sda
    unit: sectors
    sector-size: 512
    
    /dev/sda1 : start= 2048, size= 102400, type=7, bootable
    /dev/sda2 : start= 104448, size= 439331328, type=7
    /dev/sda3 : start= 999156224, size= 1056768, type=27
    /dev/sda4 : start= 439437822, size= 559718402, type=5
    /dev/sda5 : start= 439437824, size= 559718400, type=83
    
  • Moderator

    @chris_unit Which version of FOG do you use? Is this image you talk about setup in UEFI mode (GPT partition layout)?

    Best if you can post the contents of the text file d1.minimum.partitions here in the forums.

397
Online

9.0k
Users

15.6k
Topics

145.0k
Posts