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

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

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

  • @sharonlima8913
    @sharonlima8913 10 месяцев назад +16

    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  10 месяцев назад

      Thanks for sharing the useful details!

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

      pinned

    • @DamianAI9
      @DamianAI9 2 месяца назад +1

      💀a.i.

  • @CasJarAI
    @CasJarAI Год назад +20

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

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

      No problem glad you found it

  •  Год назад +7

    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 Год назад +4

    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

  • @programmer6548
    @programmer6548 Год назад +6

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

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

    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!

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

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

    • @SavvyNik
      @SavvyNik  6 месяцев назад +2

      Love to hear it

  • @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.

  • @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 :)

  • @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.

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

    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.

  • @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.

  • @user-eq1er5lh3d
    @user-eq1er5lh3d Год назад +1

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

  • @mchi2214
    @mchi2214 10 месяцев назад +1

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

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

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

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

      np, glad you liked it

  • @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!

  • @BlindManBert
    @BlindManBert Год назад +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 Год назад

      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!!

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

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

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

    I LOVE YOU THANK YOU FINALLY SOEMTHING THAT WORKED

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

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

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

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

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

    Thank you for this excellent tutorial, helped me tremendously!

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

      Glad it helped!

  • @BrendanClements
    @BrendanClements 10 месяцев назад +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!!!

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

      No problem

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

    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.

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

    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.

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

    Perfect !!! Just what i was looking for

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

    Thanks for posting this - did exactly what I needed!

  • @angganarotama
    @angganarotama 27 дней назад +1

    Only this tutorial that actually works, other just recommend a lot of useless commands

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

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

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

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

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

    Incredibly useful and clear! Great video!

  • @astroflexx82
    @astroflexx82 10 месяцев назад +1

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

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

      Np, glad to hear it

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

    Great tutorial, thanks Nik!!

  • @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.

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

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

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

      No problem, thanks for the support

  • @MOHAMMADNOORI-wx6lq
    @MOHAMMADNOORI-wx6lq 7 месяцев назад +1

    Thanks a lot. It works successfully for me!

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

    Thanks mate, I learnt something amazing today.

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

    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 :)

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

    Helped a lot! October 2022 ubuntu 20.0

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

    The training was complete and practical, thank you 🙏

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

    Very helpfull indeed! Keep up the great work

  • @waltermitty4132
    @waltermitty4132 2 года назад +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  2 года назад

      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 2 года назад +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 2 года назад +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.

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

    Thank you! This was clear and helpful

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

      You’re welcome!

  • @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.

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

    Working flawlessly! Thank you.

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

      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.

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

    You are awesome my man!

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

    It worked for me.

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

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

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

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

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

    Exactly what I need!

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

    you are a f***cking hero!

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

    Thanks bro. You saved me☺

  • @aman.40399
    @aman.40399 Месяц назад

    Thanx learned a lot

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

    You're the best man!

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

    You are a star. Thank you

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

    Thank you sir

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

    It felt like you're awesome!

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

    The hardest part for me was creating the bootable USB then updating the BIOS to put USB boot first.
    UBUNTU has a Startup Disk Creator.

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

    Thanks, helped a lot

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

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

  • @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.

  • @ashwintirpude2157
    @ashwintirpude2157 8 часов назад

    Thanks brother

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

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

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

    thank you, really useful

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

      Glad it was helpful! You're welcome :)

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

    You cool man! Thank you.

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

    Great video. Everything worked! Thanks!

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

    Thank you bro!

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

    thanks it worked!!

  • @Ballissle
    @Ballissle Месяц назад +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 Месяц назад

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

    • @Ballissle
      @Ballissle Месяц назад +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 Месяц назад

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

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

    thanks a lot 🤩

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

    Mil gracias!

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

    thanks man !!!!

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

    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?

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

    Thanks a lot.

  • @victortesla2935
    @victortesla2935 8 дней назад

    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

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

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

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

    It works wonders!!

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

    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?

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

    Thank you

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

    Cheers!

  • @JacobBrown-pc2bd
    @JacobBrown-pc2bd 3 дня назад

    Thanks

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

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

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

    Thank you :)

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

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

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

    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?

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

    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.

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

    you are the man!!!!

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

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

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

    Great video ;) +1 like

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

    Thanks a lot

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

      You're welcome!

  • @Nalla-perumal
    @Nalla-perumal 2 месяца назад

    In love mode, my wifi adapter and bluetooth adapter are not working Nik.
    Any idea ? @anybody !

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

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

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

    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.

  • @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.

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

    Absolute W

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

    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?

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

    Can we do this if it is encrypted?

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

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

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

      @@SavvyNik thanks

  • @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?

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

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