• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

SWAP partition not recognized after imaging

Scheduled Pinned Locked Moved
Linux Problems
2
3
1.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    Troy
    last edited by Nov 27, 2012, 4:24 PM

    Hi,

    I’m using fog to image in almost a hundred machines and everything is really working fine until I found that the swap partition isn’t recognized just on the imaged machines.

    The df -l lists me the swap partition but the free command shows me zero bytes for swap. I think it’s probably a fstab issue with the uuid of the swap partition, but I couldn’t find the solution.

    A workaround for this and what I intend to do is to create a file and use it as swap partition, the steps are:

    [LEFT] [/LEFT]
    [SIZE=15px][COLOR=#222222][FONT=Courier 10 Pitch][B]# dd if=/dev/zero of=/swap01 bs=1024 count=1024000[/B][/FONT][/COLOR][/SIZE]

    [COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# chmod 600 /swap01[/B][/FONT][/SIZE][/COLOR]

    [COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# mkswap /swap01[/B][/FONT][/SIZE][/COLOR]

    [COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# swapon /swap01[/B][/FONT][/SIZE][/COLOR]

    [COLOR=#222222][SIZE=15px][FONT=Courier 10 Pitch][B]# gedit /etc/fstab [/B][/FONT][/SIZE][/COLOR]
    adding in the fstab file (/swap01 swap swap defaults 0 0)

    I appreciate if anyone knows a solution to activate the swap file without this workaround.

    thanks

    Troy

    1 Reply Last reply Reply Quote 0
    • H
      Hunter
      last edited by Nov 28, 2012, 4:51 PM

      Apparently Fog doesn’t recognize the SWAP file. (See these posts: [url]http://fogproject.org/forum/threads/cant-upload-linux-image-caixa-magica-16.503/[/url] & [url]http://fogproject.org/forum/threads/deploying-linux.3776/[/url] ) I would like to learn more about how you are or intend to deploy Linux, as I am working on a similar project.

      1 Reply Last reply Reply Quote 0
      • T
        Troy
        last edited by Nov 30, 2012, 10:27 AM

        [quote=“Hunter, post: 9658, member: 1221”]Apparently Fog doesn’t recognize the SWAP file. (See these posts: [url]http://fogproject.org/forum/threads/cant-upload-linux-image-caixa-magica-16.503/[/url] & [url]http://fogproject.org/forum/threads/deploying-linux.3776/[/url] ) I would like to learn more about how you are or intend to deploy Linux, as I am working on a similar project.[/quote]

        Hi Hunter,

        The swap partition still there on a primary partition but is not activated because of the UUID on fstab. There is a way to activate it but do this on several machines will become unproductive, so the steps that I’ve mentioned I think are the best way to make the swap working.

        What exactly you need to know about linux deploying?

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          Last post

        156

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project