I am using Kubuntu 20.04 with BTRFS. I had to do a rollback yesterday, and it went fine except for one little detail. I changed the old @ subvolume to @old, and rolled back to a snapshot of @ taken two days previous. But when I try to delete @old, I get this error message: Could not destroy subvolume/snapshot: directory not empty. Any idea on what might have gone wrong? Everything seems to work as it should.
Announcement
Collapse
No announcement yet.
subvolume won't delete
Collapse
This topic is closed.
X
X
-
What does sudo btrfs su li / say? I'd be looking for another subvolume under @old. F.ex. I have
Code:ID 257 gen 177547 top level 5 path @_eoan_u ID 286 gen 177535 top level 257 path @_eoan_u/.snapshots
Regards, John Little
- Top
- Bottom
-
It looks like this:
ID 256 gen 80748 top level 5 path @old2
ID 441 gen 1739 top level 256 path @old2/var/lib/portables
ID 442 gen 1740 top level 256 path @old2/var/lib/machines
ID 542 gen 82214 top level 5 path snapshots/@_200429-180302_ro
ID 543 gen 82214 top level 5 path snapshots/@home_200429-180356_ro
ID 573 gen 83524 top level 5 path @
ID 574 gen 83523 top level 5 path @home
ID 596 gen 82214 top level 5 path snapshots/@home_200501-212754
ID 597 gen 82214 top level 5 path snapshots/@_200501-212935
- Top
- Bottom
Comment
-
Originally posted by oldgeek View PostID 256 gen 80748 top level 5 path @old2
ID 441 gen 1739 top level 256 path @old2/var/lib/portables
ID 442 gen 1740 top level 256 path @old2/var/lib/machines
- Top
- Bottom
Comment
-
Originally posted by GreyGeek View Postbtrfs su delete -C /mnt/snapshots/@old2
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Originally posted by oldgeek View PostBut how did those nested subvolumes get there?
Originally posted by portablectl man pagePortable service images contain an OS file system tree along with systemd(1) unit file information. A service image may be "attached" to the local system. If attached, a set of unit files are copied from the image to the host, and extended with RootDirectory= or RootImage= assignments (in case of service units) pointing to the image file or directory, ensuring the services will run within the file system context of the image.
Yet another approach to containers on Linux. I suspect you installed this package, or one like it, or one that depends on it or something like it. Speculating, it would make sense that if a container has copies of parts of the OS, to "contain" changes to them, if on a btrfs to use btrfs COW features and have a subvolume for the container or containers.Regards, John Little
- Top
- Bottom
Comment
-
Originally posted by Snowhog View PostNot using BTRFS, but does it have a recursive option?
- Top
- Bottom
Comment
-
I believe those particular subvolumes are created by the systemd machine manager. You must have been doing some virtual machine or container stuff like Docker or
- Top
- Bottom
Comment
Comment