Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
Usually the WM or DE itself will prevent from unmounting, since they have configuration files, caches and other functionality, like virtual filesystems in the users directory. So if you want to unmount /home you have to logout or better switch to runlevel 1 (or the single target if your distro uses systemd).
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.
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.
It is possible if I change my home directory from /home/ravbholua to say "/". I haven't tried this but simply saying a way to achieve that. But yes it w'd possible if system allows me as well as root to have the same home directory.
I only told a way but what I told may not be at all possible. I w'd try later.
Yes jefro, this was possible to log in as root when earlier I was working on old distro Fedora 9.
But is it possible in Ubuntu13.04?
Ubuntu by default does not support logging in as root. You can circumvent that by rebooting the machine and booting into recovery mode, you will be automatically logged in as root and the machine will be in runlevel 1 for maintenance work.
It may be that I misunderstood the above.
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?
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.
Usually the WM or DE itself will prevent from unmounting, since they have configuration files, caches and other functionality, like virtual filesystems in the users directory. So if you want to unmount /home you have to logout or better switch to runlevel 1 (or the single target if your distro uses systemd).
This works SOMETIMES. If you are using a system with a .gvfs mount though, it won't because the filesystem will always be busy as long as gnome is active. It is also possible that EVEN THEN it won't dismount - because some GUI application has a file open (sometimes just for logging errors) and THAT will prevent you from dismounting.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.