Questions tagged [swap]

Unix systems, and other Unix-like operating systems, use the term "swap" to describe both the act of moving memory pages between RAM and disk, and the region of a disk the pages are stored on. In some of those systems, it is common to use a separate whole partition of a hard disk for swapping. These partitions are called swap partitions.

Filter by
Sorted by
Tagged with
1 vote
1 answer
51 views

How to solve error on swap creation: "skipping - it appears to have holes." (Ubuntu 22.04)

I am trying to create 1GB swap file without success on my Ubuntu 22.04. I use the following commands: sudo rm /swapfile1 sudo dd if=/dev/zero of=/swapfile1 bs=1KB count=1MB status=progress sudo chmod ...
David Taub's user avatar
-1 votes
0 answers
26 views

`Failed to activate swap /swapfile` [duplicate]

On boot I get the error message shown in attached picture. How can I fix this?
Tridal Patel's user avatar
0 votes
0 answers
153 views

Installing Ubuntu 22.04 with full disk encryption (LUKS) and swap partitions

I`m just trying to install Ubuntu 22.04 in my notebook, but I need to have full disk encryption enabled and I would like to define the size of my swap partition. When searching for answers I saw ...
Justcurious's user avatar
0 votes
0 answers
32 views

Questions about swap configuration

I'm trying to enable hibernation on Ubuntu 22.04 (following this tutorial) but I'm confused about what my system tells me about the current swap configuration so I'm hesitant to just change it without ...
Fred's user avatar
  • 151
0 votes
0 answers
39 views

Memory intensive process getting killed before swap memory is full

I have a very memory intensive Java program to run, at first it was giving heap out of memory error so I kept in increasing the heap size along with the swap partition (I only have 32 GBs of RAM and I ...
Sergio's user avatar
  • 101
0 votes
0 answers
20 views

"/dev/sda6: Clean, 230564/2318336 files, 3664252/9250048 blocks" at Ubuntu boot page with some ACPI BIOS errors

I completely removed my 8GB swap and added its volume to my root partition. Now I just have root and home partitions. When I boot, I see some unimportant ACPI BIOS Errors followed by a line that says /...
Reza Saraey's user avatar
0 votes
1 answer
33 views

Considerations to upgrade memory RAM with Ubuntu already installed. Correct procedure post-upgrade

I have a HP Pavilion g4-2368la with Ubuntu Desktop 22.04 with 8GB of RAM, now according with the following official specs of HP: HP Pavilion g4-2368la Notebook PC Product Specifications The laptop ...
Manuel Jordan's user avatar
0 votes
1 answer
28 views

How I can restore/reset the /etc/fstab on amazon AWS EC-2 ubuntu 22.04?

In an amazon EC-2 instance I accidentally overwrote the /etc/fstab while I was adding a setting fro swapfile: echo "/swapfile none swap sw 0 0" | sudo tee /etc/fstab But I ...
Dimitrios Desyllas's user avatar
1 vote
1 answer
159 views

Why is Firefox eating up swap on Ubuntu 22.04?

I run typically 7 to 10 active tabs during the day. I can see that starting from a low value, my swap space usage increases bit by bit all day, until eventually when it has got to about 1GB (out of a ...
Joe's user avatar
  • 177
1 vote
1 answer
94 views

Ubuntu 20.04 freezes, started with installation of nvidia gpu drivers GTX Geforce 1650, suspect swap memory related

I just upgraded my OS from Ubuntu 16.04LTS to Ubuntu 18.04LTS and then to Ubuntu 20.04 LTS as I am trying to use the GPU to run neural networks. I upgraded the OS in order to be able to install the ...
Ferroeg92's user avatar
0 votes
0 answers
18 views

Failed to activate swap /swapfile while unmount the partition [duplicate]

I have install wine and bottle software in ubuntu and after rebooting, I got the message while boot the ubuntu that Failed to activate /swapfile. Is there any way that I will recover my OS without ...
Rajkumar Gupta's user avatar
1 vote
0 answers
36 views

SQUID on Ubuntu 20.04 Server - Swap Directory - Permission denies

I am just setting up a new proxy server and struggle to get the swap directory pointing to another point rather than the original one. The system is configured to run all latest updates from Ubuntu ...
Dirk Weihrauch's user avatar
0 votes
0 answers
69 views

ZRAM error at boot

I have configured ZRAM via /etc/udev/rules.d/99-zram.rules which looks like this: KERNEL=="zram0",ATTR{comp_algorithm}="lz4hc",ATTR{disksize}="2048M",TAG+="systemd&...
Maestro's user avatar
  • 123
0 votes
0 answers
48 views

Can I have a swapfile on bcachefs?

Newer Ubuntu versions are using a swap file instead of a swap partition by default. Can I use a swap file on Ubuntu installed on bcachefs and what are possible problems? In 2018-12-04, swape was still ...
Eddy763's user avatar
  • 123
3 votes
1 answer
119 views

Encrypted swap - changing hard drive

I followed this guide some time ago to set up my system (ubuntu 22.10) on an encrypted ZFS file system, and all worked fine. Part of the guide is to encrypt the swap partition. Then, I upgraded the ...
Thystra's user avatar
  • 73
0 votes
0 answers
173 views

No swapfile on Ubuntu 22.10?

My fresh installation of Ubuntu 22.10 does not have a swapfile. System Monitor shows "Swap not available". (My previous installation of Ubuntu 22.04 did have a swapfile, and I did not have ...
Enterprise's user avatar
  • 11.8k
1 vote
1 answer
193 views

How to fix swapfile problem having holes - Ubuntu 22.04?

I have created a swapfile successfully, but when I am trying to: "sudo swapon /swapfile" this is what I see: "swapon: /swapfile1: skipping" It appears to have holes. How can I ...
Nathan Nyawaya's user avatar
0 votes
1 answer
183 views

Failed to hibernate on ubuntu 22.04

In my previous Kubuntu system I was able to hibernate, but with 22.04 I am unable. My output for grub: GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> ...
Alessio_110's user avatar
1 vote
3 answers
162 views

Ubuntu 20.04 mounting swap even if disabled

TLDR: A fully updated ubuntu 22.04 server is still mounting swap even after removing it from /etc/fstab I am about to pull my hair over this issue. I've been reading the ubuntu documentation about ...
proxx's user avatar
  • 19
0 votes
1 answer
39 views

Open applications don't survive hibernation (sleep). Is there a fix?

I'm using Ubuntu 22.04 LTS (on Dell Inspiron 3505) with swap file of 16GB which I recently created after deleting the default 2GB swap file as per the instructions in Swap FAQ. Q1. My open ...
rusty's user avatar
  • 15.7k
0 votes
0 answers
54 views

Swap partition on VPS

Sorry that this is a very similar thread to some others, but as this is a production server I need to make sure what I am doing is right first time and I am still an Ubuntu novice. I have an Ubuntu 20....
Slimat's user avatar
  • 1
0 votes
1 answer
127 views

How to modify fstab to automatically load my swap file?

I have an 8GB swap file under /swapfile1 and I have to load it manually in the terminal every time I log in. I tried to modify fstab following the advice given in this thread Adding a new swap file. ...
osilverstone96's user avatar
0 votes
0 answers
19 views

make swap on exact ssd driver [duplicate]

I have laptop with 16GB soldered memory and 1TB SSD M2. used for half year swap of 16GB. but then I started to get memory errors and OS crashes. after removing swap everything works fine without any ...
dm-mrtnvch's user avatar
0 votes
0 answers
32 views

CRASH /duplicity-full.20230105T083600Z.manifest /duplicity-full.20230105T083600Z.vol20.difftar.gz

I had a major crash of files shown above multiplying. could not get in laptop for days. running latest ubuntu jelly which not as satisfied with as 20.04. planning on running a virus scan.? Any one ...
17now's user avatar
  • 1
0 votes
1 answer
56 views

How to change the location of a swapfile?

Thanks to this, I have a swapfile on my primary ssd drive (500GB) where I have Ubuntu installed. I have a faster ssd (2TB). I’d like to move my swapfile to the faster drive if possible, if not how do ...
linker's user avatar
  • 105
0 votes
0 answers
97 views

adding permanent custom environment path variable

i am trying to create a permanent path variable following this tutorial: https://youtu.be/JLjF75b-vMI?t=126 everything worked fine and i was able to cd to my newly added variable's directory, however ...
manodzit's user avatar
0 votes
0 answers
190 views

ubuntu boot fail, error: Failed to start Remount Root and Kernel File Systems, Failed to activate swap/swapfile, Dependency failed for Swaps

============================ Boot Info After Repair ============================ => libparted MBR boot code is installed in the MBR of /dev/nvme0n1. => No boot loader is installed in the MBR ...
Ming Kia's user avatar
2 votes
1 answer
135 views

OOM keeps killing VirtualBox

For the past few weeks I've had a serious problem. The Out Of Memory killer of my Ubuntu host keeps killing my VirtualBox session (a Win10 instance). I've assigned only 3Gb to Win10 and there's 16Gb ...
dargaud's user avatar
  • 870
0 votes
0 answers
23 views

Should an old-age-failing caching SSD work as swap?

I have an old ThinkPad E540 that suddenly shut down on Windows 7 in the fall of 2019. The 1TB HDD reported a fault and the laptop immediately shut down allowing me to later retrieve the data with a ...
MostlyRational's user avatar
5 votes
1 answer
392 views

What does the "@" symbol mean when in front of a directory, e.g. "@home"?

I am trying to follow another post on Ask Ubuntu (Can I have a swapfile on btrfs?, specifically Pilot's answer) and I have run into the problem that I have no idea what @home means. The paragraph I'm ...
Richatd_q's user avatar
0 votes
0 answers
33 views

swap partition exists but not usable

I resized the swap partition but I guess I did something wrong. Ubuntu boot time is now between 2-3 minutes. After checking the swap partition, I saw it's the right size in gParted but reads 0Gb when ...
Maxxx's user avatar
  • 11
1 vote
0 answers
154 views

Swap expansion of NVMe disk

I'd like to expand the swap partition of an Ubuntu 18.04 remote dedicated server. The server was provided with a 1.92 TB NVMe drive, but only allocated a small swap size of 1GB total when viewed with ...
Steve C's user avatar
  • 11
0 votes
0 answers
22 views

Reordering partitions (swap) on SSD

I have dual boot (win+ubuntu 20.04) installed, order of partitions is: EFI system Microsoft reserved partition Windows ntfs nfts (hidden) ubuntu / 40GB swap 20gb /home unused 200gb I want to extend ...
Krešimir Fijačko's user avatar
2 votes
1 answer
1k views

Encrypted partitions (LUKS) with login password + hibernate

on my company laptop I have Windows 11, that has encrypted disk, working hibernate, at I need to provide password just once at log-in. I would like to have same on my personal laptop with Ubuntu. RN I ...
Mlocik97's user avatar
  • 124
0 votes
0 answers
127 views

Ubuntu 18.04 Stuck in Started GNOME Display Manager. Dispacher Service....after trying to crate a swap file

Here is the screen image--- [1]: https://i.stack.imgur.com/C0Jo4.jpg I tried to create a swap file to use it for hibernation. My PC is Dual Booted with Windows and Ubuntu CPU: Intel Pentium Dual Core ...
Abhinav Dharmesh's user avatar
1 vote
0 answers
45 views

How to create swap partition during Ubuntu Desktop 22.04.1 LTS installation? [duplicate]

I have been distro hopping for a month (on a laptop with Ryzen 5 5500U 2x8 GB RAM) and I have noticed that none of the Linux distros are good at battery saving when left ON with no foreground ...
Sanskar Bhusal's user avatar
0 votes
2 answers
81 views

Is there any way to use more of the swap file?

I have an old computer and it has 4GB of RAM and I want to test minecraft for research purposes and it freezes. I have a mod to speed up the game but i'm not sure if its using more ram or not, the ...
Boblet67's user avatar
0 votes
0 answers
76 views

"W: but no matching swap device is available" when trying to enable hibenation from swapfile on 22.04.1 LTS

I'm tying to enable hibernation using my 10 GiB swapfile. I'm running 22.04.1 LTS. I have followed this guide: https://www.linuxuprising.com/2021/08/how-to-enable-hibernation-on-ubuntu.html But on ...
Tachytaenius's user avatar
1 vote
0 answers
42 views

Mirror swap FILES

Mirroring (RAID 1) swap partitions is rather easy and recommended in some cases. It increase performence compared to single swap partition and increase resistance to drive failure. On the other hand ...
woj88888's user avatar
1 vote
0 answers
53 views

Chromium still Thrashing with Larger Swap File

I have a new fresh install of lubuntu 22.04 on an old chromebook. Chromium was stopping and I believe thrashing because some of the command keys still functioned. I increased the swapfile to 4.0G ...
Dan's user avatar
  • 171
1 vote
1 answer
90 views

Getting Operation not permitted error while deleting Swap file

I am trying to delete the swap file by the following link: https://www.digitalocean.com/community/questions/delete-swap-file][1] However, when I type: sudo rm /swapfile I am getting the following ...
khalidh's user avatar
  • 140
0 votes
0 answers
89 views

Creating swap file or drive and setting up hibernation on encrypted system. Recommended course of action

I recently installed Ubuntu 22.04 on my new laptop. I created an encrypted partition with separate partitions for my root system (/) and for my home directory (/home), i.e. they're both on the same ...
Pål Bjartan's user avatar
1 vote
1 answer
158 views

How can I swap the left alt key and left win key for LXM-00001 (Microsoft Ergonomic Keyboard) in Ubuntu 22.04

I can swap other keys in this environment, well. But the only left win key can not be changed to any keys. How can I change the left win key to an other key? Xkb and Xmode is not working.
3088 K's user avatar
  • 69
0 votes
1 answer
831 views

22.04 - Why is zswap not enabling parameters lz4 & z3fold

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy I have a swap partition and I would like to try lz4 and ...
Ben Muircroft's user avatar
0 votes
0 answers
1k views

watchdog: BUG: soft lockup - CPU#111 stuck for 23s! [swapper/111:0]

I've been searching for the solution to this problem for days, but I couldn't find the exact information I need. I'd be grateful if anyone could help. Aug 28 14:23:06 AMS kernel: [1499509.120893] ...
Ahmet's user avatar
  • 1
1 vote
0 answers
114 views

PyCharm fills up swap despite available RAM and then crashes when the swap fills up

I am running PyCharm when I have about 11.8GB of free RAM and about 2.8GB of free swap. This program needs more than 2.8GB to run. When I start it, it slowly fills up the swap until it fills it up, ...
John Glen's user avatar
  • 111
1 vote
1 answer
4k views

Where does that new /swap.img file come from?

I installed an Ubuntu VM 22.04 LTS running on top of VMware ESXi v7 on the 4th of July 2022 with a dedicated LV for the swap : $ swapon --show NAME TYPE SIZE USED PRIO /dev/dm-3 partition ...
SebMa's user avatar
  • 1,939
0 votes
1 answer
201 views

Setting up a RAIDed Swap Partition

I have a highly customized procedure to install Ubuntu in an encrypted ZFS file system, and RAIDed drives. A description of the installation procedure can be downloaded here: https://www.mediafire.com/...
Stephen's user avatar
  • 435
1 vote
0 answers
52 views

Broken Swapfile?

I am on ubuntu 20.04 with 4GB /swapfile on a machine with 19GB of RAM. I am current setting up various rsync commands tomake backups of various directories, using a command based upon the the command ...
nightwatch's user avatar
0 votes
0 answers
76 views

I have deleted swap partition and logged out of system 8n Ubuntu.. please help me to turn it again

enter image description here I have tried by adding noresume also....
Alyana Mahesh's user avatar

1
2 3 4 5
28