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

nvme0n1p2 fatclone c: is not in a valid state

Scheduled Pinned Locked Moved
FOG Problems
4
42
17.6k
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.
  • P
    Psycholiquid Testers @george1421
    last edited by Mar 14, 2016, 6:04 PM

    @george1421 I am at the end of believing that. If you watch the boot up process it doesn’t actually uefi boot it immediately spins the dots and the logon comes on. It is hard to tell though due to the nvme drive being so fast.

    G 1 Reply Last reply Mar 14, 2016, 6:08 PM Reply Quote 0
    • G
      george1421 Moderator @Psycholiquid
      last edited by Mar 14, 2016, 6:08 PM

      @Psycholiquid Sorry I was in error, this is on the upload side and what I was reading about was actually after the image was deployed you would have to run through some kind of disk fix to basically delete the hibernation file that was in use when the system was captured. I’m still trying to find that article (I read way to much stuff and remember way to little).

      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!

      P 1 Reply Last reply Mar 14, 2016, 6:14 PM Reply Quote 2
      • P
        Psycholiquid Testers @george1421
        last edited by Mar 14, 2016, 6:14 PM

        @george1421 Also I have run chkdsk multiple times and it doesn’t help. Seems to be that same partition over and over. windows sucks, I don’t think they even thought about this when they designed it. In order ot get my vol license image onto a surface I have to upgrade the surface OS, I can’t just install it. So that means I have to do reg hacks and such just to be able to sysprep it. I have heard the same complaints form people who use MDT also, so its not like they are trying to squeeze people out.

        1 Reply Last reply Reply Quote 0
        • P
          Psycholiquid Testers
          last edited by Mar 14, 2016, 6:15 PM

          how do I get debug to show up in the FOG menu?

          P 1 Reply Last reply Mar 14, 2016, 6:16 PM Reply Quote 0
          • P
            Psycholiquid Testers @Psycholiquid
            last edited by Mar 14, 2016, 6:16 PM

            @Psycholiquid nvm I found it.

            1 Reply Last reply Reply Quote 0
            • P
              Psycholiquid Testers @Tom Elliott
              last edited by Sebastian Roth Mar 14, 2016, 1:05 PM Mar 14, 2016, 6:56 PM

              @Tom-Elliott This is what I was afraid of, the disk is GPT because that is the UEFI way it was setup. Which is which way most computers are going (All Surfaces are this way)

              So where do I go from here?

              0_1457981772801_IMG_0622.JPG

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Mar 14, 2016, 7:17 PM

                @Psycholiquid While you are in debug mode, can you run fsck /dev/nvme0n1p2

                Is this the exact error you are seeing in partclone “Filesystem isn’t in valid state. May be it is not cleanly unmounted.”???

                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

                P 2 Replies Last reply Mar 14, 2016, 7:19 PM Reply Quote 0
                • P
                  Psycholiquid Testers
                  last edited by Mar 14, 2016, 7:19 PM

                  fsck.vfat: not found
                  error 2 while executing fsck.vfat /dev/nvme0n1p2

                  1 Reply Last reply Reply Quote 1
                  • P
                    Psycholiquid Testers @Sebastian Roth
                    last edited by Mar 14, 2016, 7:19 PM

                    @Sebastian-Roth Yes that is the error I am seeing in partclone.

                    1 Reply Last reply Reply Quote 1
                    • P
                      Psycholiquid Testers @Sebastian Roth
                      last edited by Mar 14, 2016, 7:22 PM

                      @Sebastian-Roth I can tell you that is the EFI partition of windows that is used to boot it, but I have made sure I am shutting it down cleanly. I have even set the sysprep to shutdown rather than reboot.

                      1 Reply Last reply Reply Quote 1
                      • S
                        Sebastian Roth Moderator
                        last edited by Mar 14, 2016, 7:24 PM

                        @Psycholiquid Are you able to mount the partition in debug mode?

                        mkdir -p /mnt
                        mount -t vfat /dev/nvme0n1p2 /mnt
                        ls -al /mnt
                        umount /mnt
                        

                        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

                        P 1 Reply Last reply Mar 14, 2016, 7:26 PM Reply Quote 0
                        • P
                          Psycholiquid Testers @Sebastian Roth
                          last edited by Mar 14, 2016, 7:26 PM

                          @Sebastian-Roth yes it does mount and I can see the file structure

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott @Psycholiquid
                            last edited by Mar 14, 2016, 8:25 PM

                            @Psycholiquid What if you add 1 to the d1.fixed_size_partitions file? Will it work then? It looks like it’s growing the EE partition when it really shouldn’t be.

                            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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

                            P 1 Reply Last reply Mar 15, 2016, 11:26 AM Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by Sebastian Roth Mar 14, 2016, 5:54 PM Mar 14, 2016, 11:49 PM

                              @Psycholiquid Looking through the partclone code I found out that there is a thing called “clean shutdown bit/flag” within the FAT (file allocation table). This sounds like it could be related to the NTFS dirty bit but is definitely a whole lot different - after all it’s FAT not NTFS. When searching the web for FAT and dirty bit a lot of people point you to the 0x41 byte (0x25 fog FAT16) of the partition which seams to be some kind of mount/fs-check/dirty marker as well but it’s definitely not the one partclone is complaining about! The one I found is relevant sits in the second reserved FAT entry. This is the best/simplest description I could find - and here another one. With that information I was able to replicate the error message you are seeing. The problem is I used a hex editor and dd to modify this on disk - so I don’t have an easy solution yet. Interestingly enough - even if partclone complains about it I could still mount the filesystem (just as you could). So I have no idea why partclone is checking this flag (where mount is not!) and who/what set this on your system?!?

                              I haven’t found any tool that would set/unset this “clean shutdown flag” for you. Linux fsck only un/sets the dirty bit AFAIK. Some say you can use windows chkdsk tool but I am not able to confirm this. In your case nvme0n1p2 is the EFI boot partition and I am not sure if you are able to run chkdsk on this partition from within a running windows system?!

                              I guess we could come up with some C-code to do this for you. Here is a nice example on how to read that flag.

                              I wonder if anyone else has looked into this yet? Is anyone aware of the difference between dirty bit and clean shutdown bit here in the forums??

                              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 P 2 Replies Last reply Mar 15, 2016, 2:38 AM Reply Quote 0
                              • G
                                george1421 Moderator @Sebastian Roth
                                last edited by Mar 15, 2016, 2:38 AM

                                @Sebastian-Roth While I don’t have an answer for you on the shutdown part, I wonder if the developers of partclone would have checked this flag on a fat partition, just because of the nature of the fat I would suspect its not necessary. They must do this for a reason. Maybe they can provide a switch to ignore or even reset this bit in the disk structure if possible. Windows 10 is here to stay so they will run across this issue more often than not.

                                I wonder if the state of this flag could be dependent on the issue I posted before (from memory). I wonder if when the system is sysprepp’d instead of shutdown you pick reboot and then power off the device when it is working through post before it boots. (it may be impossible to catch because of the speed of the system).

                                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!

                                P 1 Reply Last reply Mar 15, 2016, 11:11 AM Reply Quote 0
                                • P
                                  Psycholiquid Testers @Sebastian Roth
                                  last edited by Psycholiquid Mar 15, 2016, 5:11 AM Mar 15, 2016, 11:08 AM

                                  @Sebastian-Roth I was trying the chkdsk this morning within windows I had to add a drive letter to the partition. Not sure if it will work yet, taking a raw image of the machine (of course that works but not efficient) to make the powers that be happy.

                                  chkdsk is what I usually did to any drive that gave this problem. Let me roll it back to the current bad state and try that and I will let you know the results.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    Psycholiquid Testers @george1421
                                    last edited by Psycholiquid Mar 15, 2016, 5:12 AM Mar 15, 2016, 11:11 AM

                                    @george1421 I tried both reboot and shutdown, I am not sure catching it while it is EFI booting would have an effect, since it is already flagged as soon as it goes down. I think it is getting flagged during the sysprep due to I have rebooted it multiple times. Or maybe even being flagged during the switch to Audit mode. I am attempting the clear from within windows this morning to see if it helps.

                                    1 Reply Last reply Reply Quote 1
                                    • P
                                      Psycholiquid Testers @Tom Elliott
                                      last edited by Mar 15, 2016, 11:26 AM

                                      @Tom-Elliott said:

                                      @Psycholiquid What if you add 1 to the d1.fixed_size_partitions file? Will it work then? It looks like it’s growing the EE partition when it really shouldn’t be.

                                      Not real sure what your talking about here.

                                      T 1 Reply Last reply Mar 15, 2016, 11:26 AM Reply Quote 0
                                      • T
                                        Tom Elliott @Psycholiquid
                                        last edited by Mar 15, 2016, 11:26 AM

                                        @Psycholiquid I kept thinking it was download for some reason.

                                        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                        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

                                        P 1 Reply Last reply Mar 15, 2016, 11:27 AM Reply Quote 0
                                        • P
                                          Psycholiquid Testers @Tom Elliott
                                          last edited by Mar 15, 2016, 11:27 AM

                                          @Tom-Elliott Ahh ok.

                                          G 1 Reply Last reply Mar 15, 2016, 11:45 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            16/42
                                            Last post

                                          207

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.4k

                                          Posts
                                          Copyright © 2012-2024 FOG Project