Not able to unmount /home in Ubuntu13.04
I don't get why I can't unmount /home from root directory.
I tried via terminal (command line) as well as gparted. It messages "device is busy" I closed all applications. Still can't succeed. Why so? I am using Ubuntu13.04 |
Do you have any user logged in? This will prevent unmounting. To find out what is still using home try it with
Code:
lsof /home |
I get the feeling that you can't usually unmount home unless you log off and log on to root. I could be way wrong on that. Almost any user setting or app might lock it.
|
Quote:
|
One of those questions that I have never had a reason to test.
|
You will find it much easier to do any maintenance requiring an unmounted /home by booting from a LiveCD. As soon as you do a normal user login from a normal boot on a typical system, you are most assuredly using /home yourself. Extricating yourself from using /home will be tricky. You could probably manage it as userid 'root' from runlevel 1 also. Booting from a LiveCD is probably simpler though.
|
Quote:
Thanks, I got the reason why I wasn't able to unmount /home. Quote:
But is it possible in Ubuntu13.04? As such I have got my solution from other posts herin, i.e. via runlevel1 or live CD. |
Quote:
I only told a way but what I told may not be at all possible. I w'd try later. |
Quote:
|
you can set a traditional root account
Code:
sudo -i |
Quote:
I ran the above 2 commands. for passwd, I entered password. I rebooted expecting that in login screen username w'd be there for root using which I w'd enter the system. But no, nothing like this. What I misunderstood? |
root is still hidden from the graphical login
you shouldn't use root for a 'desktop environment' instead. get a console with. ctrl+alt+F1 ( through to F6 ) get back with alt+f7 ( might be 8 or 9 ) ' |
Not sure going to a console from a gui would work. I'd think some part of home might still be locked.
Most distro's are trying to keep common folks safe. They do that by default settings. One has been a hot button topic as to log on to root either by init 3 or gui. Most admins don't think that is a good idea. So, some users do know of ways to enable root again. We have all basically agreed that /home is locked by some means and you have to get around those means. Either live boot, single user, init 3 or such. Normally home is a needed mount point for a common user to log on. |
yeah, but with root can switch runlevel
or just stop the gui login Ubuntu so,, as root Code:
service gdm3 stop |
Quote:
If you want to find out what is preventing it, do a "fuser -mu /home". This will list any processes that have files open on the /home filesystem (and list how it is used - see the fuser manpage for all that) and the user name associated. |
All times are GMT -5. The time now is 07:33 PM. |