Resize or Extend a Linux Partition/Volume/Disk (Swap - Ubuntu - Gparted)

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 230

  • @sharonlima8913
    @sharonlima8913 Год назад +22

    In this tutorial, the author explains how to resize a Linux partition using GParted when you have unallocated space on your hard drive. They demonstrate the process using an Ubuntu system, covering steps from creating a bootable live image to resizing the root file partition and managing swap.
    Highlights
    📟 To resize Linux partitions, create a bootable live image using tools like Balena Etcher.
    🖥 Boot into the live environment and use GParted, a disk management tool, to make the changes.
    💾 Carefully select the correct disk to avoid making changes to the wrong one.
    🔄 If you have a swap partition, turn off swap, resize or move it, and turn it back on.
    📊 Extend the root file partition to utilize unallocated space.
    🔒 Always back up your data before making changes to your disks.
    🚀 After completing the process, restart your system and ensure the changes took effect.

    • @SavvyNik
      @SavvyNik  Год назад

      Thanks for sharing the useful details!

    • @SavvyNik
      @SavvyNik  Год назад

      pinned

    • @DamianAI9
      @DamianAI9 7 месяцев назад +10

      💀a.i.

  • @CasJarAI
    @CasJarAI 2 года назад +30

    Man!!! I wasted my day looking for how to do that, and you solve so easy!!! Thanks for sharing. The best video!

    • @SavvyNik
      @SavvyNik  2 года назад +1

      No problem glad you found it

  • @smooll_d
    @smooll_d 5 месяцев назад +8

    Didn't know it was that easy but also hard at the same time 😅
    Worked in the end. Thank you!

  •  Год назад +10

    Thank you! I've looked at many videos on this topic and you just nailed it with the safest and easiest way to achieve this. I really appreciate it!

    • @SavvyNik
      @SavvyNik  Год назад +2

      Glad to hear it. No problem

  • @Phoenix-jf2rx
    @Phoenix-jf2rx Год назад +7

    Yeah. Finally I did it. I was reading articles about it, but really didn't want to do it through the terminal. They said Gparted only will work if free partition is on the right, but it did work for me. Thank you!

    • @SavvyNik
      @SavvyNik  Год назад

      No problem glad you were able to get it done

  • @xGasPer
    @xGasPer Год назад +4

    You saved me from having to format my work laptop, you're a legend!

  • @programmer6548
    @programmer6548 2 года назад +8

    Thank you! I was searching for hours to know how to do this

    • @SavvyNik
      @SavvyNik  2 года назад +1

      You're welcome

  • @ryanbezuhly1337
    @ryanbezuhly1337 Год назад +3

    Thank you very much! I’ve resized partitions many times in the past, I had the issue where I shrunk one partition to add onto another, and my unused space wound up on /dev/sda9, but I couldn’t figure out how to move it over, you covered this topic very well, unlike everyone else!

  • @atMagnusKnight
    @atMagnusKnight Год назад +2

    Thank you for this! I couldn't figure out why I couldn't resize my partition, and it was because other partitions were in the way. I moved those one by one and then I could resize the one I wanted.

  • @swellequation2861
    @swellequation2861 2 года назад +7

    Thanks for the clear and easy to follow tutorial! Helped me a lot

    • @SavvyNik
      @SavvyNik  2 года назад

      You're welcome! Glad you liked it.

  • @nikolairose2739
    @nikolairose2739 2 года назад +13

    For any one dual booting. When Linux is to the right of the free space. You can move it all the way to the left. Then simply move it all the way to the right while in your fake Linux(I used the USB) and call it a day.

  • @PlanetEarthTeam
    @PlanetEarthTeam 4 месяца назад +2

    Excellent job; clear & concise!
    Thank you! ♥️🙏🏼

  • @efosabeloved2918
    @efosabeloved2918 2 года назад +4

    Easy and straight to the point. Nice video

  • @chibuikeoffu
    @chibuikeoffu 2 года назад +1

    I suffered all round the internet till I met this. Freaking legend

    • @SavvyNik
      @SavvyNik  2 года назад

      Haha well thanks :)

  • @морс-ф3д
    @морс-ф3д Год назад +1

    Thank you! It worked out for me! you r the only one who showed this trick!!!!!))

  • @mchi2214
    @mchi2214 Год назад +1

    Thank you again Nik! My disk looks great and uncluttered.

  • @jaimee8054
    @jaimee8054 Год назад +1

    Incredibly useful and clear! Great video!

  • @sirflappington2484
    @sirflappington2484 Год назад +1

    This really helped me. I need to move ubuntu server from a 2tb hdd to a 1tb ssd and i needed to downsize the partition in order to do that.

  • @Limyang11
    @Limyang11 2 года назад +2

    This work for me
    And without any those ads third party tool
    Thanks

    • @SavvyNik
      @SavvyNik  2 года назад

      Glad to hear that, you're welcome!

  • @baba_tj6352
    @baba_tj6352 8 месяцев назад

    Thanks a lot brother, I have been wondering so long for this solution but nowhere found this great solution

  • @NeilCorke
    @NeilCorke 2 года назад +1

    Thanks for posting this - did exactly what I needed!

  • @jayzah
    @jayzah 2 месяца назад

    Super easy! Cheers man, had to increase the size within ubuntu after increasing size of its virtual disk

  • @bouabahmed3525
    @bouabahmed3525 2 года назад +3

    Perfect !!! Just what i was looking for

  • @anitamurmu7376
    @anitamurmu7376 18 дней назад

    Fabulous tut!! 🙌✨

  • @BlindManBert
    @BlindManBert 2 года назад +4

    Great video… saved me a bunch of time in transferring three Linux systems to larger 1TB drives. I’ve been using gparted for years, but in such specific ways that I didn’t realize the move/resize function existed, much less would be so easy to use.
    Truly the Swiss Army knife of Linux partitioning utilities, and together with Balena Etcher or other ‘dd’-based to clone partitions you really can do what you want without too much hassle (not counting the time required to move very large partitions). I use a custom script to do the dd work, but only because Balena Etcher is hardwired to run only a single verification pass. For older drives, and especially older SSD drives, I prefer four to six verification passes just to be on the safe side, but that’s just me. It’s not so important if you’re Etching a temporary boot drive, as in this video, but it might make a difference if you’re cloning truly vital data that you want to assure isn’t corrupted.
    Thanks for posting this video!!

    • @BlindManBert
      @BlindManBert 2 года назад

      My one criticism of the video is that it dives into the weeds quickly, showing how you can’t move/resize a mounted partition, and then showing the steps to create a temporary bootable system so you can work in gparted with the target partitions unmounted. That’s a bit like burying the lead story, how gparted will be used in the end.
      It might have been helpful to describe the overall steps broadly before diving into the weeds right off. But that’s just me… I like to understand the overall path before thinking about individual steps.
      And really that’s just my one and only criticism. Very helpful!!

  • @parikshitsinghrathore9167
    @parikshitsinghrathore9167 Год назад +1

    It took hardly 10 min to understand. Thank you so much!!!

    • @SavvyNik
      @SavvyNik  Год назад

      np, glad you liked it

  • @Clanps
    @Clanps 2 года назад

    Used the gparted live usb with a desktop so I could quickly expand my arch installation. Thank you for showing me the sliding, that's where I got stuck.

  • @QuackerJack09
    @QuackerJack09 2 года назад +2

    God dammit, watched so many tuts and every time the same nonsense and no solution. And finally... i found yours. Thanks man! Helped me out - pretty easy to solve if you know what do to :D. Moving swap fixed it. Couldnt expand main drive.

    • @SavvyNik
      @SavvyNik  2 года назад +1

      Awesome to hear! Glad you liked it.

  • @lionelguaregua820
    @lionelguaregua820 2 года назад +1

    Excellent video, I had days looking for a solution, ty

  • @kloboucek
    @kloboucek 2 года назад +1

    Great tutorial, thanks Nik!!

    • @SavvyNik
      @SavvyNik  2 года назад

      Glad you liked it!

  • @sach2274
    @sach2274 Год назад +1

    Works like a charm!
    Thank you brother! You saved my day!

  • @abaneyone
    @abaneyone Год назад +1

    Thank you for this excellent tutorial, helped me tremendously!

  • @mikeyfoofoo
    @mikeyfoofoo 2 года назад

    So much easier to boot to the live desktop disk and resize than the command line. I've done both for ubuntu server. It's a time saver.

  • @BrendanClements
    @BrendanClements Год назад +1

    Thank you. I tried watching a few videos before that just dragged on very slowly without saying anything and at the end my question wasn't even answered. Thank you!!!

  • @clandestineespionage5731
    @clandestineespionage5731 22 дня назад +2

    Thanks for your efforts

  • @Unknown88851
    @Unknown88851 7 месяцев назад +2

    I LOVE YOU THANK YOU FINALLY SOEMTHING THAT WORKED

  • @Shikayou-iv8os
    @Shikayou-iv8os Год назад +1

    You are awesome my man!

  • @Rigual
    @Rigual 2 года назад

    thank you! had to look for this video since I'm no longer dual booting my steamdeck and wanted the space back for steamos, than you again :)

  • @waltermitty4132
    @waltermitty4132 3 года назад +7

    Superb video, as usual. One question: In a dual-boot situation, if Windows is at /sda2, can I use your method to shrink Windows, then extend Linux to the left instead of the right? I need to increase the space for Linux, but my unused space is at to the left of the Linux partition, not the right.

    • @SavvyNik
      @SavvyNik  3 года назад

      Not as easy to do, you maybe able to move the partition up into the unallocated space but I haven't had much luck with this in the past.. what I normally have to do is clone the partition up to the new space which is tricky as well. They didn't make that scenario easy. LVM's however make this process much easier.

    • @waltermitty4132
      @waltermitty4132 3 года назад +2

      @@SavvyNik Thanks, Nik. I was concerned that GRUB would not be able to find the new starting location for the Linux partition. Apparently it is even more complicated than what I had considered. Appreciate the prompt reply you rendered.'

    • @justsomerandompersononthei2595
      @justsomerandompersononthei2595 3 года назад +3

      It is possible as long as you use gparted, but you have to boot into a live USB. Otherwise, it will not let you extend the linux partition as it is mounted.

    • @hector-m-carrillo
      @hector-m-carrillo 2 года назад +4

      For any people from the future, in the words of Tom Howard, "It just works"
      In gparted, you can move Linux to the left and then extend it right.
      Nothing more to it

    • @waltermitty4132
      @waltermitty4132 2 года назад +1

      @@hector-m-carrillo Did it, and it worked! Thanks to all who replied.

  • @abderrahmanesebaa7638
    @abderrahmanesebaa7638 2 года назад +1

    Thank you, your video was very helpful for me. Keep up the good work.

    • @SavvyNik
      @SavvyNik  2 года назад +1

      No problem, thanks for the support

  • @astroflexx82
    @astroflexx82 Год назад +1

    Thanks a lot ❤ Very nice and easy to follow tutorial. Worked well for me 😊

  • @Kartik_9512
    @Kartik_9512 Год назад +1

    Thanks mate, I learnt something amazing today.

  • @mohsenazimi8692
    @mohsenazimi8692 2 года назад +1

    The training was complete and practical, thank you 🙏

    • @SavvyNik
      @SavvyNik  2 года назад

      Glad you liked it!

  • @tutti9745
    @tutti9745 Год назад +1

    Very helpfull indeed! Keep up the great work

  • @americandad_8881
    @americandad_8881 2 года назад +1

    Working flawlessly! Thank you.

    • @SavvyNik
      @SavvyNik  2 года назад

      No problem, glad things worked out

  • @michealowen8144
    @michealowen8144 2 года назад +1

    Thanks for the tutorial, it works really well!!!

    • @SavvyNik
      @SavvyNik  2 года назад

      You're welcome! Glad you liked it.

  • @boulerice-archives
    @boulerice-archives 2 года назад +2

    Thank you! This was clear and helpful

    • @SavvyNik
      @SavvyNik  2 года назад

      You’re welcome!

  • @MOHAMMADNOORI-wx6lq
    @MOHAMMADNOORI-wx6lq Год назад +1

    Thanks a lot. It works successfully for me!

  • @hislacavalcante1285
    @hislacavalcante1285 Месяц назад +1

    You're a lifesaver ❤

  • @vadimsarthannel4565
    @vadimsarthannel4565 2 года назад +2

    Helped a lot! October 2022 ubuntu 20.0

  • @prodigyfreeman3935
    @prodigyfreeman3935 2 года назад +1

    Dual boot process works. U should most certainly be able to do it even if the unallocated space is in front of the partition.

    • @mohamedamrali1993
      @mohamedamrali1993 2 года назад

      How did you manage that? Can you clarify? I have 1) windows, 2) ubuntu. I shrink the windows by 20 Gb, and I end up with the unallocated space right in the middle. How do I expand the Ubuntu partition to the left? Thanks!!

    • @Visionist
      @Visionist 2 года назад

      Worked fine for me.

  • @iceberg789
    @iceberg789 3 месяца назад

    i just went to Disk utility and increased the size of the root partition from the os itself. it accepted, and at the blink of an eye, it was done.

  • @miguelpereira9095
    @miguelpereira9095 9 месяцев назад

    Great video, but how is the preocess if the unallocated space is before the ubuntu partition? how to use that space and merge it with linux partition?

  • @Shredddddy
    @Shredddddy 15 дней назад

    Should i boot into windows to create the unallowcated space before loading into the live usb in order to use Gparted? I'm dual booting with windows being my primary os

  • @heshamhassan2907
    @heshamhassan2907 2 года назад +1

    It felt like you're awesome!

  • @romanbykov5922
    @romanbykov5922 2 года назад +1

    Thanks. The big 100-dollar question is what can you do if the EFI partition is in between two partitions and you want to resize one of them and move the EFI partition elsewhere.

    • @SavvyNik
      @SavvyNik  2 года назад

      Good luck, that involves cloning between partitions. Typically there's not enough space for that so it has to be cloned between disks.

  • @formynews
    @formynews Год назад +1

    Exactly what I need!

  • @bojackhorsingaround
    @bojackhorsingaround 9 месяцев назад +1

    BTW a very handy video.. thank you!
    Amazing channel.. so many utility uploads. Subscribed!

  • @Cart1416
    @Cart1416 Год назад +2

    I have the efi in the way so how do I fix that?

  • @hrudaynandantudu3233
    @hrudaynandantudu3233 Год назад +1

    Thanks bro. You saved me☺

  • @AHMEDADEL-qx2ip
    @AHMEDADEL-qx2ip 2 года назад +2

    You're the best man!

  • @ivansavchenco5636
    @ivansavchenco5636 Год назад +1

    OMG you bios is like a windows)))) I am using Ubuntu just in case)

  • @Ballissle
    @Ballissle 6 месяцев назад +1

    So my problem is the efi partition is right in the middle of my unallocated space and ext4 system files partition....
    So my only option is to move the efi partition to the left of it all and then grow the filesystem into the unallocated space.
    If I have to reinstall or repair ah well. Better than having hardly any space.

    • @direwolfesp6366
      @direwolfesp6366 6 месяцев назад

      I have the same problem rn, how did it go for you?

    • @Ballissle
      @Ballissle 6 месяцев назад +1

      It actually went totally fine. I moved the efi partition to the far left and then extended the main space into the unallocated. No issues.

    • @direwolfesp6366
      @direwolfesp6366 6 месяцев назад

      @@Ballissle Thanks for answering so fast man, good to hear that everything went ok i might try to do the same
      🙏

  • @themikecaselles
    @themikecaselles 10 месяцев назад

    My filesystem still shows the same size. What do I do to extend the file system to use the fully allocated space?

  • @SavvyNik
    @SavvyNik  3 года назад +6

    Need a Linux Checklist & Mind map? - learn.savvynik.com

  • @absalonvealquez2615
    @absalonvealquez2615 2 дня назад

    the lord, the entity. thanks god i find you

  • @coria6231
    @coria6231 Год назад

    Question, if I already have the bootable disk with my linux distro on, can I just skip the 3 steps and just go to gparted step or still have to do all the 4 steps?

  • @TheAloyz
    @TheAloyz 8 месяцев назад

    Hello, thank you for this guide, he helped me a lot. However, I have a problem, because after enlarging of the partition , the system (Openmediavault) boots noticeably longer. What could be the reason?

  • @bbnCRLB
    @bbnCRLB 2 года назад

    I have a Home Partition different from root partition. Can I shrink the home and allocated the space to the root partition using this method?

  • @sama7496
    @sama7496 11 месяцев назад

    I am using arch right now and want to extend the size of root partition. Can i do it with ubuntu as you've shown in your video?

  • @manofmartin
    @manofmartin Год назад

    You were useful. Here's a like. Here's a sub.

  • @bishop316
    @bishop316 2 года назад +1

    Hi, i was just wondering if it possible to extend the boot partition? I heard you said not to mess with that partition, but is it ok to only extend it? Thanks

    • @SavvyNik
      @SavvyNik  2 года назад

      Typically no, especially when it's the first partition because that would require moving the root partition which is a mess.

  • @fpdomain
    @fpdomain Год назад

    still have one unallocated space that I cannot attribute to the linux partition

  • @akhmadali5064
    @akhmadali5064 Год назад

    I accidentally create swap partition way higher than i need when installing linux, and i would like decrease the swap partition and make home partition the rest of it. is there any way to create home partition in gparted?

  • @vapa7065
    @vapa7065 2 года назад +1

    You are a star. Thank you

  • @geraldandres2224
    @geraldandres2224 Год назад

    I had a dual boot with Linuxmint 20.3 and Win 7. The Win 7 has died, how can I reclaim the partition to add back to Linuxmint?

  • @panosevangeliou9682
    @panosevangeliou9682 Год назад +1

    Great video. Everything worked! Thanks!

  • @DevilRises-c7p
    @DevilRises-c7p Год назад

    Can i do the same steps for Kaali Linux..?

  • @אלוןיוסףסויסה
    @אלוןיוסףסויסה 2 года назад

    i extracted the ubuntu file and some "discks" showed up. i can i delete them??
    also a lot of file showed up. i cant delete them either!

  • @LuzKramer
    @LuzKramer Год назад

    After i did this i can't select where download files from my browsers and i can't select where is the default download location. I tried in brave,opera and firefox.

  • @alisjs4584
    @alisjs4584 2 года назад +1

    Thanks, helped a lot

    • @SavvyNik
      @SavvyNik  2 года назад

      You're welcome! Think about subscribing for more :)

  • @viddeshk8020
    @viddeshk8020 11 месяцев назад

    I have a question 🤔
    Does EFI System partition has to be in /dev/sda1 only? I have mine in /dev/sda2.
    I now have /dev/sda1 unallocated. /dev/sda2 by EFI file system partition. /dev/sda3 Linux distribution.
    How can I add that first partition to my 3 partition?

    • @viddeshk8020
      @viddeshk8020 11 месяцев назад

      Nevermind 😊 it worked 🎉❤

  • @noobdotx
    @noobdotx Год назад

    Hey Everything is working fine now ! BUT my booting had become slow, what to do?

  • @somnathdas8922
    @somnathdas8922 9 месяцев назад

    Hey, you don't know Ubuntu disks? Maybe it's available in the newer version.

  • @Pranav69420
    @Pranav69420 Год назад

    I have zorin os and the storage is shown as 16gib, but the disk i put is 240 gib.

  • @y8tireu
    @y8tireu Месяц назад

    I accidentally lowered my storage how do i fix this problem i need my pc it has very important data please help

  • @olgermannik1830
    @olgermannik1830 2 года назад +3

    It worked for me.

  • @AlinaKlein953
    @AlinaKlein953 2 года назад

    please help!!! My flash drive accidentally got removed when i was gparting what should i do

  • @pcglorious3183
    @pcglorious3183 Год назад

    how i can make a raid partion mirror or strip and cash speace in this system

  • @sama7496
    @sama7496 10 месяцев назад

    Hey I tried this but I am getting an error to update e2fsck can you help me with this. I am using gparted on linux mint and changing files of arch linux.

  • @spideyyedips6109
    @spideyyedips6109 3 года назад +2

    Can we do this if it is encrypted?

    • @SavvyNik
      @SavvyNik  3 года назад +1

      I assume you have encryption setup with an lvm which is a different method - help.ubuntu.com/community/ResizeEncryptedPartitions

    • @spideyyedips6109
      @spideyyedips6109 3 года назад +1

      @@SavvyNik thanks

  • @MagdyDoze
    @MagdyDoze Месяц назад

    Thank you it helped me

  • @sahil___jakhar
    @sahil___jakhar 2 месяца назад

    Is there any safe way to extent the /boot system?

  • @rev_krakken70
    @rev_krakken70 Год назад

    Will this remove the files in the existing ubuntu installation?

  • @speakersr-lyefaudio6830
    @speakersr-lyefaudio6830 3 месяца назад

    Can this be done with cmd? I have an arch usb

  • @TuanNguyen-xb5jj
    @TuanNguyen-xb5jj 2 года назад

    Hello thanks for your tutorial! But when i click resize for ext4 then i get alert " Unable to resize read-only file system /dev/nvme0n1p7 " i don know how to fix this. Please tell me. Thanks u so much

  • @best4you990
    @best4you990 8 месяцев назад

    6:45 cant see whole size, just see exc4 size

  • @aman.40399
    @aman.40399 6 месяцев назад

    Thanx learned a lot

  • @norisOacr
    @norisOacr 3 месяца назад +1

    man, my EFI partition is between the root and unallocated space

    • @norisOacr
      @norisOacr Месяц назад

      nevermind, I just figured out a way to do this

  • @victortesla2935
    @victortesla2935 5 месяцев назад

    I have window and ubuntu i have a SSD and the partition are like this
    Efi | window | 40gb | ubuntu / | ubuntu home | swap
    Now I want to get 20 space from window and add it to 40 gb which is easy so now it will look like this
    Efi | window | 60gb | ubuntu / | ubuntu home | swap
    I can do this easy but my question is can I remove 20 gb from my ubuntu home and move it over ubuntu / so that my 60 becames 80 gb
    Step-1
    Efi | window | 60gb | ubuntu / | 20gb | ubuntu home | swap
    Step-2
    Efi | window | 80gb | ubuntu / | ubuntu home | swap
    Do you think this will break the system i didn't made any changes to efi partion so I think this should be fine