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

    Skipping chkdsk?

    Scheduled Pinned Locked Moved
    General
    5
    27
    11.0k
    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.
    • A
      astrouga
      last edited by

      Can someone provide more details here? Chkdsk never runs after I image any systems, unless something has gone wrong.

      I generally build a Win7 image on one computer in audit mode, add all the drivers for sysprep, shrink the partition down to the lowest drive size of the computer I keep in inventory, then do a defrag and chkdsk before I sysprep and pull the image. Works all the time and across every kind of hardware I’ve tried.

      astrouga

      1 Reply Last reply Reply Quote 0
      • K
        Kevin
        last edited by

        With FOG .32 if you were to do a quick image, it forces a check disk on restart, regardless of how the image was setup. If you were to go through and setup the machine to deploy an image from the webserver, it’ll run just fine without running check disk. The file that jdd49 made, the bypass, would be similar to doing a quick image. It does work really well, and has saved us a lot of time doing mass imaging, but due to the mass imaging, that’s why I was asked if the check disk could be removed. And quite honestly, I have no idea where to start to even look into modifying the .32 (or ,33) init file.

        "The quieter you become, the more you are able to hear"

        New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

        1 Reply Last reply Reply Quote 0
        • A
          astrouga
          last edited by

          Ah, I see. I don’t use the quick image much.

          Modifying the init image is not a big deal. Just make a backup copy of the file before you start.

          I just took a quick peek. There is a fog file in /bin with a “RUN_CHKDSK” setting and some conditions. I’ll see if I can modify it and get it to never do a checkdisk. Give me a day to take a look. I won’t have a chance to try it today.

          astrouga

          1 Reply Last reply Reply Quote 0
          • A
            astrouga
            last edited by

            I was digging around in the init image, trying to track down the “chkdsk” variable that seems to control this and eventually discovered that is is trying to get this setting from the web management! So, try this:

            Other Information --> Fog Settings --> General Settings --> FOG_DISABLE_CHKDSK =1.

            1 skips chkdsk, 0 runs it. Mine was set to 1 already. It seems that this is an “experimental feature” in .32.
            Let me know if that works for you. If not, I’ll go back into the init image. I think I know what to adjust now.

            –astrouga

            1 Reply Last reply Reply Quote 0
            • D
              dvlsg
              last edited by

              I also have this “problem”. my FOG_DISABLE_CHKDSK is set to 1 in the webserver, but it doesn’t actually skip the chkdsk on a quick image. I haven’t had the chance to dig around in the init yet, but let us know if you find anything!

              1 Reply Last reply Reply Quote 0
              • K
                Kevin
                last edited by

                Personally, I would like to see what jdd49 changed in the .29 bypass file and replicate it once .33 comes out. AFAIK the new version of FOG used Part Image? It would be nice to run the bypass with the new “imaging software”.

                astrouga, what are you using the modify the file. I tend to use gedit to modify my files but init is to big to open. Are you using something else like Vi?

                "The quieter you become, the more you are able to hear"

                New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

                1 Reply Last reply Reply Quote 0
                • D
                  dvlsg
                  last edited by

                  [quote=“Kevin, post: 4871, member: 3”]Personally, I would like to see what jdd49 changed in the .29 bypass file and replicate it once .33 comes out. AFAIK the new version of FOG used Part Image? It would be nice to run the bypass with the new “imaging software”.

                  astrouga, what are you using the modify the file. I tend to use gedit to modify my files but init is to big to open. Are you using something else like Vi?[/quote]

                  my guess would be he’s mounting it to a temporary folder. the process is actually documented here:

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

                  1 Reply Last reply Reply Quote 0
                  • K
                    Kevin
                    last edited by

                    Interesting, never knew that existed 🙂 Thanks

                    "The quieter you become, the more you are able to hear"

                    New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

                    1 Reply Last reply Reply Quote 0
                    • A
                      astrouga
                      last edited by

                      [quote=“Kevin, post: 4876, member: 3”]Interesting, never knew that existed 🙂 Thanks[/quote]
                      I didn’t either. It seems it might not work though. 🙂

                      astrouga

                      1 Reply Last reply Reply Quote 0
                      • A
                        astrouga
                        last edited by

                        [quote=“Kevin, post: 4871, member: 3”]
                        astrouga, what are you using the modify the file. I tend to use gedit to modify my files but init is to big to open. Are you using something else like Vi?[/quote]

                        I’m using the “by hand” method in the link dvlsg mentioned:
                        [url]http://www.fogproject.org/wiki/index.php/Modifying_the_Init_Image[/url]

                        BTW, I realized a long time ago that it takes mere minutes to do a complete reinstall of a fog sever (minus images and such). So I just take a spare system set it up with ubuntu and the latest version of fog. Whenever I want to test a system, I just take my fog server offline and bring the test one up. I don’t have to worry about whacking my working server that way and I don’t have to go to the trouble of backing it all up.

                        astrouga

                        1 Reply Last reply Reply Quote 0
                        • D
                          dvlsg
                          last edited by

                          [quote=“astrouga, post: 4885, member: 907”]
                          BTW, I realized a long time ago that it takes mere minutes to do a complete reinstall of a fog sever (minus images and such). So I just take a spare system set it up with ubuntu and the latest version of fog. Whenever I want to test a system, I just take my fog server offline and bring the test one up. I don’t have to worry about whacking my working server that way and I don’t have to go to the trouble of backing it all up.
                          astrouga[/quote]

                          mmmhm. i do the same thing, actually. i have FOG running as a VM in VMWare, and i have a copy i can test out.

                          i’m just glad i know where the chkdsk’s are coming from. i didn’t realize they were a scheduled part of the quick image until i saw this thread, haha.

                          1 Reply Last reply Reply Quote 0
                          • A
                            astrouga
                            last edited by

                            Has anyone tried setting “FOG_DISABLE_CHKDSK = 0” to see if chkdsk runs? I just finished a couple of quickimage tasks with the setting on “0” and it did not run a chkdsk. Of course, I didn’t try it with “1”.

                            astrouga

                            1 Reply Last reply Reply Quote 0
                            • D
                              dvlsg
                              last edited by

                              [quote=“astrouga, post: 4910, member: 907”]Has anyone tried setting “FOG_DISABLE_CHKDSK = 0” to see if chkdsk runs? I just finished a couple of quickimage tasks with the setting on “0” and it did not run a chkdsk. Of course, I didn’t try it with “1”.

                              astrouga[/quote]

                              I think you’re right - the setting seems backwards. I swapped FOG_DISABLE_CHKDSK to 0, and the quick image didn’t try running a chkdsk. I’ve only had a chance to try it once on one computer. I’ll see if I can push out a quick image to another.

                              1 Reply Last reply Reply Quote 0
                              • A
                                astrouga
                                last edited by

                                Thanks for testing that out quickly.

                                That is what I figured after looking at the code. There is a shorthand php if-then that seems to determine it. Let us know if your get to test it on another host.

                                astrouga

                                1 Reply Last reply Reply Quote 0
                                • D
                                  dvlsg
                                  last edited by

                                  Yup! Same result with any quick image I try. I still haven’t had a chance to look at the init myself, but I’m glad you’re finding it! Does the if-then selection seem backwards in the php?

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    astrouga
                                    last edited by

                                    Yeah, perhaps they whole “DISABLE”/“ENABLE” thing got him confused. I think it would be easier for most people to go edit the php for the FOG SETTINGS page and change the FOG_DISABLE_CHKDSK to FOG_ENABLE_CHKDSK. I’m not near my computer now, otherwise I’d insert the code and filename here. Tomorrow I guess.

                                    astrouga

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dvlsg
                                      last edited by

                                      Yeah. I tend to swap between disables/enables as well as if/not-if and my own code gets thrown off like that all the time. I completely understand, haha.

                                      Easy fix though! Might want to report it as a bug, as well.

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        astrouga
                                        last edited by

                                        [quote=“dvlsg, post: 4938, member: 1186”]Yeah. I tend to swap between disables/enables as well as if/not-if and my own code gets thrown off like that all the time. I completely understand, haha.

                                        Easy fix though! Might want to report it as a bug, as well.[/quote]
                                        Good idea. I’ll do that. I think Blackout is re-writing that portion of the code in .33 anyway, but I’ll go ahead and do it.

                                        Cheers,

                                        astrouga

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dvlsg
                                          last edited by

                                          Oh, just a heads up (and I just noticed this) – we just ran a Full Host registration and Inventory, and that [I]did[/I] do a chkdsk, after I switched the setting in the console.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            astrouga
                                            last edited by

                                            Doh! Well who knows then. I’ll see if that happens for me as well.

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

                                            173

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project