How Do I Unmount Root Partition in Linux?

How Do I Unmount Root Partition in Linux?
Contents

How do you unmount a root?

The only way to unmount root is to shutdown the system. Do what jilliagre says. You do not have to reboot. Run “swap -d /dev/dsk/c0t0d0s1” (or whatever the appropriate device is) ASAP, though, to remove that swap device.

How do I reduce root partition in Linux?

Reduce the size of root filesystem

  1. First, boot the system into rescue mode.
  2. Activate the logical volume to be reduced. …
  3. Reduce the size of the file system and logical volume on /dev/VolGroup00/LogVol00. …
  4. Finally reduce the size of the logical volume containing the root file system:
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.