Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

clonezilla - restoring

Linux Kernel, Network, and Services configuration.
Message
Author
LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 68 times

Re: clonezilla - restoring

#21 Post by LE_746F6D617A7A69 »

p.H wrote:(...)
LE_746F6D617A7A69 wrote:Do You mean that taking a snapshot of a running system requires to f.e. remount the root File System as read-only? Or to stop all the services / programs?
Stopping all services is not enough to prevent any write, and obviously you cannot stop all programs as some programs are needed to take the image. E.g. the bash shell writes each command in the history log. Remounting all filesystems (not only /) on the source device read-only prevent many services and programs from running properly, so I can hardly call this a "running system".
Thanks for clarifying this aspect. Of course the way to make images of a running system depends on the system configuration - usually it means taking a snapshot of a /root and/or home partition. On servers, the critical services (should) use dedicated storage systems, so they can keep running during creating a backup of the base system partition(s).

In case of typical desktop PC, remounting the /root as read-only allows to backup the drive without rebooting, using standard tools - IMO that is far more convenient, especially that in many cases it's possible to continue normal work, without having to wait until the backup is finished (and again, without rebooting). Then, You can remount the /root again as read-write (restoring the standard system behaviour).
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: clonezilla - restoring

#22 Post by milomak »

p.H wrote:
LE_746F6D617A7A69 wrote:what do You mean by "(...) may result in an inconsistent image"?
I'll take an example. While dd is running and has copied the first half of the device, the system writes new data in the first half (already copied by dd) and in the second half (not yet copied by dd). The resulting image will contain the old data in the first half and the new data in the second half, making it inconsistent. This is like screen tearing when the framebuffer reads and writes are not synchronized.
LE_746F6D617A7A69 wrote:Do You mean that taking a snapshot of a running system requires to f.e. remount the root File System as read-only? Or to stop all the services / programs?
Stopping all services is not enough to prevent any write, and obviously you cannot stop all programs as some programs are needed to take the image. E.g. the bash shell writes each command in the history log. Remounting all filesystems (not only /) on the source device read-only prevent many services and programs from running properly, so I can hardly call this a "running system".
so is that to say that if i am using rsync on a running system, that it will be as close to the system when rsync stops

so from playing around with clonezilla, i probably want to backup partitions. rsync has this option and also to compress the backup as a bz2 file.

would there be any difference between the two when restoring?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
eor2004
Posts: 251
Joined: 2013-10-01 22:49
Location: Puerto Rico
Has thanked: 4 times
Been thanked: 5 times

Re: clonezilla - restoring

#23 Post by eor2004 »

milomak wrote:i apologise if i have chosen the wrong forum

i have a clonezilla iso. will burn to usb. boot it.

what should i note to actually be able to make a working restore point?
Hi Milomak, you can also use timeshift to do system snapshots, yes I know it's rsync with a graphical user interface but it's really very easy to use, I've been using it in opensuse and on debian and it works really good to restore my system, if you do decide to go with clonezilla make sure that hard disk that you are transfering or cloning your system image to, is bigger in size than the one you want to back up, also it would be better if you use USB-3 for the backup device, hope this helps, cheers!

P.S. Here's a link to a document with the instructions that you can download on how to clone a disk with clonezilla: https://drive.google.com/file/d/1D7QmKg ... sp=sharing
Debian 12 Gnome on a MSI H61M-P25 (B3) PC & on a Dell Latitude E6410 & HP EliteBook 8540p Laptops.
LMDE 6 on a Panasonic ToughBook CF-C1 Laptop.
Bodhi Linux 7 on a HP Compaq DC5750 Small Form Factor PC.
Windows 11 on a Intel DH55TC PC.

Post Reply