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

Detect Windows Boot/Recovery/Reserved/System partitions reliably

Scheduled Pinned Locked Moved
General
3
7
1.7k
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.
  • S
    Sebastian Roth Moderator
    last edited by Oct 24, 2017, 6:20 AM

    Here is another thread were I would like to discuss an important topic with all of you. This time we want/need to figure out a way to detect those special Windows partitions more reliably.

    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

    1 Reply Last reply Reply Quote 0
    • Q
      Quazz Moderator @Sebastian Roth
      last edited by Quazz Oct 23, 2017, 6:58 AM Oct 23, 2017, 12:58 PM

      @sebastian-roth @george1421

      Is it possible to read the partition flags of NTFS partitions? I’m assuming the System Reserved partition will always get the same flags (which are different from the Windows partition and any generic data partition). In particular, it will have a System flag.

      After some googling, the Metafiles of NTFS might be interesting, particularily $Volume .

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth Oct 24, 2017, 12:41 AM Oct 24, 2017, 6:23 AM

        Moved @Quazz’s comment here as I think this is a good starting point for the discussion.

        What exactly do you mean by “partition flags”?

        Please all make sure we don’t mix up the wording on this topic.

        • There are partition IDs, like 0x7 for NTFS, though this doesn’t mean this partition is formated NTFS - it should be but those are two differnt things that don’t always match up.
        • Then we have filesystem label which essentially is a string set in the filesystem header. This is currently used for detecting those Windows partitions but it fails as soon as you install Windows in a foraign language.
        • And we have filesystem flags. Not sure if those are worth anything?

        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

        Q 1 Reply Last reply Oct 24, 2017, 8:02 AM Reply Quote 0
        • Q
          Quazz Moderator @Sebastian Roth
          last edited by Oct 24, 2017, 8:02 AM

          @sebastian-roth I mean the flags you can see in Windows disk manager. I’m guessing they’re filesystem flags? (such as Active, Boot, System, etc)

          I think particularily the System flag is interesting.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Nov 6, 2017, 9:31 PM

            What do you guys think of this: https://www.apt-browse.org/browse/ubuntu/xenial/main/i386/os-prober/1.70ubuntu3/file/usr/lib/os-probes/mounted/20microsoft

            Just stumbled upon this and thought this could be a nice start for us to improve detecting those special partitions.

            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

            G 1 Reply Last reply Nov 6, 2017, 10:04 PM Reply Quote 0
            • G
              george1421 Moderator @Sebastian Roth
              last edited by Nov 6, 2017, 10:04 PM

              @sebastian-roth I’m not to sure about that script (I only looked at it for a moment), but detecting the partitions by existing files may have value. The question would be could use identify unique files on each of the partitions to properly identify the partition? These files would need to be named uniquely global (i.e. not having natural language variants).

              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
              • S
                Sebastian Roth Moderator
                last edited by Nov 7, 2017, 5:15 AM

                @george1421 said in Detect Windows Boot/Recovery/Reserved/System partitions reliably:

                These files would need to be named uniquely global (i.e. not having natural language variants).

                Good point George! Though I am fairly sure this is the case for some files that are used for booting the OS like bootmgr and such files.

                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

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

                154

                Online

                12.1k

                Users

                17.3k

                Topics

                155.3k

                Posts
                Copyright © 2012-2024 FOG Project