How to Resize a Live Filesystem on Linux

preview_player
Показать описание
Before anything else, BACKUP your stuff! This method is risky, and only works on ext2/3/4 filesystems
Use fdisk /dev/sda to check current start/end sectors
Use fdisk to delete the partition
Use fdisk to create a new partition with same starting sector, but new end sector.
Verify that your changes are what you want.
Write fdisk changes.
Verify the new partition is the expected size.
Use sudo resize2fs /dev/sda1 to resize the filesystem to utilize all space in the new partition.
Verify the partition is the expected size.
Reboot for safety.
Рекомендации по теме
Комментарии
Автор

Damn, only person after almost 3 hours who finally helped me. Good Job!

shdori
Автор

You seriously don't know the pain I went through in searching for a perfect videos which shows a live partition using a terminal.

You brother made my day. Thanks a lot. Bless you 😇.

TON-vzpe
Автор

This is a really good tutorial. The author is really cautious. Everything works fine for me, thank you.

rohitbuchake
Автор

This really helped me out. Resized vm drive on open media vault. Worked perfectly. Only slight confusing part was partition number. I guess if it is sdb1 its 1 if it is sdb2 its 2... anyway I chose 1 for sdb1 and it worked perfectly. I took a backup before (524g of video). be sure and backup this is risky.

joeprinz
Автор

omg. This men should be awarded a noble prize for Linux File System Partition

Nabilphysics
Автор

Amazing manual! Thx so much! For linux noobs it is just amazing! Lost my time looking for crazy scripts from guru people until found yours!

maxiljin
Автор

A clear and relevant explanation
A very professional guide

yermidavid
Автор

Thank you very much. Stuggled an hour before i got to oyur video. Did it with your video within 5 minutes, skipping your video 👍

Duesi
Автор

This really helped me to solve my resize problem in ubuntu server 18.04 LTS.

RajeshMaharjan
Автор

It is 2am on a random night after a super shitty day and I can't believe resizing my filesystem live would bring back my spark. Thanks man : )

tejasmd
Автор

Thanks a bunch, I ended up doing a clone of an OMV install from a smaller drive to a larger one and even GParted would not let me extend the volume. This, however, worked a treat, keep up the great work and thank you.

M.C.D.Technologies
Автор

A very useful tutorial... that was exactly what I was looking for. .. thank you so much for sharing...

GerardoSangronis
Автор

Thanks a lot for making this tutorial dude.... you are a legend <3

draxler
Автор

You truly are a lifesaver! Thanks a lot for such an informative video!

thefastreviewer
Автор

This helped me out a lot! Very easy to understand.

DanJackielz
Автор

This is very well explained thanks for the video.

prapulkrishna
Автор

can you increase the size of partition sda1 without deleting and creating new partition?

jamesamestosopalin
Автор

This works great but what if the unallocated space and the partition you are trying to resize have partitions in between them? this way you will overwrite the other partitions because you can't make it bigger

benjamindreyer
Автор

Good video but after I modify my volume by adding 35GB, performing the commands as per this video doesn't allow me to extend my logical partition (value out of range)

DonProshetsky
Автор

Reboot causes me to lose my space gained. In df I go from 73G to 88G after running resize2fs /dev/sda2. After reboot it goes back to 73G. Any idea what might be causing that?

johnknj