Removing A Partition - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

e2label /dev/sda6 /work
By default, the installation program uses the mount point of the partition as the label to make sure the
label is unique. You can use any label you want.
6.1.2.4. Creating the Mount Point
As root, create the mount point:
mkdir /work
6.1.2.5. Add to /etc/fstab
As root, edit the /etc/fstab file to include the new partition. The new line should look similar to the
following:
LABEL=/work
The first column should contain LABEL= followed by the label you gave the partition. The second
column should contain the mount point for the new partition, and the next column should be the file
system type (for example, ext3 or swap). If you need more information about the format, read the man
page with the command man fstab.
If the fourth column is the word defaults, the partition is mounted at boot time. To mount the
partition without rebooting, as root, type the command:
mount /work

6.1.3. Removing a Partition

Warning
Do not attempt to remove a partition on a device that is in use.
Before removing a partition, boot into rescue mode (or unmount any partitions on the device and turn
off any swap space on the device).
Start parted, where /dev/sda is the device on which to remove the partition:
parted /dev/sda
View the current partition table to determine the minor number of the partition to remove:
print
/work
ext3
defaults
Removing a Partition
1 2
75

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 5 - DEPLOYMENT and is the answer not in the manual?

Questions and answers

Table of Contents