You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Delete Swap Partition

Author (Read 5261 times)

0 Members and 1 Guest are viewing this topic.

Re: Delete Swap Partition
« Reply #6 on: May 02, 2017, 08:18:39 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Good to hear!!!  :D :D

It's always the little things LOL  ;D ;D
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: Delete Swap Partition
« Reply #5 on: May 02, 2017, 01:03:53 AM »
 

johnnyboy5000

  • New to Forums
  • *
  • 22
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: AMD Phenom II x4 955

  • MEMORY: 12Gb

  • VIDEO CARD: AMD RS880

  • Kernel: 4.x
Yes, the swap was not off. So I used sudo nano / etc / fstab and deleted the info that had swap text.  The PC starts up normal and no more 12GB swap drive.   :) Thanks
 

Re: Delete Swap Partition
« Reply #4 on: May 01, 2017, 09:43:41 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Thanks for the info. I managed to delete the swap drive, but now Linux Lite hangs at start up. It won't go pass the feather screen. I can start up with the advanced options.

If hanging at the feather - I believe hitting ESC will allow one to see to whats processing in the background. May lend to whats hanging the system.
Also a thought - confirm that swap is off and not trying to mount...??...
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: Delete Swap Partition
« Reply #3 on: May 01, 2017, 09:36:54 PM »
 

johnnyboy5000

  • New to Forums
  • *
  • 22
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: AMD Phenom II x4 955

  • MEMORY: 12Gb

  • VIDEO CARD: AMD RS880

  • Kernel: 4.x
Thanks for the info. I managed to delete the swap drive, but now Linux Lite hangs at start up. It won't go pass the feather screen. I can start up with the advanced options.
 

Re: Delete Swap Partition
« Reply #2 on: April 30, 2017, 01:35:46 PM »
 

JohnD

  • Occasional Poster
  • **
  • 76
    Posts
  • Reputation: 10
    • View Profile
    • Linux-Infos von Bernd Storck (German)

  • CPU: Dual core AMD Athlon II X2 240

  • MEMORY: 2Gb

  • VIDEO CARD: NVIDIA C61 [GeForce 7025 / nForce 630a]

  • Kernel: 5.x
I didn't realize that 12 GB out my 64 GB SSD was taken for a swap drive when I installed Linux Lite.  Does anyone know how I can delete that?  My PC has 12 GB ram which is a lot for Linux Lite so I would probably never need the swap drive anyway.  Thanks for any help.

As far as I know this way:

  • Identify the file names of the swap partitions. To do so, list swap partitions with the command "swapon -s".
  • Deactivate swap with the command "swapoff". For example: "swapoff /dev/sda7", if sda7 is your swap partition.
  • Eliminate lines from the file "fstab" in the directory "/etc", which would mount the swap partitions after any start of Linux.
  • Delete the swap partitions. (You can do this from GUI with GParted or from command line with cfdisk. Be careful, but it's not complicated.)

In my own "fstab" for example are two lines for mounting the swap partitions:

Code: [Select]
# swap was on /dev/sda11 during installation
UUID=52a1d79c-d752-4904-b608-c2b66129a913 none            swap    sw              0       0
# swap was on /dev/sda7 during installation
UUID=a6ececfd-2af5-4877-abc4-52e90b7254ea none            swap    sw              0       0

If I would delete those two lines, both preceded with a comment, Linux would not try to mount those swap partitions at start.


More information on commands to delete a partition: How to create or delete partitions with fdisk.
« Last Edit: April 30, 2017, 02:42:28 PM by JohnD »
"Show up on time, know your lines, and don't bump into the furniture."
 

Delete Swap Partition
« Reply #1 on: April 30, 2017, 01:10:44 PM »
 

johnnyboy5000

  • New to Forums
  • *
  • 22
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: AMD Phenom II x4 955

  • MEMORY: 12Gb

  • VIDEO CARD: AMD RS880

  • Kernel: 4.x
I didn't realize that 12 GB out my 64 GB SSD was taken for a swap drive when I installed Linux Lite.  Does anyone know how I can delete that?  My PC has 12 GB ram which is a lot for Linux Lite so I would probably never need the swap drive anyway.  Thanks for any help.
« Last Edit: May 02, 2017, 08:50:15 AM by Jerry »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section