mount /unmount causes reboot

Ext2Fsd
2004-11-14
2013-04-09
  • Nobody/Anonymous

    It seems that once you've mounted an ext2fs filesystem under Windows (XP) you can't unmount it without causing a kernel exception (and thus reboot).

    Beware. (Tested with ext2fsd 0.22b on a real partition and a file image).

     
    • Nobody/Anonymous

      specifically the DISMOUNT ioctl causes a driver panic - if you comment that out, and move the DefineDosDevice up (after the LOCK_VOLUME ioctl) things work.

      Also - it is important that there is a UNLOCK_VOLUME ioctl after the definedosdevice.

      I.e.

      CreateFile - grab a handle to the partition
      LOCK_VOLUME - prevent further activity
      DefineDosDevice - remove map of partition to drive
      UNLOCK_VOLUME - let VFS things can proceed
      CloseHandle - close (last) handle to device

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks