Results 1 to 4 of 4

Thread: Snapper: How to remove a snapshot that is not being listed by 'snapper list'?

  1. #1
    Join Date
    Dec 2018
    Location
    Europe, Germany
    Posts
    37

    Default Snapper: How to remove a snapshot that is not being listed by 'snapper list'?

    Hi all,

    my /.snapshots directory has one pretty old snapshot that I would like to remove but which does not appear in the list provided by 'snapper list' and is therefore not accessible via 'snapper delete':

    Code:
    xxx@xxx:~> sudo ls -l /.snapshots
    [sudo] Passwort für root: 
    drwxr-xr-x 1 root root   66  1. Aug 18:54 2062
    drwxr-xr-x 1 root root   66  1. Dez 19:38 2530
    drwxr-xr-x 1 root root   66  3. Dez 08:19 2535
    drwxr-xr-x 1 root root   66 10. Dez 08:34 2623
    drwxr-xr-x 1 root root   66 17. Dez 11:31 2650
    drwxr-xr-x 1 root root   66 18. Dez 20:21 2710
    drwxr-xr-x 1 root root  100 19. Dez 14:53 2711
    drwxr-xr-x 1 root root   66 21. Dez 21:00 2760
    drwxr-xr-x 1 root root   32 21. Dez 21:00 2761
    drwxr-xr-x 1 root root   16 21. Dez 21:53 2768
    drwxr-xr-x 1 root root   66 22. Dez 09:46 2770
    drwxr-xr-x 1 root root   66 22. Dez 11:34 2778
    drwxr-xr-x 1 root root  100 22. Dez 11:44 2779
    drwxr-xr-x 1 root root   66 22. Dez 12:00 2780
    drwxr-xr-x 1 root root   66 22. Dez 12:11 2781
    drwxr-xr-x 1 root root   66 22. Dez 12:11 958          <=== This one (#958) does not appear in the below snapper listing
    -rw-r----- 1 root root 1778 22. Dez 12:11 grub-snapshot.cfg
    
    xxx@xxx:~> sudo snapper list
    Typ    | #    | Vorher # | Datum                       | Benutzer | Bereinigen | Beschreibung                     | Benutzerdaten
    -------+------+----------+-----------------------------+----------+------------+----------------------------------+--------------
    single | 0    |          |                             | root     |            | current                          |              
    single | 2530 |          | Sa 01 Dez 2018 19:38:44 CET | root     | timeline   | Bootup Snapshot 2018-12-01T19:38 |                                                                             
    single | 2535 |          | Mo 03 Dez 2018 08:19:06 CET | root     | timeline   | Bootup Snapshot 2018-12-03T08:19 |                                                                             
    single | 2623 |          | Mo 10 Dez 2018 08:34:01 CET | root     | timeline   | Bootup Snapshot 2018-12-10T08:33 |                                                                             
    single | 2650 |          | Mo 17 Dez 2018 11:30:56 CET | root     | timeline   | Bootup Snapshot 2018-12-17T11:30 |                                                                             
    pre    | 2710 |          | Di 18 Dez 2018 20:14:01 CET | root     | number     | zypp(packagekitd)                | important=yes                                                               
    post   | 2711 | 2710     | Di 18 Dez 2018 20:21:52 CET | root     | number     |                                  | important=yes                                                               
    single | 2760 |          | Fr 21 Dez 2018 21:00:42 CET | root     | number     | rollback backup of #2708         | important=yes                                                               
    single | 2761 |          | Fr 21 Dez 2018 21:00:43 CET | root     |            |                                  |                                                                             
    single | 2770 |          | Sa 22 Dez 2018 09:46:38 CET | root     | timeline   | Bootup Snapshot 2018-12-22T09:46 |                                                                             
    pre    | 2778 |          | Sa 22 Dez 2018 11:34:05 CET | root     | number     | yast sw_single                   |                                                                             
    post   | 2779 | 2778     | Sa 22 Dez 2018 11:43:01 CET | root     | number     |                                  |                                                                             
    single | 2780 |          | Sa 22 Dez 2018 12:00:02 CET | root     | timeline   | Bootup Snapshot 2018-12-22T11:59 |                                                                             
    single | 2781 |          | Sa 22 Dez 2018 12:11:09 CET | root     | timeline   | Bootup Snapshot 2018-12-22T12:11 |
    I corresponding directory (/.snapshots/958) did not contain an info.xml file, so I created one manually but that did not help getting it into the snapper list (even after a reboot).

    I then tried to just remove this directory by 'rm -r' but got: The file system is read only.

    So, how do I get rid of this snapshot which is old and thus probably takes quite a bit of extra disk space?

    Thank you very much!
    Kallistos

  2. #2
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    1,906

    Default Re: Snapper: How to remove a snapshot that is not being listed by 'snapper list'?

    You can do this using the command:
    Code:
    btrfs subvolume delete
    Some documentation on this:
    https://btrfs.wiki.kernel.org/index....trfs-subvolume

    Example usage:
    https://askubuntu.com/questions/4413...btrfs-snapshot

    Use with caution though as this might break something on your system.
    Best regards,
    Greg

  3. #3
    Join Date
    Dec 2018
    Location
    Europe, Germany
    Posts
    37

    Default Re: Snapper: How to remove a snapshot that is not being listed by 'snapper list'?

    Quote Originally Posted by glistwan View Post
    You can do this using the command:
    Code:
    btrfs subvolume delete
    Thank you very much, glistwan!

    Any idea why this specific snapshot is not being listed by 'snapper list' or what I could do to get it there?

  4. #4
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    1,906

    Default Re: Snapper: How to remove a snapshot that is not being listed by 'snapper list'?

    You're welcome. Sorry I don't know why this snapshot is not listed by snapper I have never used snapper myself.
    Best regards,
    Greg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •