Hi,
I need to restore a disk image of a 80GB disk on several (hundreds) PCs with bigger disks (250/320/500/ecc).
The problem is that this disk is a linux disk, with 2 partitions: swap and root. So, if I use the -r option and I try to restore the 80GB image on a 500GB disk, I end up having 2 resized partition, whose size will be 50GB (for swap) and 450GB (for root) - and I do not really want a 50GB swap partition ;)
So, my problem is that I need to find an automagic way so that I can restore the small image in bigger disks, but having only the root partition to be resized.
Is this possible? Any clues or ideas?
Thank you very much!
Daniele
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Daniele,
I think you have two options:
1. Prepare the partition table on the target disk first, then turn on "-r" and "-k".
2. Write a script to create the partition table on target disk, put it in /opt/drbl/share/ocs/prerun/, and check option "-o1".
Some examples you can refer:
/opt/drbl/samples/create-*pt-sf
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
BTW, maybe you can modify /opt/drbl/sbin/ocs-expand-mbr-pt to make it. It's a bash script, so it's not too difficult to modify it.
If you make it, please share that.
Thanks.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I need to restore a disk image of a 80GB disk on several (hundreds) PCs with bigger disks (250/320/500/ecc).
The problem is that this disk is a linux disk, with 2 partitions: swap and root. So, if I use the -r option and I try to restore the 80GB image on a 500GB disk, I end up having 2 resized partition, whose size will be 50GB (for swap) and 450GB (for root) - and I do not really want a 50GB swap partition ;)
So, my problem is that I need to find an automagic way so that I can restore the small image in bigger disks, but having only the root partition to be resized.
Is this possible? Any clues or ideas?
Thank you very much!
Daniele
Daniele,
I think you have two options:
1. Prepare the partition table on the target disk first, then turn on "-r" and "-k".
2. Write a script to create the partition table on target disk, put it in /opt/drbl/share/ocs/prerun/, and check option "-o1".
Some examples you can refer:
/opt/drbl/samples/create-*pt-sf
Steven.
BTW, maybe you can modify /opt/drbl/sbin/ocs-expand-mbr-pt to make it. It's a bash script, so it's not too difficult to modify it.
If you make it, please share that.
Thanks.
Steven.