Chapter 2. Swap Space
4. Remove the partition using
At a shell prompt as root, type the command
•
device name for the hard drive with the swap space to be removed.
At the
•
(parted)
minor number of the swap partition you wish to delete.
At the
•
(parted)
tion you want to remove.
Warning
Changes take effect immediately; you must type the correct minor number.
Type quit to exit
•
To remove a swap file:
1. At a shell prompt as root, execute the following command to disable the swap file (where
is the swap file):
/swapfile
swapoff /swapfile
2. Remove its entry from
3. Remove the actual file:
rm /swapfile
2.4. Moving Swap Space
To move swap space from one location to another, follow the steps for removing swap space, and then
follow the steps for adding swap space.
:
parted
prompt, type print to view the existing partitions and determine the
prompt, type rm MINOR, where MINOR is the minor number of the parti-
.
parted
.
/etc/fstab
, where
parted /dev/hdb
7
is the
/dev/hdb
Need help?
Do you have a question about the ENTERPRISE LINUX 3 and is the answer not in the manual?