Resize a partition


Recommended Posts

Hi guys. I'm trying to resize my /home partition, as I'm running out of space, but I can't find a way to do it without messing with my stuff. My Linux installation is on a 1TB hdd, and the partitions are like this (in gparted): ntfs partition (with lots of free space) ---- linux swap ---- root partition ----- home partition. Ideally, I would resize the ntfs partition and use some of its free space for the home partition, but I can't do it, it seems. Doesn't work with the root partition either.

 

I tried with gparted on a live ubuntu session, no luck.

 

I also thought about cloning to another hdd (I have a 400GB empty one) with Clonezilla, but I can't do a HDD clone, since it would also clone my ntfs partition, and I don't want that.

 

Any solutions? Thank you.

Link to comment
https://www.neowin.net/forum/topic/1185727-resize-a-partition/
Share on other sites

do u download a lot?

 

one way around it would be to have the extra 400gb mount as a data drive and use that to store stuff

 

for example in my laptop i have a 300gb HDD and a 128gb SSD

 

If i download stuff through Torrents or browsing etc is all download automatically to the HDD and not my SSD

 

I hope i explained that well enough lol

 

 

 

 

 

using gparted in a live environment should allow you to resize the partitions though as i did this before

I know it should, but I think it doesn't let me because of the order of the partitions. I can shrink the ntfs partition or the root partition, but I can't add that unalocated space to the home partition...

 

Yes, I know I can use another partition or hdd as storage, but I can't figure out how to "move" stuff that uses the home partition to another place. Like Crossover, for example, it stores all the bottles in the home partition and I don't know how to create them somewhere else...

ah ok i understand

 

The partitions as far as i know would require you to resize the ntfs one and then redo the Linux Partitions (the other guys will confirm if this is right)

 

 

for crossover you can set the bottle directory

 

http://www.codeweavers.com/support/docs/crossover-pro/cxbottlepath

Your going to have to move your other parts to take up the space you free up with your ntfs shrink.. so that the no unallocated space is to the right of your /home part.

So you have this

[ntfs][swap][/][/home]

when you shrink ntfs you get this

[ntfs][unallocated][swap][/][/home]

you need to then move your swap / and home to the left to be next to ntfs so you have this

[ntfs][swap][/][/home][unallocated]

You can then expand /home into the unallocated space.

I don't really understand why you don't just have a / partition with /home just being a folder under the 1 partition

As to just creating a new partition - if these are primary your at the limit and can not just create a new primary partition it would have to be extended with logical inside.

If it was me I would just blow away linux and then resize your partition ntfs to give you space you need, then just create swap an /

I think I'll try that with the live gparted and see where it goes.

 

About having just one partition, well, the EOS setup created separate partitions for / and home (that's a standard in linux setup from what I've seen in other distros too) as defaults, so... :) But yeah, it would've been much easier that way...

 

What do you mean "blow away linux"? Like reinstalling it? I really don't want that, I did a LOT of tweaks and stuff since I installed and I don't want to loose them :(

Why would you loose them, they are not a movie of your kids first b-day party.. They are tweaks and settings - just redo them, or this time do it better ;)

Copy your DATA off, like your kids pictures and then just redo it. But gparted live will allow you to move partitions to the left, etc.

edit: ok I downloaded EOS, and not seeing where it created a / and a /home?

post-14624-0-97378700-1383601419.png

I had to create the partition table.. You could not have picked use the whole disk - so confused where /home on its own partition came from other than you doing it for some reason?

You seem to be on the right track. Based on your description of your partition table, you shouldn't have too much trouble resizing your partitions from GParted Live. You will need to make your NTFS partition smaller; move your swap, root, and home partitions to the left to move the free space previously occupied by your NTFS partition to the end of the disk; then expand your home partition to encompass the free space you just created. After you have done this your Linux system will not boot. Therefore you will also need to chroot into your system from GParted Live and reinstall the bootloader after your new partitioning scheme is settled.

 

I tried to replicate your setup in a virtual machine so I could demonstrate the procedure I just described with screenshots. Follow the steps below to move space from your NTFS data partition to your EXT4 home partition.

 

1. Boot into GParted Live. You should choose the GParted Live image for the same processor architecture as your operating system. Therefore if you installed the default 32-bit Ubuntu image, you want to use GParted Live i686 PAE. However if you installed the 64-bit Ubuntu image, you want to use GParted Live AMD64. This is very important. You will not be able to reinstall your bootloader if the architecture does not match.

 

