From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Unlock the full course today

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

Resize partitions without losing data

Resize partitions without losing data - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

Resize partitions without losing data

- [Instructor] 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'd recommend writing them down or taking a screenshot. Then, we edit the partition table and delete the partition. Just because we deleted 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 1500. Partition editing software only to use 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, the usable size won't increase. Before we go further, let's mount up slash dev slash SDB one so we can…

Contents