If this is your first visit, be sure to
check out the FAQ. You will have to register
before you can post. To start viewing messages,
select the forum that you want to visit from the selection below.
Please do not use the CODE tag when pasting content that contains formatting (colored, bold, underline, italic, etc).
The CODE tag displays all content as plain text, including the formatting tags, making it difficult to read.
Do you want to create a snapshot of the system that you can roll back to if you mess stuff up?
I think lots of people (oshunluvr included if i'm not mistaken) use Btrfs for that. It's on my bucket list of things to try, sounds like it has some great features!
This is one of the reasons why I switched to btrfs.
How to work with snaphots in KUubuntu's layout
In order to work with snapshots of / or /home in the Ubuntu layout it is very convenient to mount the btrfs filesystem at a separate location, and work from the top of the btrfs tree, rather than from the mounted subvolumes.
sudo mount /dev/sdX# /mnt Create snapshots
To create a snapshot use
sudo btrfs subvolume snapshot /mnt/@ /mnt/@_snapshotthis will create a snapshot of the @ subvolume named @_snapshot located also in the top of the btrfs tree.
Rollback to a snapshot
To roll back to a snapshot, you simply need to change its name to the name that ubuntu mounts, using
sudo mv /mnt/@ /mnt/@_badroot
sudo mv /mnt/@_snapshot /mnt/@and reboot.
Delete a snapshot
To delete a snapshot use
sudo btrfs subvolume delete /mnt/@_badrootbtrfs snapshots are subvolumes in themselves, and self-contained, deleting the old @ subvolume like this is fine, provided we have a replacement.
Snapshots are created instantly.
You can create a snapshot of both @ and @home before you do an update or major change. If, after the update things are not right you can revert to previous condition. While there are programs to do this automatically ("snapper, etc.) the manual process is so easy it is, IMO, much better to do it manually and control the disk space usage that way.
NOTE: The btrfs-tools command ''set-default'' will break Ubuntu's layout. DO NOT use it. If you inadvertantly use it you can reverse it by using
sudo mount /dev/sdX# /mnt
sudo btrfs subvolume set-default 5 /mnt
"A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
– John F. Kennedy, February 26, 1962.
Comment