From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Resize partitions without losing data

Resize partitions without losing data

From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Start my 1-month free trial

Resize partitions without losing data

- [Narrator] Resizing partitions can be daunting, but it's really not that hard, and as long as you take good notes, not that risky. As long as we're resizing our partitions larger, we can even do this with a drive mounted for most file systems. Although it is still safer to unmount them first. The process starts by taking note of the old partition boundaries. I recommend writing them down or taking a screenshot. Then we edit the partition table and delete the partition. Just because we delete the partition does not mean we've deleted the data. Remember that the master boot record is only 512 bytes, and the GPT partition table is about 1,500. Partition editing software on which you use only a very small portion of the disk. Then we create a new, larger partition and resize the file system. If you miss any of these steps, usable size won't increase. Before we go further, let's mount up "/dab/sdb1" so it can demonstrate resizing a live volume. First, make a temporary mount point. Type…

Contents