Can you umount the /tmp partition on a live system?

General support questions
Post Reply
User avatar
dwhs
Posts: 40
Joined: 2005/09/25 02:38:07
Location: Web Host Pro
Contact:

Can you umount the /tmp partition on a live system?

Post by dwhs » 2015/04/24 19:28:00

My /tmp partition locked up for file system issues, it's read only now.

When I try to unmount it, Centos says it's busy.

When I try to run FSCK is says to unmount it.

Is there a way to force unmount on it so I can run FSCK, I know the system will not work without a /tmp partition during the process.

Would like to unmount /tmp run fsck -a and then remount it again all on a live system.

Thanks,

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Can you umount the /tmp partition on a live system?

Post by gerald_clark » 2015/04/24 20:32:36

Did you try rebooting?
It should complain about the damaged filesystem and prompt you to run fsck on it.

If not, you can boot the DVD in rescue mode, fsck your filesystems, and reboot.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Can you umount the /tmp partition on a live system?

Post by gerald_clark » 2015/04/24 20:37:31

If this problem is related to
viewtopic.php?f=13&t=52240&view=unread& ... 9b#p221214
please keep your posts to one thread per problem. Not doing so wastes time and resources for those trying to help.

User avatar
dwhs
Posts: 40
Joined: 2005/09/25 02:38:07
Location: Web Host Pro
Contact:

Re: Can you umount the /tmp partition on a live system?

Post by dwhs » 2015/04/25 06:49:57

gerald_clark wrote:If this problem is related to
viewtopic.php?f=13&t=52240&view=unread& ... 9b#p221214
please keep your posts to one thread per problem. Not doing so wastes time and resources for those trying to help.
These are totally different questions that can have a multitude of reasons for either one.

Adding them together in one thread would only cause confusion.

I thought it was obvious that I am trying to not reboot. My bad for not saying that.

giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: UK

Re: Can you umount the /tmp partition on a live system?

Post by giulix63 » 2015/04/28 08:29:46

This is what I'd do: Make a copy of TMP partition A to partition B. Run lsof/fuser on A, kill (stop and temporarily disable, if possible) all processes that are using files on A. Unmount A and mount B in its place, restart processes. Run fsck on A, rinse and repeat inverting A and B.
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.

Post Reply