umount /dev/sda11 umount: /var/run/media/root/suse1-copy: target is busy.

I try to unmount /dev/sda11, cuase I want to label it but I get this

  umount /dev/sda11
umount: /var/run/media/root/suse1-copy: target is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

 

so I try fuser and this is what I get

 fuser -mv /dev/sda11
                     USER        PID ACCESS COMMAND
/dev/sda11:          root     kernel swap  /dev/sda5
                     root     kernel mount /dev
                     (unknown)      1 F.... systemd
                     root        250 F.... systemd-journal
                     root        286 F.... systemd-udevd
                     root        674 f.... dbus-daemon
                     root        677 F.... nscd
                     root        693 F.... ModemManager
                     root        694 f.... wpa_supplicant
                     root        698 F.... systemd-logind
                     root        719 F.... smpppd
                     root        725 F.... rsyslogd
                     root        727 F.... vmware-vmblock-
                     root        759 F.... polkitd
                     root        768 f.... kdm
                     root        783 F...m Xorg
                     root        802 f.... kdm
                     root        833 F.... NetworkManager
                     root        840 f.... cron
                     root        851 F.... agetty
                     root       1056 F.... mysqld_safe
                     root       1059 f.... systemd
                     robert     1270 f.... mysqld
                     root       1271 f.... startkde
                     robert     1272 f.... (sd-pam
                     root       1420 F.... dbus-launch
                     robert     1426 F.... dbus-daemon
                     robert     1427 F.... gpg-agent
                     robert     1573 F.... upowerd
                     root       1609 f.... kwrapper4
                     robert     1646 F.... udisksd
                     root       1742 F...m kwin
                     robert     1763 F.... kuiserver
                     robert     1790 F...m pulseaudio
                     robert     1791 f.... rtkit-daemon
                     root       1801 F.... konsole
                     robert     1804 F.... gvfsd
                     robert     1808 F.... gvfsd-fuse
                     robert     1818 F.... konsole
                     robert     1925 F.... at-spi-bus-laun
                     robert     2050 f.... systemd
                     root       2051 f.... (sd-pam
                     root       4446 F.... dhclient
                     root       4801 f.... firefox
                     robert     4881 F...m plugin-containe
                     robert     5731 F.... lvmetad


 

Sp what processes should I kill, only those marked with m ? e.g : plugin container PID 4481 ??

No, you shouldn’t kill any of those.

Use “fuser /var/run/media/root/suse1-copy” or “lsof /var/run/media/root/suse1-copy” to find out which process is still using it.
You want to unmount the filesystem/mount point (and that is in use), not the device file…

PS: As you apparently monted it with the file manager/desktop environment, why don’t you use that to unmount it?
Or try “udisksctl unmount -b /dev/sda11” (as root obviously, since you also mounted it as root).

no I’ve fstab entry for that so it mounted automatically

OK, /var/run/media confused me, as that is used by udisks2 (and the desktop environments therefore).

Anyway, see my previous reply regarding lsof/fuser.

ok so I unmounted it but when I want to label it this is what I get

 e2label /dev/sda11 suse1-root_copy
e2label: Bad magic number in super-block while trying to open /dev/sda11
Couldn't find valid filesystem superblock.

 

I created this partition as blank an then untar here the backup of my tumbleweed but without the /.snaphots and /sys /proc /dev/pts. and in rescue mode it was running ok (I could’t run it normally cause in grub I recognized it by label and it wasn’t labeled and btrfs only outputing this # fsck -t btrfs /dev/sda11
fsck from util-linux 2.23.2

Well, you CANNOT use e2label for btrfs partitions.
e2label is for ext2 (and 3/4) filesystems, obviously.

Use:

btrfs filesystem label <dev> [newlabel]

Btw, grub doesn’t care whether you mount your filesystem by label or what else in fstab.
And I have no idea how fsck is related here now.