Ubuntu: BTRFS & Snapshots
Вставка
- Опубліковано 28 лис 2024
- UPDATE: Sorry for the type at 08:30. It's of course "noatime" and not "naoatime".
In this video we are going to see how to install Ubuntu with the btrfs file system and Timeshift. We are also going to look how to take auto snapshots at system updates and having snapshots on the GRUB bootloader.
Autosnap: github.com/wmu...
Grub-Btrfs: github.com/Ant...
** Become a Patreon to support the channel: bit.ly/39tSfgS **
** Follow Me on Twitter: bit.ly/3gKkPeR **
** Donate to the channel by visiting my Website **
My Hardware:
AMD Ryzen 9
32 GB RAM
Sapphire RX 5700 XT
My software:
Distro: Arch Linux
Video editing software: Kdenlive
Check out my Website and connect on Social Media!
Website: eflinux.com
Twitter: / ermanno_ferrari
Gitlab: gitlab.com/efl...
#LinuxMadeSimple #ubuntu #snapshots
Как же приятно смотреть твои туториалы, всё чётко, ясно и понятно, ничего лишнего, никакой пустой болтовни! Ты сэкономил мне уже кучу времени, спасибо тебе!
My pleasure!
instablaster.
Never realized that you can install Ubuntu just like Arch (in some way) :D
I love your tutorials. They are so clear and instructive. I've learned a lot and I am gaining more and more confidence with linux. I've tried a number of distros but usually come back to Mint. I really like the idea of using the BTRFS system so I'd love to see you do a similar video on installing Mint using BTRFS. I'd also like to see a video on converting an existing Mint EXT4 installation to BTRFS. Keep up the good work. I look forward to more great content.
To use space_cache version 2 use, space_cache=v2
Hi, I would like to request videos on openSUSE Tumbleweed. I think it would be nice to review and make informational videos on tools like Open Build System, **zypper** package manager, snapper, openQA, KIWI, etc. Tumbleweed itself being a rolling release but with a more unique strategy and ubiquitous and advanced tools may also get all my fellow Arch users interested in the topic just as I had couple of days ago and realized the beauty of Arch in there as well :)
Thanks in advance. Have a nice day :)
Thanks for the idea!
You're a great teacher! Thanks for sharing your knowledge to us.
My pleasure!
there is a typo. Home Subvolume is naotime, noatime would be correct of course.
Thanks, and sorry about that. I added a note to the video description.
Just WoW great video thank you for taking the time to teach us also I wasn't aware that you had to add all those options for the SSD drive to keep down the write times, I need to find out more information on this topic , have a great day
One of the best fat free videos I have seen about Linux in a long time. The only concern I have is that if you loose that computer drive you loose everything it does not matter what. But if you attach an small portable enclosure with two drives and perhaps the possibility to set up BTRFS raid mirror on it, then if anything happens to your local disk, your snapshots and fill backups are safer? I am really curious about seeing other demonstrations from you about XFS and ZFS, how would you better partition a desktop with local SSD drives and external HDD for backups. Thank you so much again, excellet and simple explanation.
One backup option (in additions to snapshots) is to regularly use Clonezilla to make a perfect clone of your system drive to 2 or more external nvmes. Then if your internal system drive crashes, you have multiple full backups that can be easily restored.
Wow...useful video...going to use this with upcoming Ubuntu release.
If anyone is trying this on Ubuntu 22.04 you may want to Omit the "space_cache" option. it's not needed because BTRFS is using newer version by default now.
Questa guida è stata utilissima e molto chiara, e mi ha permesso di capire un po' meglio come funziona la creazione dei volumi necessari per usare btrfs e della gestione delle immagini create. Grazie!
Grazie Massimiliano!
Danke Ermanno für das toll erklärte Video.
Natürlich würde es auch so mit Debian funktionieren. Wie sieht es aber bei einer Minimalen Installation aus? Muss man anschließend selbst "Hand anlegen"?
LG Andreas
Hallo Andreas, habe es nicht probiert, aber ich denke schon.
@@eflinux Danke für die schnelle Antwort, werde es mal in einer VM testen und dir Bescheid geben.
@@eflinux Kurze Rückmeldung: Habe es nun mit dem Debian Netinstaller im Expert Modus (nicht im graphical expert Modus) versucht und auch hinbekommen, inklusive dem Autosnap und Grub-Btrfs Paketen. Habe mir selber gleich ein Tutorial angelegt; werden es morgen auf meinem Notebook versuchen. Danke nochmals für das tolle Video. LG
At 8:28, the typographical mistake is going to cause access time not to be turned off. He typed naotime.
As always quality content 🔥
Appreciate it!
I really do wish that systemd-boot has the feature like grub-btrfs. I always think it's a tedious work to mount btrfs subvolume as the way I want on the distro other than Arch. I'm glad that you share the solution.
Can you make video on Calamares Building from source for our own Archiso???
Yes...
Thanks for explaining BTRFS this to us.
Very helpful video but not working quite on Ubuntu 23.04. Need to replace "space_cache" with "space_cache=v2" and it works then
Very good, caviat, surely it would be preferable to save the snapshots to a separate drive
How to do the partition if your system have SSD+SATA. I would like to put /home in SATA and root, boot and swap in SSD
Worked great on 21.04
Hi, this is a great video. I have been trying to do this for so long. Thank you so much. Would you mind doing this with LUKS Encryption? Again, much thanks.
Well done! Thank You very much, Ermanno! 👍
Glad you liked it!
Works like a magic.
Excellent tutorial ... Thanks a lot
I don't Know if you want to keep this virtual machine but for info, in your home options in Fstab you did a typo error, typing "naotime" instead of "noatime".
Yes, thanks, I noted that in the video description.
I truly appreciate the time and care taken to make this instructive video. Could you please consider making a "How to install Pop!_OS 21.10 with BTRFS Subvolumes & Snapshots" video please . Sadly the video instructions did not work with Pop!_OS 21.10 I am a novice and the only explanation I could come up with is that installer on Pop OS is different from the one Ubuntu is currently using. I was able to successfully do this on Ubuntu but sadly not on Pop!_OS 21.10 . Gracias por todo Senor Lopez.
I get back to work I'm going to send you a usa keyboard 😂 ive used some of those other countries keyboards omg so difficult.
Good morning EF, from Montreal, Canada, I too noted the naotime, and what it told me is that you are not a machine. You are a passionate Linux teacher and user.
I have a request.
Once the UBUNTU or Fedora or arch system is created, and there is a need to add a second drive, what does one do to add the second drive to the existing btrfs system?
I tried to add the second drive by mounting that drive to /mnt but then subvolume create has the name /mnt/xxx for my intended subvolume xxx . No youtube presentation, yours or any other presentor, illustrates how to add a second btrfs formatted disk to an existing system.
Hi Leslie! I didn't do a video yet about that, but the operation is pretty straightforward. After you've added the disk, make sure the system sees it with lsblk. Then type as root: "btrfs device add /dev/sdx /". Then distribute metadata from the first disk to the second, always as root, with: "btrfs filesystem balance / ". That's it.
It's possible with Ubuntu server 20-04?
I am curious, will this work with Calamares installer as well? I would like to install Ubuntu Studio 21.04 on BTRFS with snapshots but it uses Calamares instead of Ubiquity.
It should.
Do you have one for Pop os? Couldn't find that partman and 70btrfs file in pop os.
Excellent, I knew that because Garuda brought them by default. By the way you can have the snapshots function in grub but with ext4 fs?
No, that works only for btrfs.
@@eflinux is it possible that btrfs does not work with swap files?
It does, as you can see here: wiki.archlinux.org/index.php/btrfs#Swap_file
At 22.04 version manual partition requires an additional partition called a Reserved BIOS boot area with 1MB. So, create this partition at the before /boot or EFI partition. All others works fine.
Little question, i would install arch today but He mount Not /mnt whit the ext4 Filesystem. On google search have Not result of this error. My New x220 lenovo is the problem??
I am not sure I understand your question.
Can't we change the fstab after installing the system? Great video. How can we do this on btrfs multi device root?
Yes you can, and thanks for the feedback :)
Thanks Ermanno 👍
What is the shortcut keys for clear the terminal?
CTRL+L
Can you release a new tutorial for Tuxedo OS btrfs-grub and Timeshift autosnap-apt?
thanks
Can you make a setup with btrbk script where you "backup" the home subvolume to another drive? Very good video as always.
Very nice idea, I didn't know about this tool.
What is tiano core?
Please show ho to install Manjaro 21 on BTRFS with Timeshift
Really good and very interesting for me. It works well on a single disk and runs smoothly. I have one Question and hope you can help me out…
My Notebook has UEFI and 3 Discs. If I try to raid1 the OS it won’t work. Can you tell me what I have to do to get a working raid1 on my Notebook for the OS?
Would that also be with the way at version 22.04
I don’t understand, if I have a ssd, do I have to enter the option “ssd” ?
Yes
@@eflinux Isn't the "autodefrag" option also convenient?
BTW can't u choose btrfs filesystem when doing partition for the disk in GUI? I am not sure but correct me if I'm wrong
you can choose that, but it doesn't actually set up btrfs subvolumes,
Does this installation process work for Ubuntu 22.04? If not, what needs to be changed so it works for 22.04? I'd like to know before I start following your steps. Thanks!
I'm no expert, but I installed btrfs by selecting the 'something else' option, but without creating the partitions and ubiquity, bless it, installed with root and home as subvolumes. The only thing you have to do is to add the options to fstab after the first boot. All the other fiddly stuff shown above is not needed any more. It's worth trying the simple way first. If it doesn't work for you then you can use the method above. I'd like to echo all the thank yous -- it's a very clear explanation.
@@gavrilloprincep Great. Thanks. I follow your suggestion first.
I don't have "partman" on my ubuntu 22.04LTS!
very nice
Can I use this with Manjaro installation?
On Arch and Arch based distro there are some extra steps involved.
Ok thnx
Hi! Could you make a video for installing Ubuntu 22.04 on Btrfs and with Timeshift?
It should be same
@@sonulohani /usr/partman/mount.d/70btrfs does not exist in 22.04
I tried it on Ubuntu and Linux Mint, ubiquity crashed on both. Any idea why this happened. Please help!
space_cache=v2 ;-)
how i can make whit out lose data resize arch linux Partition 40 Gb i give i want be 60Gb have any way sorry poor english:(
Which filesystem are you using?
@@eflinux btrfs brother 😊
Just that APT is taking a lot of time to install packages on btrfs , else everything is working fine as expected
Very nice tutorial Thank You :-)
You are welcome!
With Ubuntu 22.04 beta don’t work
Ty sir:)
Ubuntu comes preinstalled with Gparted on the ISO. why give yourself pain and to the potential new users?
You don’t have all options available in gparted for btrfs.
modern Ubuntu distro can't create subvolumes
Zfs arch linux install pls
Why is it ubuntu has become not like it's name's meaning? It isn't for everyone min ram requirements is 4gb this is rediculous
gdisk is not a friendly tool, and there are much better alternatives available.
thank you for this completely useless guide
You’re welcome
first
I tried to switch from arch to ubuntu, but i dislike ubuntu now. :/
If you like Arch is difficult to switch :) The same the other way around, though.
@@eflinux ofc sir, but is weird cause, i grown w ubuntu then it was for my hard to install arch, after seen u videos, now is easy arch and best.