You are not logged in.

#1 2018-09-02 18:26:19

SayedRafi
Member
Registered: 2018-08-30
Posts: 3

Increase HDD Space

I want to increase space allocated to mount / i.e sda3 . How do I do it? I am currently running arch in dual boot with Arch.

[araragi@araragi-pc ~]$ df
Filesystem      Size  Used Avail Use% Mounted on
dev                1.9G     0       1.9G   0% /dev
run                1.9G    9.3M  1.9G   1% /run
/dev/sda3      37G     23G   12G    67% /
tmpfs            1.9G    7.3M   1.9G   1% /dev/shm
tmpfs           1.9G     0         1.9G   0% /sys/fs/cgroup
tmpfs           1.9G     39M   1.9G    2% /tmp
tmpfs           383M   100K   383M   1% /run/user/1000
/dev/sda2     181G   98G    84G    55% /run/media/araragi/01D4349D01660500
/dev/sdd1      2.8T   2.5T    275G  91% /run/media/araragi/Emillia

Offline

#2 2018-09-02 18:59:23

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,406
Website

Re: Increase HDD Space

Please use code tags when posting terminal output.

https://wiki.archlinux.org/index.php/Co … s_and_code

The question you are actually asking is: "How can I resize a filesystem", and the answer is: you resize the underlying partition and then grow the filesystem to fill it. You can use any partitioning software to alter the partition table on your drive, and then a tool for your filesystem to resize the filesystem. e.g., if you have an ext4 partition, you use resize2fs. Some tools will automagically call the filesystem tool for you. In any case, you should make a backup of your files before attempting to modify your partition table.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2018-09-04 13:04:43

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Increase HDD Space

To add one piece of clarification to what WorMzy said, the whole process will need to be (or should be?) done from a "live environment", such as booting from a SystemRescueCD disc. The partition that is being resized will need to be unmounted, and you can't unmount "/"...

...but I'm not convinced you need to resize your root partition! I mean, I install software liberally, I have a 30 GB partition for Arch Linux, and it's still only 70% full. In a pinch, it is a simple process to move my pacman cache to a different larger partition, which would free up 3 GB (which is already super cleaned up).

So, what is the reason you want more space for your home partition?

Offline

#4 2018-09-04 13:33:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Increase HDD Space

SayedRafi wrote:

I am currently running arch in dual boot with Arch.

Was this a typo?  Otherwise, why would you do this?

But as above, what is the actual problem?  You still have 12GB still free on your root partition: that's 3 times the size I use on my root partition.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB