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

How To: Make progress bars appear for multiple-partition tasks

Scheduled Pinned Locked Moved
FOG Problems
11
43
22.4k
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.
  • E
    Eclat2k
    last edited by Aug 29, 2012, 10:11 AM

    Ok, I’ll try it.

    Thank you very much.

    1 Reply Last reply Reply Quote 0
    • C
      chad-bisd Moderator
      last edited by Feb 11, 2013, 10:56 PM

      I moved this to tutorials and edited the code block to make it easier to see what needs to be changed. Thanks to the original author, I think their name got lost to the old forums or I just can’t find it.

      I can verify this works for my FOG 0.32 setup on Ubuntu 10.04, but since it’s a FOG script thing, it should work on just about any other OS you can run FOG on.


      If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

      1 Reply Last reply Reply Quote 0
      • S
        Snorty
        last edited by May 6, 2013, 8:32 AM

        Hello,
        How can I change the “fog” file within the init.gz? Do I have to extract the init.gz and edit the file? This is what I’ve tried so far, but when I want to open the extracted init file it just shows me strange symbols.

        [img]http://www.tinyuploads.com/images/962izY.jpg[/img]

        1 Reply Last reply Reply Quote 0
        • J
          Jason Garrison
          last edited by May 6, 2013, 1:45 PM

          Going to the Wiki page and doing a search for Changing inti.gz found this result.

          [url]http://www.fogproject.org/wiki/index.php/Modifying_the_Init_Image[/url]

          It show you what you want to know.

          1 Reply Last reply Reply Quote 0
          • J
            Jason Garrison
            last edited by May 6, 2013, 2:04 PM

            Hey Lee, sorry I didn’t see that you had that link under your code post. So Snorty, did you run through the tutorial and are still having issues?

            1 Reply Last reply Reply Quote 0
            • S
              Snorty
              last edited by May 6, 2013, 2:04 PM

              Thank you, Jason!
              I should use this good Wiki more often.

              Edit: No, I didn’t go through the tutorial yet. Because I’m a little bit under pressure, I’ve just asked how to modify it in this forum. I’ll use your link now, thank you.

              [img]http://www.tinyuploads.com/images/962izY.jpg[/img]

              1 Reply Last reply Reply Quote 0
              • J
                Jason Garrison
                last edited by May 6, 2013, 2:08 PM

                I was just making sure that it wasn’t something the tutorial missed. I seem to always go back to that tutorial also, so you’re not alone! I hope it helps!

                1 Reply Last reply Reply Quote 0
                • S
                  Snorty
                  last edited by May 6, 2013, 2:20 PM

                  The Tutorial explains everything I need to know, so it’s all fine 🙂
                  I just didn’t see Lee’s link.

                  [img]http://www.tinyuploads.com/images/962izY.jpg[/img]

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jason Garrison
                    last edited by May 17, 2013, 8:07 PM

                    I also wanted to make it so that it showed the progress while uploading. It doesn’t show the status bar until about 14 seconds into the upload, but this makes it work for the multi partition choices. To do so I added the following:

                    First Add was around line 997

                    [CODE] if [ -n “$disk” ]
                    then
                    #Added from the fix for mps and mpa deploying to fix uploading status bar.
                    export FOGSTATS=“1”;
                    fog.statusreporter $mac $web &
                    macWinSafe=echo $mac | sed 's/://g';
                    echo -n " * Preparing backup location…";[/CODE]

                    Second Add was around line 1032

                    [CODE] mkfifo /tmp/pigz1
                    partNum=${part:$diskLength};
                    echo " * Processing Partition: $part (${partNum})“;
                    sleep 1;
                    #Added from the fix for mps and mpa deploying to fix uploading status bar.
                    export FOGSTATS=“1”;
                    fog.statusreporter $mac $web &
                    imgpart=”${tmpBackupPath}/d1p${partNum}.img";
                    pigz -p $cores $PIGZ_COMP < /tmp/pigz1 > $imgpart &
                    #Added from the fix for mps and mpa deploying to fix uploading status bar.
                    #Added 2>/tmp/status.fog on the next line.
                    partimage save $part /tmp/pigz1 --volume=9900000000 -z0 -o -d -f3 -b -c 2>/tmp/status.fog
                    mv ${imgpart}.000 ${imgpart} 2>/dev/null
                    chmod -R 777 $tmpBackupPath 2>/dev/null[/CODE]

                    Third Add was around line 1076

                    [CODE] echo -n " * Preparing backup location…“;
                    #Added from the fix for mps and mpa deploying to fix uploading status bar.
                    export FOGSTATS=“1”;
                    fog.statusreporter $mac $web &
                    macWinSafe=echo $mac | sed 's/://g';
                    tmpBackupPath=”/images/$macWinSafe";[/CODE]

                    Fourth Add was around line 1123

                    [CODE] mkfifo /tmp/pigz1
                    partNum=${part:$diskLength};
                    echo " * Processing Partition: $part (${partNum})“;
                    sleep 1;
                    #Added from the fix for mps and mpa deploying to fix uploading status bar.
                    export FOGSTATS=“1”;
                    fog.statusreporter $mac $web &
                    imgpart=”${tmpBackupPath}/d${intDisk}p${partNum}.img";
                    pigz -p $cores $PIGZ_COMP < /tmp/pigz1 > $imgpart &
                    #Added from the fix for mps and mpa deploying to fix uploading status bar.
                    #Added 2>/tmp/status.fog on the next line.
                    partimage save $part /tmp/pigz1 --volume=9900000000 -z0 -o -d -f3 -b -c 2>/tmp/status.fog
                    mv ${imgpart}.000 ${imgpart}
                    chmod -R 777 $tmpBackupPath[/CODE]

                    1 Reply Last reply Reply Quote 0
                    • X
                      x23piracy
                      last edited by May 19, 2013, 12:36 AM

                      Hey Jason,

                      can you upload your finished file please? my try causes the machine to reboot 😞
                      I have fog 0.32 do you use the same?
                      Since i cannot be sure if the position you mentioned are right all my trys went into a reboot of the test machine.

                      Greetz X23

                      ║▌║█║▌│║▌║▌█

                      1 Reply Last reply Reply Quote 0
                      • J
                        Jason Garrison
                        last edited by May 20, 2013, 1:29 PM

                        This is my fog file from tftpboot\fog\images\ and within the extracted init.gz file. I think it only has the Multi fix for the progress bar with uploading and downloading. Just use the line numbers I put to find where I have my code put in. Hopefully this helps, it is nice to have the multi progress bar in the GUI for uploading images now.

                        [url=“/_imported_xf_attachments/0/321_fog.zip?:”]fog.zip[/url]

                        1 Reply Last reply Reply Quote 0
                        • X
                          x23piracy
                          last edited by May 20, 2013, 3:51 PM

                          Hi,

                          [quote=“Jason Garrison, post: 12228, member: 1188”]This is my fog file…[/quote]

                          thank you jason 😄
                          I will compare the original file against yours with a comparision tool and post the accurate changes in form of search for xy append before or something so no confusion should happen 🙂

                          Greetz X23

                          ║▌║█║▌│║▌║▌█

                          1 Reply Last reply Reply Quote 0
                          • X
                            x23piracy
                            last edited by May 20, 2013, 4:36 PM

                            Hi,

                            these are the changes i found:

                            [B]==========================Change 1==========================[/B]
                            [IMG]http://i.imgur.com/Czb26ws.png[/IMG]

                            [B]==========================Change 2==========================[/B]
                            [IMG]http://i.imgur.com/WWLRp1D.png[/IMG]

                            [B]==========================Change 3==========================[/B]
                            [IMG]http://i.imgur.com/ySnh8cj.png[/IMG]

                            [B]==========================Change 4==========================[/B]
                            [IMG]http://i.imgur.com/wlHPUlK.png[/IMG]

                            [B]==========================Change 5==========================[/B]
                            [IMG]http://i.imgur.com/0N6GeHC.png[/IMG]

                            Anyway your file works 🙂

                            Greetz X23

                            ║▌║█║▌│║▌║▌█

                            1 Reply Last reply Reply Quote 0
                            • T
                              The Dealman
                              last edited by Jul 10, 2013, 8:50 PM

                              [quote=“x23piracy, post: 12240, member: 3982”]Hi,

                              these are the changes i found:

                              [B]==========================Change 1==========================[/B]
                              [IMG]http://i.imgur.com/Czb26ws.png[/IMG]

                              [B]==========================Change 2==========================[/B]
                              [IMG]http://i.imgur.com/WWLRp1D.png[/IMG]

                              [B]==========================Change 3==========================[/B]
                              [IMG]http://i.imgur.com/ySnh8cj.png[/IMG]

                              [B]==========================Change 4==========================[/B]
                              [IMG]http://i.imgur.com/wlHPUlK.png[/IMG]

                              [B]==========================Change 5==========================[/B]
                              [IMG]http://i.imgur.com/0N6GeHC.png[/IMG]

                              Anyway your file works 🙂

                              Greetz X23[/quote]

                              Fog 1.5.9 running currently on all servers

                              1 Reply Last reply Reply Quote 0
                              • T
                                The Dealman
                                last edited by Jul 10, 2013, 8:54 PM

                                What’s suppose to be in the init.gz file? I see the init file inside of mine, am i suppose to download the fog.zip file & overwrite the init.gz file ? or do i take out the fog file & add that to my init.gz file?

                                As you can see i’m confused on this one

                                Fog 1.5.9 running currently on all servers

                                1 Reply Last reply Reply Quote 0
                                • S
                                  smshahan
                                  last edited by Jul 31, 2013, 3:18 PM

                                  [quote=“The Dealman, post: 12945, member: 53”]What’s suppose to be in the init.gz file? I see the init file inside of mine, am i suppose to download the fog.zip file & overwrite the init.gz file ? or do i take out the fog file & add that to my init.gz file?

                                  As you can see i’m confused on this one[/quote]

                                  Did you figure this out or do you still need assistance?

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    The Dealman
                                    last edited by Jul 31, 2013, 6:06 PM

                                    [quote=“smshahan, post: 13196, member: 2574”]Did you figure this out or do you still need assistance?[/quote]

                                    I haven’t gotten it to work so i put init.gz file back how it was.

                                    Fog 1.5.9 running currently on all servers

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      The Dealman
                                      last edited by Aug 3, 2013, 12:46 AM

                                      [quote=“smshahan, post: 13196, member: 2574”]Did you figure this out or do you still need assistance?[/quote]

                                      Do you have this working?

                                      Fog 1.5.9 running currently on all servers

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        smshahan
                                        last edited by Aug 5, 2013, 9:36 PM

                                        [quote=“The Dealman, post: 13235, member: 53”]Do you have this working?[/quote]

                                        Haven’t fully tested my changes out but I’ll get back to you possibly Wednesday if I get this working. I’ve been busy with another fog server.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          smshahan
                                          last edited by Aug 7, 2013, 8:04 PM

                                          [quote=“The Dealman, post: 13235, member: 53”]Do you have this working?[/quote]

                                          Okay. Its working now.

                                          This is what I did. Logged in via putty and did the following.
                                          [LIST]
                                          []cd /tftpboot/fog/images
                                          [
                                          ]gunzip init.gz
                                          []mkdir initmountdir
                                          [
                                          ]mount -o loop init initmountdir
                                          [/LIST]
                                          Connected via WinSCP and navigated to /tftpboot/fog/images/initmountdir/bin

                                          What I did was simply copy the new fog file ( that was shared) over to the location of my old one( /tftpboot/fog/images/initmountdir/bin) and overwrote that file. I also made a copy of my old fog file just in case it didn’t work.

                                          After that I went back to putty and did the following.

                                          [LIST]
                                          []cd /tftpboot/fog/images
                                          [
                                          ]umount initmountdir/
                                          []rmdir initmountdir
                                          [
                                          ]gzip init
                                          [/LIST]
                                          For some reason if I tried copying just the code from the new to the old it would either reboot continuously or give me a big blank nothing. There is a missing step I’m sure in that list or maybe a semicolon out of place.

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

                                          152

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project