D
Dietmar
Hi all,
I build a new driver disk.sys from the winddk XPSP1 which makes ALL
harddrives writeprotect.
I simple add ONE line to the disk.c driver in the Sources of Winddk SP1:
In
case IOCTL_DISK_IS_WRITABLE: {
status = STATUS_MEDIA_WRITE_PROTECTED;
break;
}
This simple sets ALL devices to writeprotect and that works, because
disk.sys starts earlier than for example ntfs.sys.
So I tell you the results:
It is impossible to boot Windows XP(E) from a device, that is complete
writeprotect.
XP(E) starts booting, but then BSOD.
I tested this on a FAT32 and on a NTFS partition and also an USB device
with Fat32, always gives BSOD.
Hihi, but then I do the following: I enabled on a FAT32 partition on a USB
stick EWF.
Suddenly, with the modified disk.sys, it boots to desktop. If you disable
EWF, this is possible, but on next boot you got again BSOD.
The same works NOT with NTFS.
So it is only possible to boot from a complete
writeprotect media with Fat32.
With Fat32, you can set a mechanical write protect switch, this is similar
to my modified
disk.sys.
Nice to hear from you
Dietmar
PS: I build with the brandnew WinDDK for Vista
in the same way a new disk.sys for Vista.
The behavior of Vista is exact like that from XP.
Vista tries to build a shadow harddisk, but with
NTFS starting from a complete write protect device gives BSOD. And with
EWF on Vista, there
are always 20 Bits written to the bootsector, so you never can use a
writeprotect switch on the bootdevice of Vista with NTFS, only for Vista
on Fat32, which I tested and it works.
I build a new driver disk.sys from the winddk XPSP1 which makes ALL
harddrives writeprotect.
I simple add ONE line to the disk.c driver in the Sources of Winddk SP1:
In
case IOCTL_DISK_IS_WRITABLE: {
status = STATUS_MEDIA_WRITE_PROTECTED;
break;
}
This simple sets ALL devices to writeprotect and that works, because
disk.sys starts earlier than for example ntfs.sys.
So I tell you the results:
It is impossible to boot Windows XP(E) from a device, that is complete
writeprotect.
XP(E) starts booting, but then BSOD.
I tested this on a FAT32 and on a NTFS partition and also an USB device
with Fat32, always gives BSOD.
Hihi, but then I do the following: I enabled on a FAT32 partition on a USB
stick EWF.
Suddenly, with the modified disk.sys, it boots to desktop. If you disable
EWF, this is possible, but on next boot you got again BSOD.
The same works NOT with NTFS.
So it is only possible to boot from a complete
writeprotect media with Fat32.
With Fat32, you can set a mechanical write protect switch, this is similar
to my modified
disk.sys.
Nice to hear from you
Dietmar
PS: I build with the brandnew WinDDK for Vista
in the same way a new disk.sys for Vista.
The behavior of Vista is exact like that from XP.
Vista tries to build a shadow harddisk, but with
NTFS starting from a complete write protect device gives BSOD. And with
EWF on Vista, there
are always 20 Bits written to the bootsector, so you never can use a
writeprotect switch on the bootdevice of Vista with NTFS, only for Vista
on Fat32, which I tested and it works.