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

    mkdir "Operation not permitted" on ntfs mounting point through fog.postdownloadscripts

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    4
    441
    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.
    • L
      lcis
      last edited by

      I’m launching a postdeployment script after PXE deployment, called in fog.postdownloadscript to upload Drivers from our server to the computer.
      Thus, I mount my ntfs partition with : mount /dev/sda4 /mnt
      Then I want to create a directory for my drivers : mkdir /mnt/Drivers
      Then copy the drivers into it.
      This operation works perfectly well when i’m doing it on a Debian live USB. But when I try to do it with the script with FOG, i get “cannot create directory /mnt/Drivers Operation not permitted”

      When I type mount, it says :
      “/dev/sda4 on /mnt type ntfs (rw,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=cp437,errors=continue,nft_zone_multiplier=1)”
      So I do have write authorization, and when i type “id” it says that I’m “uid=0(root) gid=0(root) groups=0(root)” so I should be allowed to write in it !

      Could you please help me solve this issue ?

      I’ve seen that there are scripts for this, detailed in this topic : https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed , but we already have the drivers on another server, with a different architecture, so I don’t want to move everything.

      george1421G 1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @lcis Use the command ntfs3g /dev/sda4 /mnt instead and it should give you proper write access to the NTFS filesystem.

        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

        L 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @lcis
          last edited by george1421

          @lcis said in mkdir "Operation not permitted" on ntfs mounting point through fog.postdownloadscripts:

          but we already have the drivers on another server, with a different architecture, so I don’t want to move everything.

          What does this mean beyond the obvious. What other architecture you mean, Cortex ARM? Do you have the directory exported with the same permission structure and no squash root like the fog server? We really need a bit more details to help you properly. Sebastian has the mount command spot on, but that is only have of the equation. The NFS server also needs a few things setup correctly too.

          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
          • L
            lcis @Sebastian Roth
            last edited by

            @sebastian-roth Thank you ! That does it perfectly. I didn’t know that command. Have a good day !

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

            267

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project