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

Tips for reducing image size?

Scheduled Pinned Locked Moved
General Problems
2
4
488
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.
  • M
    matthewadams12
    last edited by Nov 3, 2023, 9:57 PM

    Hi all,

    Note: I’m a fog noob.

    Using fog server to PXE boot ubuntu server onto PCs. I noticed that when capturing an image of my base ubuntu server, the image ended up being quite large because of the 256Gb SSD that I installed the OS on. This is basically a vanilla ubuntu server OS with no additional software on it, so it seems to me that most of the space on the /dev/sda3 (the largest partition) is empty. I’m noticing that it’s taking a while to transfer the image over the LAN, and I’d like to speed things up.

    Is there a way to have fog reduce the size of the image, given that so much of it is empty space?

    If not, what tips or tricks do you suggest to achieve the same result? Like maybe, before capturing the image, resizing the main partition from 250-something Gb down to the smallest size for the OS to fit on?

    Also, if I do that, then deploy the image to a PC with, say, a 1 Tb drive, will I have to resize the main partition after deployment, or can I tell fog to use all available space?

    Thanks,
    Matthew

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Nov 4, 2023, 10:25 AM

      @matthewadams12 It depends on the partitioning and filesystems used. If Ubuntu is installed with LVM it will be captured sector by sector (large). But if you choose plain GPT or MBR partitioning FOG should be able to capture the used space only.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      M 2 Replies Last reply Nov 7, 2023, 2:38 PM Reply Quote 0
      • M
        matthewadams12 @Sebastian Roth
        last edited by Nov 7, 2023, 2:38 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • M
          matthewadams12 @Sebastian Roth
          last edited by Nov 7, 2023, 3:01 PM

          @Sebastian-Roth Thanks. Worked like a charm. Went from ~250Gb image down to ~9Gb.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            2/4
            Last post

          145

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project