We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Can't delete snapshots that left after full recovery, need advice

asked 2014-02-19 20:07:54 +0300

SD_Lucas gravatar image

updated 2014-02-20 08:48:38 +0300

Dear all.

The story is here: http://talk.maemo.org/showthread.php?t=92709 My post is number 8.

Our problem is we can not delete snapshots as it was suggested: https://together.jolla.com/question/14633/bug-factory-reset-no-storage-left/

What we did:

[root@localhost nemo]#
mount -o subvolid=0 /dev/mmcblk0p28 /mnt/

[root@localhost nemo]# ls -la /mnt/
total 4
drwxr-xr-x 1 root root 260 Feb 9 13:40 .
drwxr-xr-x 1 root root 718 Feb 14 11:03 ..
drwxr-xr-x 1 root root 718 Feb 14 11:03 @
drwxr-xr-x 1 root root 768 Feb 8 13:42 @_old
drwxr-xr-x 1 root root 8 Nov 20 04:55 @home
drwxr-xr-x 1 root root 0 Nov 20 04:49 @swap
drwxr-xr-x 1 root root 610 Nov 20 04:55 factory-@
drwxr-xr-x 1 root root 8 Nov 20 04:55 factory-@home
drwxr-xr-x 1 root root 766 Feb 8 21:50 rec-20140209_093232_@
drwxr-xr-x 1 root root 8 Nov 20 04:55 rec-20140209_093232_@home
drwxr-xr-x 1 root root 754 Feb 9 13:36 rec-20140209_094009_@
drwxr-xr-x 1 root root 8 Nov 20 04:55 rec-20140209_094009_@home
[root@localhost nemo]#

[root@localhost nemo]# btrfs subvolume delete /mnt/rec-20140209_093232_@
Delete subvolume '/mnt/rec-20140209_093232_@'
ERROR: cannot delete '/mnt/rec-20140209_093232_@' - Directory not empty
[root@localhost nemo]#

As you can see we tried to delete snapshot but got error. We also found that that inside of the "rec-20140209_093232_@" directory there is another one and it is called "factory-@". That is why "btrfs subvolume delete" refused to delete it and we were also advised do not delete "factory-@".

What should we do? Is "factory-@" inside of the "rec-20140209_093232_@" the same as "drwxr-xr-x 1 root root 610 Nov 20 04:55 factory-@"?

Thanks in advance.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
0

answered 2014-02-20 11:38:21 +0300

jayki gravatar image

updated 2014-02-20 11:42:10 +0300

http://talk.maemo.org/showthread.php?t=92419 Here is an instruction ;) Cd to /mnt and try it without /mnt/ at the last command ;)

edit flag offensive delete publish link more

Comments

Please, read my post until the end. We did it and we got error, because snapshot subvolume has another subvolume insude called "factory-@".

SD_Lucas ( 2014-02-20 12:16:40 +0300 )edit

Yep, show on your post in TMO (try with "btrfs subvolume delete -R")

jayki ( 2014-02-20 12:20:49 +0300 )edit

Good, in TMO also said: ..."Please don't even delete them! Don't Delete @swap factory-@ factory-@home @ and @home"

We have "factory-@" inside.

SD_Lucas ( 2014-02-20 12:24:42 +0300 )edit

For information:

[root@localhost nemo]# btrfs subvolume list /
ID 259 gen 424797 top level 5 path @swap
ID 264 gen 378017 top level 5 path factory-@
ID 265 gen 378014 top level 5 path factory-@home
ID 324 gen 374222 top level 5 path @_old
ID 326 gen 374190 top level 5 path @_old/factory-@
ID 328 gen 374222 top level 5 path @_old/@
ID 330 gen 377958 top level 5 path rec-20140209_093232_@
ID 332 gen 374274 top level 5 path rec-20140209_093232_@/factory-@
ID 660 gen 377957 top level 5 path rec-20140209_093232_@home
ID 661 gen 378008 top level 5 path rec-20140209_094009_@
ID 663 gen 377988 top level 5 path rec-20140209_094009_@/factory-@
ID 667 gen 378007 top level 5 path rec-20140209_094009_@home
ID 668 gen 439042 top level 5 path @
ID 669 gen 438789 top level 5 path @home
[root@localhost nemo]#
SD_Lucas ( 2014-02-20 12:42:42 +0300 )edit

Is it save do delete "factory-@" that locates inside of "rec-20140209_093232_@"?

ID 332 gen 374274 top level 5 path rec-20140209_093232_@/factory-@
SD_Lucas ( 2014-02-20 12:59:05 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-02-19 20:07:54 +0300

Seen: 671 times

Last updated: Feb 20 '14