You are not logged in.

#1 2017-07-23 21:34:32

rileysu
Member
Registered: 2017-07-23
Posts: 10

[SOLVED] Swap too small. Wondering if I can extend it

When I installed arch I wasn't very experienced in what swap did and the proper swap size I would need for my system. I ended up making a swap partition that is 1GB in size even though I've got 8GB of ram. To make matters worse, the swap partition precedes the root partition making resizing not very easy. Would I be able to somehow transfer all the data in the root partition forward by 7GB to make space for the existing swap partition to extend into?

Last edited by rileysu (2017-07-24 06:53:43)

Offline

#2 2017-07-23 21:37:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Swap too small. Wondering if I can extend it


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-07-23 21:39:31

rileysu
Member
Registered: 2017-07-23
Posts: 10

Re: [SOLVED] Swap too small. Wondering if I can extend it

Wouldn't I then have a non working swap partition taking up hard drive space?

Offline

#4 2017-07-23 21:42:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Swap too small. Wondering if I can extend it

It's 1 GB.

You can go through the process of resizing your partitions, or you can set up a swap file.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-07-23 21:47:53

rileysu
Member
Registered: 2017-07-23
Posts: 10

Re: [SOLVED] Swap too small. Wondering if I can extend it

jasonwryan wrote:

It's 1 GB.

You can go through the process of resizing your partitions, or you can set up a swap file.

Thank you for the help. I guess I'll just go with a swap file.

Offline

#6 2017-07-23 21:56:20

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Swap too small. Wondering if I can extend it

Do you need more than 1G of swap?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2017-07-23 21:57:57

rileysu
Member
Registered: 2017-07-23
Posts: 10

Re: [SOLVED] Swap too small. Wondering if I can extend it

slithery wrote:

Do you need more than 1G of swap?

I need it for hibernate apparently.

Offline

#8 2017-07-23 22:23:21

rileysu
Member
Registered: 2017-07-23
Posts: 10

Re: [SOLVED] Swap too small. Wondering if I can extend it

Screw it. I've fully backed up my system and I'll try to move the root partition over. If it works I'll let you guys know. If I keep the partition order I don't think I'll need to change my bootloader configs.

Offline

#9 2017-07-23 22:45:22

rileysu
Member
Registered: 2017-07-23
Posts: 10

Re: [SOLVED] Swap too small. Wondering if I can extend it

               total        used        free      shared  buff/cache   available
Mem:        8060480      321120     7138788      150592      600572     7336820
Swap:       8388604           0     8388604

It worked and didn't mess up my installation, thank you for the help guys.

Offline

#10 2017-07-24 04:18:19

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Swap too small. Wondering if I can extend it

Nice. Please mark the thread as solved, by editing the first post.

Offline

#11 2017-07-24 06:55:45

rileysu
Member
Registered: 2017-07-23
Posts: 10

Re: [SOLVED] Swap too small. Wondering if I can extend it

For anyone wondering what I did. I wasn't aware that if you launch a gparted live usb you can transfer a partition over as well as the data inside the partition. So I shifted it to the right by 7GB and expanded the swap by 7GB which was surprisingly simple.

Offline

#12 2017-07-24 10:16:30

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Swap too small. Wondering if I can extend it

For future reference it would have been a lot quicker to just delete the old swap and create a new, larger swap.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB