Two swap files listed in FSTAB

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
RetiredRick
Level 1
Level 1
Posts: 2
Joined: Sat Jul 07, 2018 1:40 am

Two swap files listed in FSTAB

Post by RetiredRick »

I recently upgraded my dual boot system to an ssd, I did a fresh install of Mint 20.1 on the new drive, rebooted to make sure everything worked and then reformatted the old drive to use as storage. Everything worked but Linux Mint was very slow to boot. I eventually found the problem to be two listings for the swap file in FSTAB. After checking for the correct location with gparted I commented out the obsolete swap file entry and normal boot times were restored.
Hope this helps with anyone having a similar problem.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mikeflan
Level 16
Level 16
Posts: 6912
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Two swap files listed in FSTAB

Post by mikeflan »

Thanks for posting that. Were both swapfile lines identical?

Mine looks like this:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/swapfile        none            swap       sw            0           0
Locked

Return to “Installation & Boot”