FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2014
    Location
    viet nam
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [SOLVED] cant disable swap

    My fstab:
    Code:
    #
    # /etc/fstab
    # Created by anaconda on Tue Jan 14 06:25:26 2014
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=2a810046-75d7-44c4-b149-92c5cb6913ad /                       ext4    defaults        1 1
    UUID=c4cf1907-f8c0-41e9-ac78-4b104ff6176a /boot                   ext4    defaults        1 2
    UUID=5E50-DF00          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
    UUID=7952b1bc-c8f3-4125-b338-f3ca25d71add /home                   ext4    defaults        1 2
    #UUID=b6d22965-b625-45d1-ac59-8925cc94d25b swap                    swap    defaults        0 0
    after I reboot:

    Code:
    swapon -s
    Filename				Type		Size	Used	Priority
    /dev/sda4                              	partition	8191996	0	-1
    Last edited by hiep4895; 14th January 2014 at 12:24 PM.

  2. #2
    Join Date
    Aug 2011
    Posts
    899
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cant disable swap

    I was informed recently that if you have a GPT-partitioned HDD then systemd mounts any swap partitions that it detects on the HDD based on the GPT partition type.

    To actually disable mounting that swap partition, you can mask the systemd service that mounts that swap partition:
    systemctl mask dev-sda4.swap

  3. #3
    Join Date
    Jan 2014
    Location
    viet nam
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: cant disable swap

    thanks. That worked

Similar Threads

  1. swap logical volume vs. a non-LVM2 swap
    By jenaniston in forum Using Fedora
    Replies: 10
    Last Post: 22nd January 2013, 12:47 AM
  2. fedora real disable ipv6 and disable sit0
    By ssb in forum Servers & Networking
    Replies: 2
    Last Post: 27th January 2011, 02:43 PM
  3. Swap file and complete removal of swap partition
    By RVF16 in forum Using Fedora
    Replies: 9
    Last Post: 20th November 2008, 11:32 PM
  4. crashing swap space or swap command ?
    By mnisay in forum Servers & Networking
    Replies: 2
    Last Post: 18th January 2006, 05:01 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •