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

Windows 10 20H1 failing to mount C:\ directory

Scheduled Pinned Locked Moved
FOG Problems
2
6
485
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
    mperriello
    last edited by Aug 17, 2021, 2:15 PM

    Kinda new to FOG and working off of prior staff’s build. So we had FOG working to image our laptops for 4-5 years previous, and testing this year’s laptops with last years image worked fine. I am building this years base image and we tested deploying it and get the error messages:

    "rsync: mkdir "ntfs/Windows/Setup"failed: No such file or directory (2)
    rsync error: error in fileIO ( code 11)at main.c(664)[Reciever-3.1.3]

    then a box with (An error has been detected)

    Failed to copy setupComplete.cmd

    then we get no farther in post image.

    Can anyone help me interpret and fix this?

    Here is section of script :

    # make the driver path on the client side to copy drivers to below from
    # https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/7
    # create a directory to hang the Windows C: drive partition on in FOS
    # the 2>/dev/null below just redirects any errors from the mkdir command to null. i.e.
    # if the directory already exists, I don't want to know about it, just hide the error. Understand
    # that I could have tested if the directory already existed, but that takes more programming steps
    # I'm just going to try to create it and ignore the error if it already exists.
    mkdir /ntfs &>/dev/null
    
    # The ntfs-3g -o force,rw $part /ntfs is using the last partition FOG processed
    # instead of looping the partitions separately.
    # mount image (remember this is mounting partition [U][B]after[/B][/U] new image is deployed)
    ntfs-3g -o force,rw $part /ntfs
    
    # 2018.06.19 JRB:  via https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/7 (again)
    # this last bit of magic checks to see if the mntfail file exists and if it does then it means the mount
    # failed so there is no need to continue on with the script.
    mntRet="$?";
    if [ ! "$mntRet" = "0" ]; then
        echo "Failed to mount C:";
        # display what happened
        cat /tmp/mntfail;
        # give the reader a chance to see what the error was - 120 == 2 minutes, this can be changed
        sleep 120;
        # terminate the post install script
        exit 1;
    fi
    
    G 1 Reply Last reply Aug 17, 2021, 2:25 PM Reply Quote 0
    • G
      george1421 Moderator @mperriello
      last edited by Aug 17, 2021, 2:25 PM

      @mperriello That code looks from a very old post. There has been an improved post download script here: https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed

      I have not tried the post install script on 20h1 or 20h2 yet but this updated code should find the proper partition for windows.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      M 1 Reply Last reply Aug 17, 2021, 4:51 PM Reply Quote 1
      • M
        mperriello @george1421
        last edited by Aug 17, 2021, 4:51 PM

        @george1421, thanks for the help, we are 2 steps forward as we no longer error out and now the drivers are seen and added. I think the problem we are facing now is the unattended.xml file as when the system reboots it dumps us back in the OOBE. If I answer those I see my image, but it is not domained or renamed as has happened in previous years.

        G 1 Reply Last reply Aug 17, 2021, 5:21 PM Reply Quote 0
        • G
          george1421 Moderator @mperriello
          last edited by Aug 17, 2021, 5:21 PM

          @mperriello said in Windows 10 20H1 failing to mount C:\ directory:

          but it is not domained or renamed as has happened in previous years

          Are you using the FOG Client service to do this or the unattend.xml file? I use the unattend.xml file for that and not the fog service, fwiw.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          M 1 Reply Last reply Aug 17, 2021, 5:32 PM Reply Quote 0
          • M
            mperriello @george1421
            last edited by Aug 17, 2021, 5:32 PM

            @george1421 we are using the unattended XML

            G 1 Reply Last reply Aug 17, 2021, 6:27 PM Reply Quote 0
            • G
              george1421 Moderator @mperriello
              last edited by Aug 17, 2021, 6:27 PM

              @mperriello ok so you are using the post init script to update the unattend.xml file with the system name? I’m trying to understand where its falling down. In the link I provided you there should be a section of the code that calls.

              ${postdownpath}fog.updateunattend
              

              That line is commented out in the tutorial. Remove the hashtag from in front of that line and it should update your unattend.xml file. You may need to update the code if your unattend.xml file is not found in the standard location.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

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

              162

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project