How can I `umount` home?

asked 2018-05-23 20:21:08 -0500

NotAnAmbiTurner gravatar image

My laptop, which runs Fedora, occasionally completely locks up. The only thing that works is the hardware screen on/off button. I am endeavouring to fix that. Thus far, I have fixed an error in GRUB, and determined the RAM is fine via memcheck86.

My home partition is on an LVM at /dev/mapper/fedora-home.

e2fsck -nf /dev/mapper/fedora-home says that there are errors on my home partition. Unfortunately, I can't e2fsck -p /dev/mapper/fedora-home because the partition won't unmount. When I end it, one of the processes using home causes GNOME to crash and return me to the login screen (the third one when I run fuser -kim /dev/mapper/fedora-home). I have been sure to cd out of home when attempting e2fsck -p.

I could really use some help in analyzing the issue here, please.You can see what I attempted below. For some reason I was in etc, but the result is the same in root. A good start would be knowing what the heck all these processes are that are apparently using home, and more importantly how I can get rid of them.

[USER@localhost etc]$ sudo e2fsck -p /dev/mapper/fedora-home
/dev/mapper/fedora-home is mounted.
e2fsck: Cannot continue, aborting.


[USER@localhost etc]$ sudo umount /dev/mapper/fedora-home
umount: /home: target is busy.
[USER@localhost etc]$ sudo lsof /dev/mapper/fedora-home
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
COMMAND    PID            USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
colord    4009          colord  mem    REG  253,2     1412 1481203 /home/USER/.local/share/icc/edid-11ff17e77b278e1b714b5e165dbf0cb9.icc
colord    4009          colord  mem    REG  253,2     1412 1443086 /home/USER/.local/share/icc/edid-bfbbb2dfda6182762a678e26ebed9ff1.icc
colord    4009          colord  mem    REG  253,2     1492 1442212 /home/USER/.local/share/icc/edid-1b2266850a4f63f0dd1d7ab0369c77d7.icc
colord    4009          colord  mem    REG  253,2     1332 1441876 /home/USER/.local/share/icc/edid-9cd68f8e2f82369cfc76962f157007fa.icc
pulseaudi 4122 USER  mem    REG  253,2    24576 1442505 /home/USER/.config/pulse/f2a6f9bd396a4ed9b1e637ec8c4d5031-card-database.tdb
pulseaudi 4122 USER  mem    REG  253,2    12288 1442138 /home/USER/.config/pulse/f2a6f9bd396a4ed9b1e637ec8c4d5031-stream-volumes.tdb
pulseaudi 4122 USER  mem    REG  253,2     8192 1442088 /home/USER/.config/pulse/f2a6f9bd396a4ed9b1e637ec8c4d5031-device-volumes.tdb
pulseaudi 4122 USER   10u   REG  253,2     8192 1442088 /home/USER/.config/pulse/f2a6f9bd396a4ed9b1e637ec8c4d5031-device-volumes.tdb
pulseaudi 4122 USER   11u   REG  253,2    12288 1442138 /home/USER/.config/pulse/f2a6f9bd396a4ed9b1e637ec8c4d5031-stream-volumes.tdb
pulseaudi 4122 USER   12u   REG  253,2    24576 1442505 /home/USER/.config/pulse/f2a6f9bd396a4ed9b1e637ec8c4d5031-card-database.tdb
dbus-daem 4135 USER  cwd    DIR  253,2     4096 1441793 /home/USER
gdm-wayla 4138 USER  cwd    DIR  253,2     4096 1441793 /home/USER
gnome-ses 4141 USER  cwd    DIR  253,2     4096 1441793 /home/USER
gnome-ses 4141 USER  DEL    REG  253,2          1483316 /home/USER/.config/dconf/user
gnome-she 4572 USER  cwd    DIR  253,2     4096 1441793 /home/USER
gnome-she 4572 USER  mem    REG  253,2    47944 1442573 /home/USER/.cache/fontconfig/3735ab32-806c-43d9-89aa-98af784b5130-le64.cache-7
gnome-she 4572 USER  DEL    REG  253,2          1484206 /home/USER/.local/share/gvfs-metadata/home-598d6317.log
gnome-she ...
(more)
edit retag flag offensive close merge delete

Comments

That long list of files are those in ~ that are in use by your user. You shouldn't try to unmount /home while you are logged in as user that has a profile there. Live CD could be an option (or user root).

florian gravatar imageflorian ( 2018-05-23 22:41:38 -0500 )edit

I'm not sure if this still works, but used to be you could force a FS check on reboot with #touch /forcefsck

Another option would be to use a LiveCD that runs in RAM, and check the file systems on unmounted drives.

felthat gravatar imagefelthat ( 2018-05-23 22:52:11 -0500 )edit

If you run fsck on mounted file system, it is normal it would report errors.

villykruse gravatar imagevillykruse ( 2018-05-24 02:45:23 -0500 )edit