LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2020, 11:05 AM   #1
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Rep: Reputation: 40
Just discovered box has no swap partition... but seems to work fine


I installed Mint 19 on this 112 GB SSD last week, replacing Windows.
I believe I partitioned it with

512MB EFI
16 GB swap
the rest I used for /
and put /home, /tmp and /var on an HDD

Working well all week, so I looked at disk in Gparted just to check before I do the same to another Windows box.

That 16 GB swap has just disappeared.

Does anybody know what's up here, or have I just gone to la-la-land?
 
Old 03-28-2020, 11:58 AM   #2
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
My guess is something happened, who knows what, during the installation. But . . . . First, a swap partition is not really necessary. It only comes into play if memory is full or close to full.
The swap partition is normally the size of memory so the system can swap all out if necessary. Do you really have 16GB of memory? I use a 2GB swap partition with 8GB of memory and to the best of my knowledge it has never been used. If you really feel you need a swap partition of some size, go back into gparted and create one. If it disappears then you'll know something nefarious is really afoot and it might be worth tracking down.
 
1 members found this post helpful.
Old 03-28-2020, 12:00 PM   #3
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
P.S. No, I don't think you have gone to la-la land but then remember that computers are NOT inanimate objects. They actually have souls, are evil, and are out to take over the world. Doing a pretty good job of it, I must say.
 
2 members found this post helpful.
Old 03-28-2020, 12:52 PM   #4
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Original Poster
Rep: Reputation: 40
Thanks.

I did figure out that I don't need a swap partition - I'd forgotten about "swapfile", which the system is using on its own. Cool, eh?

I'm just curious, and like you say, computers are evil. This is obvious when you think "panpsychism" - the entire universe is alive. And is under the aegis of The Imp of the Perverse (Murphy's true identity)
 
Old 03-28-2020, 01:31 PM   #5
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
As a side note - you know there really was a Murphy, don't you? I know there are a lot of urban legends, but I was told the story by one who said he knew Murphy at China Lake Naval Air Station.
 
Old 04-01-2020, 04:47 PM   #6
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Original Poster
Rep: Reputation: 40
Yeah, heard that.
What's curious is how a local story at an American air-base could have spread so far and so fast in the 1940's, or maybe the '50s, such that by the '60s it was ubiquitous.
Who needed the Internet?
 
Old 04-06-2020, 08:27 PM   #7
crajor
Member
 
Registered: Mar 2019
Location: Akron, Ohio
Distribution: PCLinuxOS 2020
Posts: 88
Blog Entries: 4

Rep: Reputation: Disabled
It would be interesting to know if Gparted showed 16GB of unallocated space instead of the 16GB swap as originally set up...
with your drive situation it may not be a concern, but for myself, I found a swap partition better for my situation. I am only working with 2GB RAM and a swapfile was resident in the / filesystem. When I changed to a swap partition rather that a swapfile I found better overall performance, generally lass lag time, plus the swapfile size is now available to the disk. Just food for thought...
 
Old 04-07-2020, 07:19 PM   #8
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Original Poster
Rep: Reputation: 40
No, the space for the swap partition disappeared, so now I think I maybe just plain forked up.
 
Old 04-07-2020, 07:36 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Just for curiosity, what is the output of fdisk -l?

As an aside, the machine I'm using right now how 16 GB RAM and an 8GB /swap. With that much RAM, it barely touches the swap. Right now, with a little over of two days of uptime and VM running, it still has not used any swap since the reboot.
 
Old 04-10-2020, 10:17 PM   #10
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Original Poster
Rep: Reputation: 40
For that disk:
Code:
Disk /dev/sdb: 119.2 GiB, 128035676160 bytes, 250069680 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: 55B45EFA-9B9D-4703-BFF9-CB5B14D59696

Device       Start       End   Sectors   Size Type
/dev/sdb1     2048   1050623   1048576   512M EFI System
/dev/sdb2  1050624 250068991 249018368 118.8G Linux filesystem
What does that tell you?
 
Old 04-11-2020, 05:16 AM   #11
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by binkyd View Post
250069680 sectors

/dev/sdb2 1050624 250068991 249018368 118.8G Linux filesystem


What does that tell you?
What it tells ME is that there's an unused part of the disk, from sector 250068992 to sector 250069680, which is only 689 sectors, not big enough to have been your swap.
So probably the creation of the EFI partition overwrote your previous swap partition.
 
Old 04-11-2020, 10:05 AM   #12
binkyd
Member
 
Registered: Oct 2016
Distribution: Looking again
Posts: 429

Original Poster
Rep: Reputation: 40
Thanks.
Looks like it's ok - working fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] centos7 partition won't delete and seems to have swap partition locked down also wayne1937 Linux - General 4 01-27-2020 03:37 PM
I'm an rpi user and at boot I get the message "failed to load kernel modules", however the system seems to work just fine. Using stretch. rsmith53 Linux - Newbie 1 11-26-2019 02:02 PM
ODD Problem: Can't Start a terminal in Redhat--but GUI seems just fine. srfii Linux - Newbie 3 04-15-2019 05:49 AM
Would a Linux swap partition work as a FreeBSD swap partition? Froggy192 *BSD 11 07-27-2013 02:06 PM
Gnome has no sound as I just discovered! Slovak Slackware 4 11-21-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration