summaryrefslogtreecommitdiff
path: root/gdisk.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-01-28 21:10:52 -0500
committersrs5694 <srs5694@users.sourceforge.net>2010-01-28 21:10:52 -0500
commit0a6973119c9e9984ad47a6da3231e8d16f996c5c (patch)
tree456b81b56315eca6ac64688db34cbb0a25a87f41 /gdisk.cc
parent91544e13fb56ef339277a8f73f761ff004b2e74f (diff)
downloadsgdisk-0a6973119c9e9984ad47a6da3231e8d16f996c5c.tar.gz
Nearing 0.6.2 release; Windows version now works.
Diffstat (limited to 'gdisk.cc')
-rw-r--r--gdisk.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdisk.cc b/gdisk.cc
index 2329fac..3dddc9e 100644
--- a/gdisk.cc
+++ b/gdisk.cc
@@ -34,6 +34,17 @@ int main(int argc, char* argv[]) {
if (argc == 2) { // basic usage
if (SizesOK()) {
+#ifdef _WIN32
+ cout << "\a************************************************************************\n"
+ << "Most versions of Windows cannot boot from a GPT disk, and most varieties\n"
+ << "prior to Vista cannot read GPT disks. Therefore, you should exit now\n"
+ << "unless you understand the implications of converting MBR to GPT, editing\n"
+ << "an existing GPT disk, or creating a new GPT disk layout!\n"
+ << "************************************************************************\n\n";
+ cout << "Are you SURE you want to continue? ";
+ if (GetYN() != 'Y')
+ exit(0);
+#endif
doMore = theGPT.LoadPartitions(argv[1]);
if (doMore) {
MainMenu(argv[1], &theGPT);