ec5fbfc98f15d15c25ea4ee0d3e4c055.png

 

39709a6b5d358b5f19afb35bbbd4a1fd.png

 

5f2e18d66d6498e392ef8f36faee5a74.png

 

c2489dcf1c71feb35f23e6ae353bcd0e.png

 

5ccd23ca7f02cf204e17776b7e641d60.png

 

2. Resize your NTFS partition to make more free space on disk.

 

419a9357b72ac1023336226fb948eead.png

 

3. Move your swap partition to the left.

 

d324c29a907b395445ca45126332c1be.png

 

4. Move your root partition to the left.

 

d3abbdab480f8cd01cc3e3da5462678e.png

 

5. Move your home partition to the left.

 

7b6c2e8c87886b2589993dc4315be97f.png

 

6. Expand your home partition to the right into the available free space.

 

d428736cea58ef3cc20c8bf57fb46896.png

 

7. Apply the operations you have just queued. WARNING: This may take a while!

 

cdb49cb6ed9d421ca8c1ec77c6580683.png

 

4d772d822db23fd7ad29d01c1c30ff43.png

 

75d7cbaac22973b440dc5d486b7e3d15.png

 

8. Open Terminal and become root.

$ sudo su -

dfbf5cb16d6429a9ed6f448b205aea3a.png

 

9. Chroot into your Linux system, and reinstall the bootloader.

# mount /dev/sda1 /mnt
# mount -o bind /proc /mnt/proc
# mount -o bind /sys /mnt/sys
# mount -o bind /dev /mnt/dev
# mount -o bind /dev/pts /mnt/dev/pts
# chroot /mnt
# grub-install /dev/sda
# exit

baf87a60490ab0c843e1a6ca583aaa90.png

 

10. Reboot.

# reboot

915c93e12a3c7fc2eba8d72371a6b25b.png

  • Like 2
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Grab Motorola's Razr Ultra 2025 at 15% off and ditch your slab phone by Paul Hill Motorola is currently selling the Razr Ultra 2025 on Amazon at a discount of 15%, meaning you can pick it up now for $1,099.99 instead of the usual $1,299.99. This is a notable saving on a premium foldable smartphone, but it still remains a high-end purchase. Any Prime members out there can get free overnight delivery and if you have an old device to trade in, then you can get up to $725 in Amazon.com Gift Card credit that you can use towards your upgrade. One of the main perks of this device is that it’s universally unlocked, meaning you can use it on all major US carriers. It’s powered by the Snapdragon 8 Elite and comes with 16GB RAM and 512GB storage. With these specs, this device should be able to run any apps you throw at it. The Pantone Scarab color, a soft, velvety suede-like texture, is the result of a collaboration with the Italian brand Alcantara, known for its premium materials, giving the phone a very unique look. As a flip phone, you also get an intelligent and interactive external display that lets you access apps without opening your phone. Even with this external display, Motorola says you can expect over 36 hours of battery life and when you do need to recharge, you have fast charging. The main display on this device is 7 inches and features a Super HD resolution which is 2992 x 1224, the refresh rate is 165Hz. The external display has a resolution of 1272 x 1080. This phone could be a good pick for fashion-conscious users with its unique materials. It’s also a great device for anyone after a compact form factor or who is a fan of Motorola devices. The style, compact design, external display, fast performance, and improved camera system (50MP) are all positives on this device. There’s also IP48 rating for dust and water protection, adding durability. Motorola Razr Ultra 2025: $1,099.99 (Amazon US) / MSRP $1,299.99 This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • Lots of people want a world where everything is personal and nothing is ever discussed rationally. List me as one of the people who doesn't think that's a good approach.
    • I think it's great that we're learning more about the early universe through observation. Knowing that our assumptions were off is a good thing. Once space based gravitational wave detectors exist, we may be able to "see" into the period where the universe was still condensed before matter formed. That'll be cool
  • Recent Achievements

    • One Month Later
      BA the Curmudgeon earned a badge
      One Month Later
    • First Post
      Doreen768 earned a badge
      First Post
    • One Month Later
      James_kobe earned a badge
      One Month Later
    • Week One Done
      James_kobe earned a badge
      Week One Done
    • Week One Done
      macomen earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      653
    2. 2
      ATLien_0
      253
    3. 3
      Xenon
      168
    4. 4
      neufuse
      147
    5. 5
      +FloatingFatMan
      127
  • Tell a friend

    Love Neowin? Tell a friend!