LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is it possible to unmount /? (https://www.linuxquestions.org/questions/linux-general-1/is-it-possible-to-unmount-4175678969/)

Meow1234 07-18-2020 12:26 PM

Is it possible to unmount /?
 
Is it possible? I’d like to know.

teckk 07-18-2020 01:16 PM

Yes.
Code:

man systemd-shutdown
https://linux.die.net/sag/shutdown.html

Meow1234 07-18-2020 01:23 PM

Quote:

Originally Posted by teckk (Post 6146827)
Yes.
Code:

man systemd-shutdown
https://linux.die.net/sag/shutdown.html

I know that shutting down the system unmounts root, but is there a way without shutting down?

michaelk 07-18-2020 01:31 PM

No, what are you trying to accomplish?

Meow1234 07-18-2020 02:51 PM

Quote:

Originally Posted by michaelk (Post 6146832)
No, what are you trying to accomplish?

I dunno, was just curious if it was possible.

agillator 07-18-2020 03:11 PM

Easy way to find out: try it. The umount command will tell you the directory is busy.

Meow1234 07-18-2020 03:54 PM

Quote:

Originally Posted by agillator (Post 6146846)
The umount command will tell you the directory is busy.

Is there a way to force unmount the drive?

TB0ne 07-18-2020 05:02 PM

Quote:

Originally Posted by Meow1234 (Post 6146854)
Is there a way to force unmount the drive?

Yes; read the man page on the mount command.

Mill J 07-18-2020 05:57 PM

Quote:

Originally Posted by Meow1234 (Post 6146854)
Is there a way to force unmount the drive?

A good way to corrupt your partition and freeze your system. It's very likely you'll need to run fsck the next time you reboot. So please, use a VM install for experimenting with this.

Meow1234 07-18-2020 06:38 PM

Quote:

Originally Posted by Mill J (Post 6146878)
A good way to corrupt your partition and freeze your system. It's very likely you'll need to run fsck the next time you reboot. So please, use a VM install for experimenting with this.

I didn’t plan on using a real computer for this.

rtmistler 07-18-2020 06:57 PM

Of course anything is possible.

There's your answer, and others have already said this.

If you have no use case for it except that you wish to know if it is possible, then that's all we can advise you about.

There's also a concept of rotating it, which is not necessarily unmounting it.

It's not worth discussing because you've been asked your goal a few times and all you've said is that you wish to know if it is possible.

Mill J 07-18-2020 07:41 PM

Quote:

Originally Posted by Meow1234 (Post 6146884)
I didn’t plan on using a real computer for this.

Just a tip. You should have added this to the original question. Most members here aren't willing to help a fellow user destroy their OS. This is of course the reason for the vague answers you received.


All times are GMT -5. The time now is 11:58 PM.