Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Re-mounting linux filesystems on the fly.

You can remount a linux system on the fly like this:- umount tmpfs

You can remount a linux system on the fly like this:-

umount tmpfs

The above command will ask the OS to unmount the filesystem identified by tmpfs in the fstab file.

This may return an error if you are actively using it – i.e. you have an ssh session open and are in the filesystem or open files exist. – Exit any of these and try again ­čÖé

mount tmpfs

The above command will attempt to re-mount the drive.

When would you use this? ┬áNormally if you have done some dynamic re-sizing of a partition ┬á– for example the tmpfs partition – see post:

http://www.ihelm.org.uk/2010/04/resizing-ram-disk-in-linux-devshm/

for more info on how to do that.

%d bloggers like this: