How to resize a root partition to increase disk space

This document (7012096) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Desktop 10

Situation

Disk space is full on the root partition.
Undefined behavior occurs as a result of the root partition being full.
No logical volume manager is in use, such as LVM or EVMS.

How can I increase the disk space on my root partition?

Resolution

Backup Everything!

There are three common ways to increase disk space on the root partition or any partition for that matter.
  1. Delete aging, rotated or unused files.
  2. Increase the size of the root partition and resize its filesystem.
  3. Add disks and subpartition the root filesystem.
Delete aging, rotated or unused files

Refer to TID3005720 - "Find where disk space is being used on Linux from command line"

Increase the size of the root partition and resize its filesystem

The key to this option working is the partition's ending sector number. The next sector following root's ending sector number must be free space to increase the size of the root partition. If it is not free, you have to make it free. Consider two cases, 1) root's next available sector is free and 2) root's next available sector is occupied.

Next Available Sector Free

1. Backup your system
2. Boot into rescue mode
3. Increase the size of your disk with the root partition
4. Increase the root partition size
5. Resize the root partition

Next Availalbe Sector Occupied

1. Backup your system
2. Boot into rescue mode
3. Increase the size of your disk with the root partition
4. Increase the root partition size
5. Recreate the partition after root
6. Restore the partition after root
7. Resize the root partition

Add disks and subpartition the root filesystem

1. Add a new disk to the system
2. Create a partition on the system
3. Format the newly created partition
4. Mount the new partition to a temporary mount point like /mnt
5. Select a subdirectory on a filesytem on which you need more space
6. Move all the files in that subdirectory to your temporary mount point
7. Unmount the temporary mount point
8. Mount the new partition to the subdirectory you just emptied
9. Update the /etc/fstab to with the new parition on the emptied subdirectory

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7012096
  • Creation Date: 08-Apr-2013
  • Modified Date:23-Mar-2021
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center