How does Linux clear the swap interaction area?
-
Last Update: 2020-04-03
-
Source: Internet
-
Author: User
Search more information of high quality chemicals, good prices and reliable suppliers, visit
www.echemi.com
The hard disk cannot be in use (the partition cannot be mounted and the swap space cannot be activated) The easiest way is to start the system in rescue mode Log in as root and execute the following command to make sure that the swap partition is stopped (assuming that the swap partition is / dev / hdb2): swap off / dev / hdb2 deletes the relevant code from the / etc / fstab file Use parted to clear the partition: Note: the change will take effect immediately, so you should enter the correct device number Log in as root, execute the following command to disable the swap file (assume the swap file is / swapfile here): swapoff / swapfile and then delete the relevant code in the / etc / fstab file Clear the actual file: RM / swapfile
This article is an English version of an article which is originally in the Chinese language on echemi.com and is provided for information purposes only.
This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or reliability of
the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed
description of the concern or complaint, to
service@echemi.com. A staff member will contact you within 5 working days. Once verified, infringing content
will be removed immediately.