How to Resize or Extend a Linux Partition/Volume/Disk | (No Swap - Ubuntu)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey savvy people at savvy Nick here and today we'll be going through how to increase your storage space on an already existing Linux system we'll be using Debian we'll be using Ubuntu for this tutorial some other Linux distributions might require different methods in order to properly resize their storage spaces because various Lennox distributions are partitioned differently from each other if you're new and stopping by to watch a tutorial today please take a moment to subscribe below and hit the notification bell for more videos alright let's go jump in real quick so the first thing I'm going to do is here in Ubuntu there's an app called disks so let's look for that and launch it here are disks you can see all the information about your filesystem currently now you can see here that there's a partition one with 34 gigabytes with an ext for format and file system it belongs to the device called SD a1 and it tells you where it's mounted on the filesystem root so this is a root partition and it's out peer ucv box hard disk at least for me because I'm using VirtualBox in order to go through this tutorial today and what I'll be doing is going and extending this to 64 gigabytes of space so in order to do so I'm going to go ahead and shut down the booty real quick and then we'll bring it right back up after we've resized it in the virtual machine so let's go ahead and exit out and just shut down real quick give it a moment here alright and after it's shut down you can see that I have a boot - 1804 right here available and what I want to do if you want to increase the size here if you hit settings and you go to the storage you'll see that there's really no way to increase the size that's 32 gigabytes here instead in VirtualBox you're gonna have to go out of here go up to the top where you see file and then let's go down until we see the virtual media manager also you can use control D if you have Windows and once you've done that you'll see a list of all the different disks that you have available in their extensions so you can see here I have the Ubuntu UEFI VDI and that's the current system that I have before I rename it of course to open to 1804 I'm gonna go ahead and click on that and then I can go ahead and actually change the size to whatever I want so if you go below whatever you had before so I had 32 gigabytes of space it gives you a warning here that you can't do that because it's smaller than what you had before so you would be destroying your system pretty much so you don't want to do that instead you want to go ahead and go above so I'm gonna go for let's say like 64 gigs you can also type it over here on the right-hand corner and once you've selected whatever you want you can actually hit the apply button and that will apply 64 gigabytes of space we'll go ahead close out of here and just to check let's go back into settings if you go into settings and then go to storage and click on the storage space you'll see now that there are 64 gigabytes available so that's great what we want to do next is go ahead and hit OK and then let's go ahead and launch our Ubuntu 1804 so we can check the disks again and the partitions so I'm just gonna launch this real quick now this is applicable to doing it on a real physical computer at least with the boon - this is just an easy way to show you and a lot of people use virtual machines and sometimes you need a little more space and instead of getting rid of your virtual machine this is an easy way to go ahead and edit let me go ahead and switch to full screen here since we'll be focusing in on this and login real quick [Music] so I'm gonna go back into disks here so let's just search for that app and watch it so now you can see we have the file system partition 134 gigabytes of ext4 partition space mounted on the root and then we have this free space which is another 34 gigabytes so what this tells us is Linux didn't automatically just assume that we wanted to go ahead and use all this free space up for our root storage instead we have to go ahead and actually define this by ourselves and tell it to go ahead and use the free storage space so the bhutesu has really made this easy since version 17 they went ahead and moved their swap space from the partition to a file that exists on a storage disk so the way used to exists is that you had your root partition then you had a swap partition following that well that made it really hard because you had these two segmented from each other so you can imagine here if I had another rectangle and it was labeled swap that the free space would be behind that swap so you would have to actually disable swap and completely remove it then put your free space in and then add swap bin at the back like I mentioned before some Linux distributions still have this problem since they do have swap space still as a partition so this method won't work with every distribution so let me know if I should go ahead and make a video about resizing storage on some other Linux distribution let me know in the comments section below which distribution I should go ahead and make another video on also if you made it this far please go ahead and hit the like button it really does help me out and what we want to do is go ahead and hit these little cogs right here so we get to have other options here as you can see we can edit partitions at it file system format partitions even check and repair the filesystem but what we want is actually to resize so if we click the resize we have the easy ability to go ahead and resize our current file system so all you have to really do is just change the slider around and if you want to use the maximum amount you can just put the slider at the very end or you can go ahead and keep increasing increasing the size here below and you also have the option selecting various units as well as manually putting in what partition size you want if you want to leave some free space following so let's say you don't want to use up the full 64 gigabytes that we have you can go ahead and type in some amount it's just gonna move this slider over a little bit so let's say I wanted 10 gigabytes left at the very end then I can just go ahead and put 10 in there and it will allow for that part of the storage disk not to be used by anything and it'll give you a difference so we're increasing it here by it says twenty four point four gigabytes so I'm gonna go ahead and use everything I have since I want to make 64 gigabytes and I'm gonna hit the resize button now before warned that if for some reason you're doing this on a physical computer and there is something that exists at the end of that space it will be erased so it does tell you here resizing it file system can lead to data loss if you're not careful and you're always advised to backup the system data before using operations like resize so again you should be aware that this will resize your route mounted partition but for more storage just make sure that there's no data in the free storage that you're trying to expand into so after you've confirmed that you can hit resize it's gonna ask you for a password for your administrative user go ahead and type that in and allow it to go ahead and do it's tucked in the wrong password try again here after you put in the read password you'll be able to resize and as you can tell now we have a 69 gigabyte ext formatted partition 1 filesystem so it all looks good and you can also check if you want to with terminal you can also check in the terminal you can do let's see F disk - oh I believe I might have to do that as administrators and then we can see our SDA now has 64 gigabytes available and then you can tell here that dev SDA one is now 64 gigabytes of type of Linux so you've made it this far you've successfully resized your storage space congratulations we'll go ahead and exit out and I'm just gonna go ahead and reboot one more time just to make sure that everything sticks around like we think it should give it a few moments here just to restart and I'm gonna go ahead and go to disks again just the check and make sure that everything is properly there so yeah we still have these 69 gigabytes so everything is working just fine again let me know if there's another Linux distribution where you'd like me to go ahead and do this on and whether or not you would like me to go ahead and do this with a swap at the end of the route mounted partition because that's a little more challenging and I want to thank everyone because we've just reached a hundred videos on the channel it's really exciting to get there and I hope you enjoyed this tutorial of how to increase the storage size on Ubuntu Linux and if you have any questions comments or suggestions please post them in the comment section below also make sure to subscribe for future videos and make sure to like the video if you want go ahead and stop by the Discworld Channel also I have a blog or wiki in the works I'm not sure which one to choose quite yet but I've been experimenting with both formats so that I will be able to post more content if you have an opinion about which format to choose please feel free to go ahead and post in the comment section below and let me know I'll be making a community post in the next few weeks about the new blog or wiki release so keep an eye out for that and thanks for watching you
Info
Channel: SavvyNik
Views: 253,314
Rating: undefined out of 5
Keywords: resize ubuntu partition dual boot windows 10, gparted resize partition ubuntu, how to increase disk space in ubuntu dual boot, how to make partition in ubuntu after installation, increase ubuntu partition size dual boot, gparted resize partition, ubuntu disk partition, ubuntu partition after installation, extend ubuntu partition dual boot, virtualbox, linux
Id: DsJBN7WW0zA
Channel Id: undefined
Length: 10min 2sec (602 seconds)
Published: Mon Mar 09 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.