On 02/03/18 10:22, Dave Plater wrote:
On 02/03/18 11:40, George from the tribe wrote:
On 03/02/2018 05:32 PM, George from the tribe wrote:
I am on working on my laptop (#2 below, a dell XPS). It has a 500gb SSD which is partitioned for dual boot windows and opensuse.
My root partition is almost completely full, and I am wondering what I can do about it to make more space.
Here is the layout of the drive:
tribetrekDell:/ # fdisk -l Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 2C1BF30F-7D76-4D8E-A2CB-FD86115234B3
Device Start End Sectors Size Type /dev/sda1 2048 411647 409600 200M EFI System /dev/sda2 411648 444415 32768 16M Microsoft reserved /dev/sda3 444416 133564415 133120000 63.5G Microsoft basic data /dev/sda4 935960576 937701375 1740800 850M Windows recovery environment /dev/sda5 133564416 146245631 12681216 6G Linux swap /dev/sda6 146245632 193349631 47104000 22.5G Linux filesystem /dev/sda7 193349632 240453631 47104000 22.5G Linux filesystem /dev/sda8 240453632 935960575 695506944 331.7G Linux filesystem
Partition table entries are not in disk order.
I have 2 root drives, both 22.5G, for the purpose of when the time comes to upgrade, having the previous version backed up in order to be able to boot into my system if the upgrade fails, or I have some other kind of major failure. It has saved my back many times.
So, I want to keep the 22.5G drives equally sized, and I don't want to reduce the "home" partition of 331.7G.
I noticed that /dev/sda3 for windows is only using about 45G on it. Since I hardly ever use windows, I was thinking of trying to take 14G off of that drive, split it into 2 partitions, and somehow append those extra 7G to each of the root drives in order to give my root more room.
Is that something that is even possible?
Does anyone have better recommendations? Like splitting off some of the directories from my root drive that take up a lot of memory, and moving them to the new partitions, and then just symlinking to those partitions in order to continue running?
I don't really know the best course of action here. Any help is greatly appreciated.
I forgot to mention that I am only using ext4, not btfrs.
I lost half my ram a few days ago and while I wait for a replacement I decided to make a swap partition on my external usb3 Microsoft basic data 1T drive. I used a virtual box windows 7 to do the job, you'll find it much easier using a proper windows installation. Simply open the management console and select disk manager then do a defrag on the partition you want to shrink. All you have to do next is right click on the partition map and select shrink.
In your case you will have to use LVM to add the gained space to your root partition, this I've no experience of but I think you can use yast. Hope this helps,
If he's not using LVM already, then LVM will be no use ... What you need is something like Windows Partition Magic. I'm sure there must be a linux equivalent, but your big problem will be shrinking your big Windows partition. Also, you need to get VERY clear in your head the difference between PARTITION size, and FILESYSTEM size. You need to shrink the ntfs filesystem, and then shrink the partition to match. You can just delete and recreate the swap, that won't be a problem, If the first root partition is your spare, you could delete and recreate it, Otherwise, you will need to move the partition AND filesystem down. There's absolutely no problem with increasing the size of the partition - it's when you move the base of the partition that things gets confused if you're not careful. You could then move down or recreate your second root partition as you see fit. If you reboot, having moved/resized your PARTITIONS, you won't notice any change in disk size. You'll need to run resize2fs to add all that new partition space into the file system. Cheers, Wol -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org