gparted
at the command line and pressing Enter.
su -
and press Enter. When the system prompts you for the root password, type the password and press Enter.
gedit /boot/grub/grub.conf
and press Enter. This opens the grub.conf
file in the gedit text editor.
grub.conf
file consists of four lines:
grub.conf
grub.conf
, each corresponding to a different version of the Linux kernel. Delete each of the Red Hat Enterprise Linux entries from the file.
Grub.conf
contains a line that specifies the default operating system to boot, in the format default=N
where N
is a number equal to or greater than 0. If N
is set to 0, GRUB will boot the first operating system in the list. If N
is set to 1, it will boot the second operating system, and so forth.
default=
line contains the number one below the number of your chosen default operating system in the list.
grub.conf
file and close gedit
gparted
at the command line and pressing Enter.
/dev/sda3
.
e2fsck partition
at a command line and press Enter, where partition
is the partition that you just resized. For example, if you just resized /dev/sda3
, you would type e2fsck /dev/sda3
.
resize2fs partition
at a command line and press Enter, where partition
is the partition that you just resized. For example, if you just resized /dev/sda3
, you would type resize2fs /dev/sda3
.
gparted
at the command line and pressing Enter.
unallocated
. Right-click on the unallocated space and select New. Accept the defaults and GParted will create a new partition that fills the space available on the drive.
/dev/sda3
on device /dev/sda
.
fdisk device
and press Enter, where device
is the name of the device on which you just created a partition. For example, fdisk /dev/sda
.
Command (m for help):
, press T and Enter to use fdisk to change a partition type.
Partition number (1-4):
, type the number of the partition that you just created. For example, if you just created partition /dev/sda3
, type the number 3
and press Enter. This identifies the partition whose type fdisk will change.
Hex code (type L to list codes):
, type the code 8e
and press Enter. This is the code for a Linux LVM partition.
Command (m for help):
, press W and Enter. Fdisk writes the new type code to the partition and exits.
lvm
and press Enter to start the lvm2 tool.
lvm>
prompt, type pvcreate partition
and press Enter, where partition
is the partition that you recently created. For example, pvcreate /dev/sda3
. This creates /dev/sda3
as a physical volume in LVM.
lvm>
prompt, type vgextend VolumeGroup
partition
and press Enter, where VolumeGroup
is the LVM volume group on which Linux is installed and partition
is the partition that you recently created. For example, if Linux is installed on /dev/VolumeGroup00
, you would type vgextend /dev/VolumeGroup00 /dev/sda3
to extend that volume group to include the physical volume at /dev/sda3
.
lvm>
prompt, type lvextend -l +100%FREE LogVol
and press Enter, where LogVol
is the logical volume that contains your Linux filesystem. For example, to extend LogVol00
to fill the newly-available space in its volume group, VolGroup00
, type lvextend -l +100%FREE /dev/VolGroup00/LogVol00
.
lvm>
prompt, type exit
and press Enter to exit lvm2
e2fsck LogVol
at the command line and press Enter, where LogVol
is the logical volume that you just resized. For example, if you just resized /dev/VolumeGroup00/LogVol00
, you would type e2fsck /dev/VolumeGroup00/LogVol00
.
resize2fs LogVol
at a command line and press Enter, where LogVol
is the partition that you just resized. For example, if you just resized /dev/VolumeGroup00/LogVol00
, you would type resize2fs /dev/VolumeGroup00/LogVol00
.