Originally posted by CharlieDaves
View Post
Clonezilla's days are passed if you don't use EXT4, which I no longer recommend. Unless you are running a really old PC using MBR installs isn't recommended because as a 32 bit system it limits the addressable disk size to 2TB and you want double digits TB disk sizes.
This morning I had an update notice about a new kernel, 6.1.0-12. I did the usual. Dkms is used to compile a *.ko driver for my wifi chip. It automatically runs when ever there is a kernel update. This morning the update failed because of a problem with configuring the header, which left my ability to add or remove apps in the repository broken. It's not wise to run when you can not add or remove apps that are in the repository, or do automatic updates.
What did I do? I sudo'd to root, "mount /dev/sda3 to /mnt, then "mv /mnt/@rootfs to /mnt/@old" and then "btrfs su snapshot /mnt/snapshots/@202309091922 /mnt/@rootfs" and then rebooted. Took about a minute, and here I am answering your question about how to recover from a broken system.
So, obviously, my recommendation to you is to use BTRFS as your root filesystem. I've been using it since 2016 and have not had a single hiccup with it. It defaults to its std compression. My SSD is 495GB and part is used for a swap file.
btrfs fi usage /
reports:
Device size: 463.62GiB
Device allocated: 219.07GiB
Device unallocated: 244.55GiB
Device missing: 0.00B
Device slack: 0.00B
Used: 191.24GiB
Free (estimated): 270.17GiB
As you can see, BTRFS uses 463GB, of which 219GB is allocated and of that amount only 191GB is currently being used. What that doesn't show is that I have a daily copy of my system for the last week also on that drive. Each copy is about 112GB. So, about "560GB" of files is on an SSD that is only 463GB. It's magic, I tell you! Actually, it is compression, which has next to no effect on my system speed. I boot up in about 10 seconds and I rarely have to wait on my system.
My system has 16GB of RAM, an i5 Intel CPU and an Intel Iris Xe GPU. It runs GaiaSky beautifully (as well as UniverseSandbox^2) so BTRFS speed is not a problem, and that is generally the case on person PC's. Servers can be tuned for even higher performance.
So, use GPT for formatting your HDs and BTRFS for your filesystem, and stop all the nonsense about hardcoding partitions in your drive and then finding out later that you didn't leave enough room for root or home.
Comment