hi everyone,
please help to solve this problem but
- first: the idea
- second: the configuration
- third: the processes
- fourth: the problem
OS: debian bullseye
the idea
- clone Internal Hard Disk Drive (i will name IHDD) to External Hard Disk Drive (i will name EHDD) and get 2 functionnable systems
- clone (I will name restore) EHDD to IHDD and get 2 functionnable systems
why?
- to get a 100% identical backup
- if i break IHDD debian system, i can work with EHDD
- if i break IHDD debian system, i can restore IHDD with EHDD clone/backup
the configuration
i install debian to IHDD with simple configuration (no EHDD plugged)
- /dev/sda1= EFI partition
- /dev/sda2= swap partition
- /dev/sda3= root (+home) partition
the processes: 2
- 01: clone from IHDD to EHDD and change some EHDD files, jod is done, i get my backup, fully functionnable system
- 02: restore (a new clone process) from EHDD to IHDD and after... HERE IS THE PROBLEM
process 1:
well, i'm cloning from IHDD to EHDD (clone/backup process)
- using clonezilla to clone from IHDD to EHDD (local_disk to local_disk option)
>> ok job is done, after i turn off the PC, unplug EHDD and boot
- after this, plug EHDD and
- Changing
EHDD UUID EFI partition (/dev/sdb1)
EHDD UUID swap partition (/dev/sdb2)
EHDD UUID root partition (/dev/sdb3)
>> ok job is done, after
- changing
EHDD PARTUUID EFI partition (/dev/sdb1)
EHDD PARTUUID swap partition (/dev/sdb2)
EHDD PARTUUID root partition (/dev/sdb3)
>> ok job is done, after
- changing
EHDD/etc/fstab (to write new EHDD UUID partitions(EFI, swap and root))
EHDD/etc/default/grub (to write at the end on this file line: GRUB_OS_PROBER_DISABLE=true)
EHDD/boot/grub/grub.cfg (to write new EHDD UUID root partition)
>> ok job is done, after
- update-grub from IHDD
>> ok job is done
finally i can boot with IHDD or EHDD. First process is done
now i want to clone from EHDD to IHDD (process 2)
process 2:
I use clonezilla to clone from EHDD to IHDD
>> ok job is done, after
here is the problem
after, i can boot from IHDD or from EHDD (no matter), i will get a grub console
and i want to avoid (cancel?) this behavior
do i need to work with clonezilla shell commands (what are steps, files i need to change, what HDD?)
do i need to work with grub console (what are steps, files i need to change, what HDD?)
1 idea:
a way to "turn off" IHDD while PC is booting? When i'm into graphic session, i mount IHDD partitions (EFI and root),
change UUIDs, PARTUUIDS, /etc/fstab, /boot/grub/grub.cfg, /etc/default/grub and i run update-grub from EHDD
is that possible? how?
what do u think?
please help to solve this problem but
- first: the idea
- second: the configuration
- third: the processes
- fourth: the problem
OS: debian bullseye
the idea
- clone Internal Hard Disk Drive (i will name IHDD) to External Hard Disk Drive (i will name EHDD) and get 2 functionnable systems
- clone (I will name restore) EHDD to IHDD and get 2 functionnable systems
why?
- to get a 100% identical backup
- if i break IHDD debian system, i can work with EHDD
- if i break IHDD debian system, i can restore IHDD with EHDD clone/backup
the configuration
i install debian to IHDD with simple configuration (no EHDD plugged)
- /dev/sda1= EFI partition
- /dev/sda2= swap partition
- /dev/sda3= root (+home) partition
the processes: 2
- 01: clone from IHDD to EHDD and change some EHDD files, jod is done, i get my backup, fully functionnable system
- 02: restore (a new clone process) from EHDD to IHDD and after... HERE IS THE PROBLEM
process 1:
well, i'm cloning from IHDD to EHDD (clone/backup process)
- using clonezilla to clone from IHDD to EHDD (local_disk to local_disk option)
>> ok job is done, after i turn off the PC, unplug EHDD and boot
- after this, plug EHDD and
- Changing
EHDD UUID EFI partition (/dev/sdb1)
EHDD UUID swap partition (/dev/sdb2)
EHDD UUID root partition (/dev/sdb3)
>> ok job is done, after
- changing
EHDD PARTUUID EFI partition (/dev/sdb1)
EHDD PARTUUID swap partition (/dev/sdb2)
EHDD PARTUUID root partition (/dev/sdb3)
>> ok job is done, after
- changing
EHDD/etc/fstab (to write new EHDD UUID partitions(EFI, swap and root))
EHDD/etc/default/grub (to write at the end on this file line: GRUB_OS_PROBER_DISABLE=true)
EHDD/boot/grub/grub.cfg (to write new EHDD UUID root partition)
>> ok job is done, after
- update-grub from IHDD
>> ok job is done
finally i can boot with IHDD or EHDD. First process is done
now i want to clone from EHDD to IHDD (process 2)
process 2:
I use clonezilla to clone from EHDD to IHDD
>> ok job is done, after
here is the problem
after, i can boot from IHDD or from EHDD (no matter), i will get a grub console
and i want to avoid (cancel?) this behavior
do i need to work with clonezilla shell commands (what are steps, files i need to change, what HDD?)
do i need to work with grub console (what are steps, files i need to change, what HDD?)
1 idea:
a way to "turn off" IHDD while PC is booting? When i'm into graphic session, i mount IHDD partitions (EFI and root),
change UUIDs, PARTUUIDS, /etc/fstab, /boot/grub/grub.cfg, /etc/default/grub and i run update-grub from EHDD
is that possible? how?
what do u think?