26.12.2 Expanding the Root Partition

  1. Download the SLES 12 SP5 ISO from www.suse.com/download/sles and select the SLE-12-SP5-Server-DVD-x86_64-Boothole-Respin-DVD1.iso file.

  2. In VMware, Virtual Machine Settings > Hardware select CD/DVD and Use ISO image file then point to the downloaded ISO.

  3. Restart. Press F2 to specify the BIOS settings.

  4. Select the Boot tab in the PhoenixBIOS setup Utility window.

  5. Select CD-ROM Drive and press the + key to move the CD-ROM Drive to the top.

  6. Select the Exit tab and select Exit Saving Changes.

  7. Select More in the boot menu.

  8. Select Rescue System and select Language.

  9. Log in to Rescue system as the Root user.

  10. To confirm disk information, use the command:

    fdisk -l

  11. To resize and rescue disk, use the command:

    parted

  12. To get device partition information, use the command:

    print.

  13. If you need to resize device other than the one which parted selects, use the command:

    select <device name>

    For Example: select /dev/ sdb

  14. To get disk information, use the command:

    print

  15. To resize the disk space, use the command:

    resize

    And specify the partition number and required space for the selected disk.

  16. To exit, use command:

    quit

  17. Check the partition using the command:

    e2fsck -f <device name>

    For example: e2fsck -f /dev/sbdb

  18. Expand the file system on the new partition using command:

    resize2fs <device name>

    For example: resize2fs /dev/sbdb

  19. Reboot the system using command:

    reboot

  20. After rebooting, check the updated size of disk using command:

    df -h or fdisk -l