HDD size missmatch error.
The original system disk used to take image:
the destination disk is:
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?
@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.partitionshere in the forums.
Here you go
16 minutes ago
@sebastian-roth said in HDD size missmatch error.:
Its fog version 1.5.9
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
Its fog version 1.5.9
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.
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
/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.
@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.