Questions tagged [btrfs]

Btrfs is a new copy on write filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Initially developed by Oracle, Btrfs is licensed under the GPL and open for contribution from anyone.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 views

Grub not recognizing btrfs partition after Ubuntu installation

Recently I've installed Ubuntu 20.04 (ext4). On the same disk was installed Linux Mint 19 (btrfs). I was able to mount partition, copy files, etc. It wasn't corrupted. After installing Ubuntu grub was ...
0
votes
0answers
14 views

Logging issue in graphics terminal in Ubuntu 20.04 after timeshift setup

I installed timeshift btrfs type in my Dell laptop with Ubuntu 20.04 for btrfs. After reboot, I see login is not possible in graphics console and so pressing CTRL-ALT-F2 I came to text console and ...
1
vote
1answer
24 views

Any way to pause a task and then restart within a pipe

I use a command like btrfs restore -iv /dev/sdc1 /RESTORED estimated time of running it is few days In every hour of running I see a lot of prompts like: We seem to be looping a lot on /path/to/some/...
0
votes
0answers
29 views

Why does a drive appear to have more free space than its capacity, even though a large amount of space is taken?

I have a 3 TB (2.7 TiB) hard drive attached to my system, which is formatted as Btrfs. As can be seen in the screenshot, there are files on the hard drive totaling 709.6 GiB (bottom part of the ...
1
vote
0answers
67 views

How can I fix a BTRFS “parent transid verify failed” error?

I'm new to Ubuntu and I think something went wrong while performing apt upgrades. The unattended upgrades fail due to this error message: dpkg: Fehler beim Bearbeiten des Paketes linux-headers /...
1
vote
0answers
36 views

What causes btrfs to be loaded at boot-time?

On my machine, I noticed in dmesg, that it runs benchmarks during boot time: [53263.092443] raid6: avx2x4 gen() 31855 MB/s [53263.160430] raid6: avx2x4 xor() 9347 MB/s [53263.228450] raid6: ...
1
vote
1answer
171 views

btrfs subvolume strategy on single drive

I just installed Ubuntu 21.04 on a single SSD drive (this is my first time), with a single BTRFS-formatted partition beyond EFI. In the past running Windows, I would typically partition my drive with ...
0
votes
0answers
20 views

Failed to mount partition after rezize

So I messed up. I tried to encrypt my backup disk. So I created a new LUKS partition with a btrfs file system and moved my files to the new partition. Once the new partition was out of space, I shrunk ...
0
votes
0answers
129 views

20.04 Add grub-entry to boot a btrfs snapshot

I have install btrfs on my 20.04 system and I created a snapshot named @-2021-04-10 of the root subvolumne named @. Now a want to add a grub menu entry to boot this snapshot. How can I add such a boot ...
0
votes
1answer
134 views

External drive keeps getting mounted under /media/ even though I have it in fstab under /mnt

I have 3 physical external USB drives. All are btrfs. Two are combined into a single volume, the other is not. The two volumes are both in /etc/fstab to be mounted at /mnt and that works fine, but ...
1
vote
1answer
80 views

file manager cannot mount btrfs usb disk

I have a btrfs usb disk. When I click on the partition, it cannot be mount and an error pops up: no object for d-bus interface But I can use udisksctl mount -b <dev> to mount it. I then click it ...
0
votes
0answers
29 views

Is there a formal way to get all hardlinks to a particular inode?

Suppose I wanted to purge an inode from the filesystem, and suppose I had multiple hardlinks scattered all over the place; I would need to track all of them down before I could free space from my ...
0
votes
1answer
80 views

Why is my swapfile not getting automatically mounted?

I always have to manually activate the swapfile after boot. What's wrong? Here is my /etc/fstab: # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique ...
1
vote
2answers
169 views

How can I mount a subvolume on BTRFS from Arch in Ubuntu? [closed]

I have switched from Arch to Ubuntu. The installation was quite easy, however I cannot mount a BTRFS subvolume. When mounting with sudo mount -o subvol=markus /dev/nvme0n1p3 /mnt/backup/ I get the ...
0
votes
0answers
30 views

How short path to convert my home partition(encrypted) ext4 to btrfs?

What steps should I take to convert my / home (ext4) partition to btrfs It will be worth it, because in the past (2 years or more) I have used this file system, but I had some problems, especially ...
1
vote
0answers
107 views

system IO hangs/freezes randomly for ~30 sec

while working on my ubuntu 20.04 desktop, I'll notice a occasional freezes where it "mostly" goes out to lunch for 10's of seconds to ~1 minute. Happens perhaps ~~once an hour. I can still ...
0
votes
1answer
103 views

Prune BTRFS incremental snapshots

I'm pretty new to BTRFS. I managed to do a readonly snapshot of my system and send/receive it to an external drive (snapshotting it again as rw so I can even boot it): so far so good. I know that, in ...
0
votes
0answers
22 views

amount of data written to a btrfs partition

ext4 exposes information via /sys/ about how much data has been written to a partition since creation. How can I get that information for a btrfs partition? Bonus points for information how to split ...
1
vote
1answer
357 views

Create BTRFS snapshots of /home when its not set up as a subvolume

I've set up a backup-server that creates daily BTRFS-snapshots of / in /backup/. btrfs subvolume snapshot -r / /backup/$(date +%s) # simplified example I found this to be problematic because the ...
0
votes
0answers
75 views

Upgrade to Ubuntu 20.10 without btrfs snapshot

Currently on Ubuntu 20.04. I want to upgrade to Ubuntu 20.10 without Ubuntu making a btrfs snapshot as part of the process. How can I do this?
0
votes
1answer
414 views

20.10 cryptsetup suddenly fails to open luks: Cannot use twofish-ecb cipher for keyslot encryption

Since the recent update from 20.04 to 20.10 cryptsetup fails to open luks container. Message is: > Cannot use twofish-ecb cipher for keyslot encryption. Keyslot open > failed. No usable keyslot ...
2
votes
2answers
128 views

How to mount individual user directories (Downloads, Pictures, etc) to different hard drives

I have my system running on a BTRFS partitioned SSD. I understand that some directories within the /home/user/ directory would benefit from being on the SSD, like .local, .config .Applications, etc. ...
1
vote
1answer
147 views

Does Ubuntu installer preserve btrfs @home subvolume while installing / to the @ subvolume on the same parttion?

On my laptop (Dell Lattitude E7470) I have Ubuntu 16.04 installed on a btrfs partition (/dev/sda2) using the standard @ and @home subvolumes for / and /home mountpoints. There is also an EFI system ...
0
votes
0answers
127 views

Change /boot in this BTRFSonLUKS install so passphrase prompt after GRUB instead of before?

I have installed Ubuntu 20.04.1 on my laptop according to Ubuntu 20.04 with btrfs-luks full disk encryption including /boot and auto-apt snapshots with Timeshift using an encrypted swap file twice the ...
1
vote
2answers
2k views

Ubuntu 20.04.01, full disk encryption, btrfs, & hibernation?

I am trying to install *20.04.01 on my desktop with full (or almost full as Tj puts it) disk encryption including encrypted swap partition that allows hibernation, and btrfs. The last few years I am ...
0
votes
2answers
341 views

How to disable btrfs snapshots created by apt?

Is there a way to configure apt to prevent the creation of btrfs snapshots? I know I can delete the snapshots generated by apt install by executing apt-btrfs-snapshot delete-older-than 0d, but what I ...
0
votes
1answer
418 views

Not Enough Disk Space for Boot Repair

I recently upgraded from Ubuntu 18.04 LTS to 20.04.1 LTS and am now having problems booting my computer. It worked for a little bit but soon I was getting error messages that I was running out of ...
0
votes
1answer
451 views

Ubuntu Server 20.04 install custom partitioning

Back when using OpenSUSE for my server, I devised a partitioning scheme that I was very satisfied with - a BTRFS RAID10 on bcache devices. I wanted to recreate this with Ubuntu Server 20.04, but so ...
1
vote
0answers
125 views

How to rollback a btrfs snapshot for root [ / ] after failed system update

I tried updating from 18.04 to 20.04 but something went wrong and the installer told me that my system could have ended up unusable. I think I know the cause (a bunch of third party repos). ...
0
votes
1answer
828 views

Why are Btrfs and others disabled in Custom Format in Disks?

Ubuntu 20.04 LTS. I tried to format a new disk with Btrfs, but it is disabled.
1
vote
1answer
522 views

Mounting btrfs partition with compression enabled

I've got a btrfs partition on a SSD drive. This partition is not mounted by default, it's not root. It's just a plain data partition which is mounted on demand. Nothing fancy. The btrfs partition was ...
0
votes
0answers
81 views

Kernel Panic on the default kernel

I have kernel panic on my default kernel (v.4.15.108) and it boots to initramfs only. If I change to the previous kernel (v.4.15.101), I am able to successfully boot my machine and everything is ...
0
votes
0answers
183 views

Why is my swapfile on btrfs suddenly not active?

I have created a swapfile /swap on / btrfs with: touch /swap chattr +C /swap dd if=/dev/zero of=/swap bs=1M count=2048 mkswap /swap && chmod 600 /swap && swapon /swap It works and ...
0
votes
1answer
270 views

Do parent file system snapshot reference it's children datasets data or only their onw data?

Data is referenced in as many snapshots you take and it will be deleted from disk only if you delete all snapshots that referenced said data as well as the data from the running volume, this holds ...
0
votes
0answers
318 views

Cannot delete LXC container with full volume nor the volume itself

I've been toying around with LXC/LXD lately and ended up with a couple of stopped containers: ❯ lxc list +------------------------------------+---------+------+------+-----------+-----------+ | ...
5
votes
4answers
2k views

How can I automatically create a Btrfs Snapshot before updating my system?

I've installed Ubuntu 20.04 on a Btrfs root-partition for its snapshot functionality. To keep it as simple as possible, I would like to integrate the creation of a Btrfs snapshot into my upgrade-...
1
vote
0answers
93 views

BTRFS install focal next to eoan

I'm currently running Ubuntu 19.10 on btrfs. The following subvolumes are used @ / @home /home @no-snapshots /no-snapshots (VMs) I want to install Ubuntu 20.04 alongside my current install on a new ...
0
votes
1answer
186 views

BTRFS in RAID1 is showing double the disk space

All my GUI programs started showing 16TB total space and 8TB free space available, while it should be 8TB total and 4TB available. Any ideas what went wrong and how to fix it? My btrfs RAID 1 ...
0
votes
1answer
268 views

Btrfs reports “ERROR: minimum size for each btrfs device is 131072000”, but my drives are much larger

I have x2 2TB drives that I want to make a single Raid0 logical drive. The error I'm getting doesn't make any sense. Can someone explain what I'm missing here? I use lsblk -o name,mountpoint,size,...
0
votes
0answers
223 views

RAID 1 - mdadm or btrfs?

I want to create a RAID 1 array of two (inexpensive) HDDs, in order to keep some rarely accessed data. I have thought about two main ways to create it: using mdadm using btrfs I've read about ...
1
vote
1answer
494 views

Problem with update-initramfs and cryptsetup

I am trying to update my initramfs but I get this error: cryptsetup: WARNING: could not determine root device from /etc/fstab I am not really sure why this is happening because this is my fstab: ...
1
vote
0answers
128 views

Is it a BTRFS Bug, a BTRBK bug or is my HDD dying?

I'm using a BTRFS setup in my home server, where I'm having 3 disks in a btrfs-raid and a fourth disk is used to receive daily backup snapshots via BTRBK. Some days ago I noticed, that BTRBK was ...
10
votes
4answers
10k views

Can I have a swapfile on btrfs?

Modern Ubuntu versions are using a swap file instead of a swap partition by default. Before the 5.0 Linux kernel it was not possible to place a swap file on a btrfs partition, btrfs file system could ...
6
votes
2answers
2k views

Where are my BTRFS subvolumes?

I just installed Ubuntu 18.04 server on a VPS using the Ubuntu installer (from a mounted ISO image). I selected BTRFS as my filesystem type during the manual partitioning phase of installation. Now ...
0
votes
0answers
31 views

Does a Kernel Driver compiled for Ubuntu 18.0.4 require any porting issue for running on BTRFS or other modern self-healing file system?

I am trying to estimate the risks for moving to the BTRFS (or any other modern self-healing file system). Does a Kernel Driver compiled for Ubuntu 18.0.4 require any porting issue for running on BTRFS ...
5
votes
1answer
3k views

How do I install and configure Btrfs for desktop use on two mirrored drives?

I would like to use Btrfs on two mirrored drives (RAID 1), used for archive data on a desktop system (media files, etc.), for redundancy/availability and potential self-healing functionality in case ...
1
vote
0answers
548 views

btrfs mount options problem

I have Ubuntu 19.04 with 2 btrfs filesystems on hdd and ssd: /dev/sda3, /dev/nvme0n1p2. I want to disable COW (option "nodatacow") on the subvolumes "vm" and "downloads" of sda3, and contrary enable ...
1
vote
1answer
84 views

Btrfs Quotas for Hierarchy in Filesystem

I want to implement a hierarchy of quotas in my filesystem. I will show you an example: Folder A has Folder A1 and A2. A / \ A1 A2 A should have a quota(limit) 10GB A1 should have a quota(...
2
votes
1answer
976 views

How to create a RAID1 btrfs with two disks and a mirror attached to each?

I want to convert my ZFS pool to a btrfs filesystem because the ZFS performance is very poor. I had the following setup which was very easy to create using zpool add and zpool attach: NAME ...
0
votes
1answer
124 views

Shrink encrypted home partition

My current partition setup looks like this $ sudo df -h Filesystem Size Used Avail Use% Mounted on udev 7.7G 0 7.7G 0% /dev tmpfs ...

1
2 3 4 5
7