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

КОМЕНТАРІ • 106

  • @gigurdapetrovich4572
    @gigurdapetrovich4572 3 роки тому +5

    Как же приятно смотреть твои туториалы, всё чётко, ясно и понятно, ничего лишнего, никакой пустой болтовни! Ты сэкономил мне уже кучу времени, спасибо тебе!

  • @reyibarra26
    @reyibarra26 3 роки тому +8

    Never realized that you can install Ubuntu just like Arch (in some way) :D

  • @allwillbeburnedup
    @allwillbeburnedup 3 роки тому +6

    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.

  • @sonulohani
    @sonulohani 2 роки тому +3

    To use space_cache version 2 use, space_cache=v2

  • @dorukhan8707
    @dorukhan8707 3 роки тому +5

    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 :)

    • @eflinux
      @eflinux  3 роки тому +4

      Thanks for the idea!

  • @MrLopez-kz8zl
    @MrLopez-kz8zl 3 роки тому +3

    You're a great teacher! Thanks for sharing your knowledge to us.

    • @eflinux
      @eflinux  3 роки тому +1

      My pleasure!

  • @Nerdamania
    @Nerdamania 3 роки тому +3

    there is a typo. Home Subvolume is naotime, noatime would be correct of course.

    • @eflinux
      @eflinux  3 роки тому +1

      Thanks, and sorry about that. I added a note to the video description.

  • @nightwolf1966
    @nightwolf1966 3 роки тому +1

    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

  • @jairunet
    @jairunet 2 роки тому +2

    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.

    • @advaitc2554
      @advaitc2554 11 місяців тому

      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.

  • @AvradeepPatra23
    @AvradeepPatra23 3 роки тому +1

    Wow...useful video...going to use this with upcoming Ubuntu release.

  • @prajullas
    @prajullas 2 роки тому +1

    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.

  • @max77dhor
    @max77dhor 3 роки тому +1

    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!

    • @eflinux
      @eflinux  3 роки тому +2

      Grazie Massimiliano!

  • @Andreas-fh9zf
    @Andreas-fh9zf 3 роки тому +1

    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

    • @eflinux
      @eflinux  3 роки тому +2

      Hallo Andreas, habe es nicht probiert, aber ich denke schon.

    • @Andreas-fh9zf
      @Andreas-fh9zf 3 роки тому +1

      @@eflinux Danke für die schnelle Antwort, werde es mal in einer VM testen und dir Bescheid geben.

    • @Andreas-fh9zf
      @Andreas-fh9zf 3 роки тому +1

      @@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

  • @richardbennett4365
    @richardbennett4365 Рік тому

    At 8:28, the typographical mistake is going to cause access time not to be turned off. He typed naotime.

  • @PavanKumar-qq3dn
    @PavanKumar-qq3dn 3 роки тому +5

    As always quality content 🔥

    • @eflinux
      @eflinux  3 роки тому +3

      Appreciate it!

  • @吳炯仁
    @吳炯仁 3 роки тому

    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.

  • @keyurwaghela26
    @keyurwaghela26 3 роки тому +5

    Can you make video on Calamares Building from source for our own Archiso???

  • @mehdimj_ir
    @mehdimj_ir 2 роки тому

    Thanks for explaining BTRFS this to us.

  • @methanoid
    @methanoid Рік тому +1

    Very helpful video but not working quite on Ubuntu 23.04. Need to replace "space_cache" with "space_cache=v2" and it works then

  • @vilecoyote5673
    @vilecoyote5673 3 роки тому +1

    Very good, caviat, surely it would be preferable to save the snapshots to a separate drive

  • @anupamjamatia
    @anupamjamatia 2 роки тому

    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

  • @yearoflinux
    @yearoflinux 3 роки тому +2

    Worked great on 21.04

  • @briankoech4307
    @briankoech4307 3 роки тому +1

    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.

  • @poltorukhin_andrey
    @poltorukhin_andrey 3 роки тому +1

    Well done! Thank You very much, Ermanno! 👍

    • @eflinux
      @eflinux  3 роки тому +2

      Glad you liked it!

  • @DrAhmedEissaPage
    @DrAhmedEissaPage 2 роки тому

    Works like a magic.
    Excellent tutorial ... Thanks a lot

  • @TheBrainQC
    @TheBrainQC 3 роки тому +1

    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".

    • @eflinux
      @eflinux  3 роки тому +1

      Yes, thanks, I noted that in the video description.

  • @nxs44
    @nxs44 2 роки тому

    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.

  • @mustafababdullah2485
    @mustafababdullah2485 3 роки тому +3

    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.

  • @lsatenstein
    @lsatenstein 3 роки тому +1

    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.

    • @eflinux
      @eflinux  3 роки тому +2

      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.

  • @xyzfit8787
    @xyzfit8787 3 роки тому +1

    It's possible with Ubuntu server 20-04?

  • @BigRed1500LC
    @BigRed1500LC 3 роки тому +1

    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.

  • @MannyGraal
    @MannyGraal 2 роки тому

    Do you have one for Pop os? Couldn't find that partman and 70btrfs file in pop os.

  • @CesarPeron
    @CesarPeron 3 роки тому +1

    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?

    • @eflinux
      @eflinux  3 роки тому +2

      No, that works only for btrfs.

    • @CesarPeron
      @CesarPeron 3 роки тому +1

      @@eflinux is it possible that btrfs does not work with swap files?

    • @eflinux
      @eflinux  3 роки тому +1

      It does, as you can see here: wiki.archlinux.org/index.php/btrfs#Swap_file

  • @4gounited726
    @4gounited726 2 роки тому +1

    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.

  • @raffanemo5878
    @raffanemo5878 3 роки тому +1

    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??

    • @eflinux
      @eflinux  3 роки тому +1

      I am not sure I understand your question.

  • @PankajSharma-ir7fb
    @PankajSharma-ir7fb 3 роки тому +1

    Can't we change the fstab after installing the system? Great video. How can we do this on btrfs multi device root?

    • @eflinux
      @eflinux  3 роки тому +1

      Yes you can, and thanks for the feedback :)

  • @nerdnotawheep5474
    @nerdnotawheep5474 3 роки тому +2

    Thanks Ermanno 👍

  • @madhusudanbohra7593
    @madhusudanbohra7593 3 роки тому +1

    What is the shortcut keys for clear the terminal?

  • @HolyGateStudio
    @HolyGateStudio Рік тому

    Can you release a new tutorial for Tuxedo OS btrfs-grub and Timeshift autosnap-apt?
    thanks

  • @Nerdamania
    @Nerdamania 3 роки тому +1

    Can you make a setup with btrbk script where you "backup" the home subvolume to another drive? Very good video as always.

    • @eflinux
      @eflinux  3 роки тому +1

      Very nice idea, I didn't know about this tool.

  • @juca8001
    @juca8001 3 роки тому

    What is tiano core?

  • @CesarGomes1978
    @CesarGomes1978 3 роки тому

    Please show ho to install Manjaro 21 on BTRFS with Timeshift

  • @bodo_bihler
    @bodo_bihler 2 роки тому

    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?

  • @wolfgangeppingen1855
    @wolfgangeppingen1855 2 роки тому

    Would that also be with the way at version 22.04

  • @Giovanni2862
    @Giovanni2862 2 роки тому +1

    I don’t understand, if I have a ssd, do I have to enter the option “ssd” ?

    • @eflinux
      @eflinux  2 роки тому +1

      Yes

    • @Giovanni2862
      @Giovanni2862 2 роки тому

      @@eflinux Isn't the "autodefrag" option also convenient?

  • @deepakshivraj4881
    @deepakshivraj4881 3 роки тому

    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

    • @StillConfusing
      @StillConfusing 3 роки тому +1

      you can choose that, but it doesn't actually set up btrfs subvolumes,

  • @advaitc2554
    @advaitc2554 Рік тому

    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!

    • @gavrilloprincep
      @gavrilloprincep Рік тому +2

      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.

    • @advaitc2554
      @advaitc2554 11 місяців тому

      @@gavrilloprincep Great. Thanks. I follow your suggestion first.

  • @mehrdadpc
    @mehrdadpc 6 місяців тому

    I don't have "partman" on my ubuntu 22.04LTS!

  • @hehehepaitachato9184
    @hehehepaitachato9184 3 роки тому +2

    very nice

  • @AvradeepPatra23
    @AvradeepPatra23 3 роки тому +1

    Can I use this with Manjaro installation?

    • @eflinux
      @eflinux  3 роки тому +2

      On Arch and Arch based distro there are some extra steps involved.

    • @AvradeepPatra23
      @AvradeepPatra23 3 роки тому

      Ok thnx

  • @Giovanni2862
    @Giovanni2862 2 роки тому

    Hi! Could you make a video for installing Ubuntu 22.04 on Btrfs and with Timeshift?

    • @sonulohani
      @sonulohani 2 роки тому

      It should be same

    • @paulgo1146
      @paulgo1146 Рік тому

      @@sonulohani /usr/partman/mount.d/70btrfs does not exist in 22.04

  • @ambrosesanil1374
    @ambrosesanil1374 2 роки тому

    I tried it on Ubuntu and Linux Mint, ubiquity crashed on both. Any idea why this happened. Please help!

  • @MovieMoments-Erz
    @MovieMoments-Erz 3 роки тому +1

    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:(

    • @eflinux
      @eflinux  3 роки тому +1

      Which filesystem are you using?

    • @MovieMoments-Erz
      @MovieMoments-Erz 3 роки тому

      @@eflinux btrfs brother 😊

  • @darahaasn1549
    @darahaasn1549 3 роки тому

    Just that APT is taking a lot of time to install packages on btrfs , else everything is working fine as expected

  • @ronnierush9379
    @ronnierush9379 3 роки тому

    Very nice tutorial Thank You :-)

    • @eflinux
      @eflinux  3 роки тому +1

      You are welcome!

  • @Giovanni2862
    @Giovanni2862 2 роки тому

    With Ubuntu 22.04 beta don’t work

  • @MovieMoments-Erz
    @MovieMoments-Erz 3 роки тому +1

    Ty sir:)

  • @motherboardbroken2305
    @motherboardbroken2305 3 роки тому

    Ubuntu comes preinstalled with Gparted on the ISO. why give yourself pain and to the potential new users?

    • @eflinux
      @eflinux  3 роки тому

      You don’t have all options available in gparted for btrfs.

  • @76739
    @76739 Рік тому

    modern Ubuntu distro can't create subvolumes

  • @anzar4142
    @anzar4142 3 роки тому

    Zfs arch linux install pls

  • @mustafababdullah2485
    @mustafababdullah2485 3 роки тому

    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

  • @whywhatwherein
    @whywhatwherein 5 місяців тому

    gdisk is not a friendly tool, and there are much better alternatives available.

  • @eygs493
    @eygs493 День тому

    thank you for this completely useless guide

    • @eflinux
      @eflinux  День тому

      You’re welcome

  • @amogid
    @amogid 3 роки тому +1

    first

  • @ChristianF2
    @ChristianF2 3 роки тому +3

    I tried to switch from arch to ubuntu, but i dislike ubuntu now. :/

    • @eflinux
      @eflinux  3 роки тому +4

      If you like Arch is difficult to switch :) The same the other way around, though.

    • @ChristianF2
      @ChristianF2 3 роки тому

      @@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.