Cloning Linbo Windows data and Linux home drive if it is on another partition

Hello,

I have a computer room where the clients have small SSDs and larger HDDs, so to save space, Windows user profiles and a few other things were moved there, just as in the case of Linux (Ubuntu), where the local home folders are mounted there. The question is, how can I configure start.conf so that these are also cloned?
I guess I would need to add a +2 OS entry (or a simple image if such a thing exists for data drives) in start.conf, but without any extras, just to create images?

Thanks, Fenyő

Update;

Could a fake OS entry like this work?

[OS]
Name = Ubuntu Homes
Version =
Description = Ubuntu Homes
IconName = ubuntu.svg
Image =
BaseImage = ubuntuhomes.qcow2
Root = /dev/sdb2
#Boot = /dev/sdb2
Kernel = auto
Initrd =
Append =
StartEnabled = no
SyncEnabled = yes
NewEnabled = yes
Hidden = yes
Autostart = no
DefaultAction = sync

[OS]
Name = Windows Adat
Version = Partition
Description = Windows Adatmeghajtó
IconName = win10.svg
Image =
BaseImage = winadat.qcow2
Root = /dev/sdb3
#Boot = /dev/sdb3
Kernel = auto
Initrd =
Append =
StartEnabled = no
SyncEnabled = yes
NewEnabled = yes
Hidden = yes
Autostart = no
DefaultAction = sync

Hi Fenyő,

i have a case thats a bit like yours, running for more than 10 Years.
I use ubuntu as OS, but i educate a course each year with networking, and use my virtual Environment of lmn for the students.
Since the machines are rather big, i store them in a second Partition.
I do not sync the virtual Machines on each boot, but when i sync them, i use linbo-remote.
There i can sync two partitions in a row and then start the first one.

linbo-remote -i DEVICENAME -c formtat:1,sync:1,format:2,sync:2,start:1

There is a „OS“ defined in the start.conf.GROUP for the virtualboxpartition.

You could do it like that: even if the Partition is on an other Device.

You might even link the two by hook scripts, so that the second Partition will always be cloned, after the first did.
Look here: GitHub - linuxmuster/linuxmuster-linbo7: Next generation linbo
Execute your own boot scripts might fit.

But i would try to buy ssds of sufficient size for those Clients: cloning a HDD is a time consuming task … The IO is quite poor…

LG
Holger

Thank you, unfortunately larger SSDs are not an option at the moment, so I have to make do with this room for now, obviously I won’t be synchronizing too often in this room. So if I declare the two data partitions as OS in start.conf as described above, will it work? That’s +2 clicks to create them and then another 2 clicks to clone them back. I can live with that if they’re not linked with a hook script. For now, I’m just curious to see if it would work this way.

Yes you can define those two Partitions as extra OS Sections in linbo.
What you cant do is: sync the second Partition and start the first.
So you would have to clone them not from the linbo gui but with linbo remote
Yours
Holger

Okay, so I manually add the data partitions to start.conf as a dummy OS (without start, boot, and kernel parameters). Then they appear in the linbo GUI, and I can create an image from them and restore them, but this is not good because then when I try to sync or reinstall the real OS, it doesn’t work, so I just repartition and clone the whole thing, first the real OS’s and then the data drives. How do I manually clone the data drive image so that nothing breaks (maybe I should create it manually)?

Hi Fenyo,

as i said: tread it as a normal OS, but be advised: using the GUI you cant (without hook scripts) clone two Partitions without starting an OS. So you have to use linbo-remote

Read about linbo remote, and things will clear up :slight_smile:
Yours
Holger

Thanks, so, if I understand correctly, I can create the data image from the GUI, but then the re-cloning is only possible from the server with linbo-remote, with the two images (os+data) hooked together? I’ll give it a try.
EDIT:
I tried it with linbo remote and something seems to happen, but then it doesn’t start (just like when I do it with gui, grub env error ls falls back to falling grub). If there are 4 partitions on the first drive and 3 on the second, how are they numbered according to Linbo Remote? Nicely in order, the first is sda1 and the seventh is sdb3, possibly starting from 0, or do only OSes count (sda1 win, sda4 ubuntu, sda2 ubuntu home, sd3 windows data)? Would it be safer to clone these data drives manually from an external data storage device under live Linux…