summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.mingw18
-rw-r--r--NEWS4
-rw-r--r--README.Windows57
-rw-r--r--cgdisk.84
-rw-r--r--current.spec9
-rw-r--r--fixparts.84
-rw-r--r--gdisk.84
-rw-r--r--sgdisk.813
-rw-r--r--support.h2
9 files changed, 59 insertions, 56 deletions
diff --git a/Makefile.mingw b/Makefile.mingw
index e6da082..acfff64 100644
--- a/Makefile.mingw
+++ b/Makefile.mingw
@@ -1,8 +1,8 @@
-CC=/usr/bin/i686-pc-mingw32-gcc
-CXX=/usr/bin/i686-pc-mingw32-g++
-STRIP=/usr/bin/i686-pc-mingw32-strip
-CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -g
-CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -g
+CC=/usr/bin/i686-w64-mingw32-gcc
+CXX=/usr/bin/i686-w64-mingw32-g++
+STRIP=/usr/bin/i686-w64-mingw32-strip
+CFLAGS=-O2 -Wall -static -static-libgcc -static-libstdc++ -D_FILE_OFFSET_BITS=64 -g
+CXXFLAGS=-O2 -Wall -static -static-libgcc -static-libstdc++ -D_FILE_OFFSET_BITS=64 -g
#CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include -I/opt/local/include -g
LIB_NAMES=guid gptpart bsd parttypes attributes crc32 mbrpart basicmbr mbr gpt support diskio diskio-windows
MBR_LIBS=support diskio diskio-windows basicmbr mbrpart
@@ -15,13 +15,13 @@ DEPEND= makedepend $(CFLAGS)
all: gdisk fixparts
gdisk: $(LIB_OBJS) gdisk.o gpttext.o
- $(CXX) $(LIB_OBJS) gdisk.o gpttext.o -lrpcrt4 -static-libgcc -o gdisk.exe
+ $(CXX) $(CXXFLAGS) $(LIB_OBJS) gdisk.o gpttext.o -lrpcrt4 -static-libgcc -o gdisk32.exe
sgdisk: $(LIB_OBJS) sgdisk.o
- $(CXX) $(LIB_OBJS) sgdisk.o -lpopt -static-libgcc -o sgdisk.exe
+ $(CXX) $(CXXFLAGS) $(LIB_OBJS) sgdisk.o -lpopt -static-libgcc -o sgdisk32.exe
fixparts: $(MBR_LIB_OBJS) fixparts.o
- $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -static-libgcc -o fixparts.exe
+ $(CXX) $(CXXFLAGS) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -static-libgcc -o fixparts32.exe
lint: #no pre-reqs
lint $(SRCS)
@@ -30,7 +30,7 @@ clean: #no pre-reqs
rm -f core *.o *~ gdisk.exe sgdisk.exe
strip: #no pre-reqs
- $(STRIP) gdisk.exe fixparts.exe
+ $(STRIP) gdisk32.exe fixparts32.exe
# what are the source dependencies
depend: $(SRCS)
diff --git a/NEWS b/NEWS
index 9417b97..ef45f9d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,5 @@
-0.8.10 (?/??/2014):
--------------------
+0.8.10 (3/2/2014):
+------------------
- Added feature to sgdisk's -A/--attributes, -c/--change-name,
-t/--typecode, and -u/--partition-guid commands: If a -n/--new option
diff --git a/README.Windows b/README.Windows
index 3194838..3f49023 100644
--- a/README.Windows
+++ b/README.Windows
@@ -7,10 +7,13 @@ Most versions of Windows cannot boot from a GPT disk on BIOS-based
computers, and most varieties prior to Vista cannot read GPT disks. GPT
fdisk is a partition editor for GPT disks, and it will *AUTOMATICALLY
CONVERT* MBR disks to GPT form. Therefore, you should **NOT** use GPT fdisk
-on a Windows system unless you fully understand what you're doing! If you
-accidentally use GPT fdisk on your boot disk, or perhaps even on a data
-disk, you may find recovery to be very difficult! This caveat does not
-apply to FixParts, though; that tool works only on MBR disks.
+on a Windows system unless you fully understand what you're doing or are
+certain that your computer boots in EFI/UEFI mode! If you accidentally use
+GPT fdisk on a BIOS-mode boot disk, or perhaps even on a data disk, you may
+find recovery to be very difficult! Pre-installed Windows 8 and later
+systems almost always use GPT disks and boot in EFI/UEFI mode, but
+self-installed Windows 8 systems sometimes use BIOS mode. This caveat does
+not apply to FixParts, though; that tool works only on MBR disks.
***************************************************************************
Read the main README file for general information on the program, and read
@@ -32,16 +35,22 @@ attempted to do this myself, though. If you care to try, check
http://gnuwin32.sourceforge.net/packages/popt.htm for information on popt
for Windows.
-The FixParts program (fixparts.txt) is new with GPT fdisk 0.7.0. As
-described in the main README file, this program fixes certain partition
-table problems that can be created by buggy partitioning software. Windows
-seems to be unfazed by most such problems, but I've not done an extensive
-survey of Windows partitioning tools on this score.
+Beginning with version 0.8.10, I'm distributing both 32-bit and 64-bit
+binaries, which include the strings "32" or "64" in their names. The 32-bit
+binaries work fine on most versions of Windows, but some 64-bit
+installations of Windows 8 lack 32-bit support libraries and so may need
+the 64-bit binaries.
-To install the programs, copy the gdisk.exe and fixparts.exe program files
-to any directory on your path, such as C:\Windows. Alternatively, you can
-change to the program's directory or type its complete path whenever you
-use it.
+The FixParts program (fixparts32.exe and fixparts64.exe) is new with GPT
+fdisk 0.7.0. As described in the main README file, this program fixes
+certain partition table problems that can be created by buggy partitioning
+software. Windows seems to be unfazed by most such problems, but I've not
+done an extensive survey of Windows partitioning tools on this score.
+
+To install the programs, copy the gdisk32.exe and fixparts32.exe (or
+gdisk64.exe and fixparts64.exe) program files to any directory on your
+path, such as C:\Windows. Alternatively, you can change to the program's
+directory or type its complete path whenever you use it.
To use the programs, first launch a Command Prompt as the Administrator. To
do this, locate the Command Prompt program icon, right-click it, and select
@@ -59,7 +68,7 @@ Disks are numbered starting from 0, so the preceding command launches gdisk
on the first disk. The second way to specify a disk device is via a
harder-to-remember name:
-gdisk \\.\physicaldrive0
+gdisk32 \\.\physicaldrive0
This command is equivalent to the earlier one -- it edits the partition
table on the first physical disk. Change the number at the end of the
@@ -79,15 +88,6 @@ support of GPT, see Microsoft's Web page on the topic:
http://www.microsoft.com/whdc/device/storage/GPT_FAQ.mspx
-The GUIDs generated by gdisk to uniquely identify disks and partitions
-aren't "proper" GUIDs; they're purely random numbers. In practice, this has
-caused me no problems; however, it's conceivable that some disk utility
-will complain. The Unix versions of GPT fdisk generate proper GUIDs, as of
-version 0.6.3. Note that this limitation applies ONLY to the unique GUIDs
-for disks and partitions, not to the GUIDs used to identify partition type
-codes; those are standardized and are handled correctly by all versions of
-GPT fdisk.
-
The Windows binaries I've compiled do not support Unicode UTF-16LE GPT
partition names. This feature was added to version 0.7.1 of the software
for Linux, FreeBSD, and OS X, and with changes to some #ifndef lines in the
@@ -104,11 +104,12 @@ I have successfully compiled GPT fdisk using three different Windows
compilers:
- MinGW (http://www.mingw.org), and in particular its Linux-hosted
- cross-compiler -- Under Fedora Linux, the Makefile.mingw file enables
- compilation of the software via MinGW. (Type "make -f Makefile.mingw" to
- compile the software.) If you try to compile using another compiler or
- even using MinGW under Windows or another Linux variety, you may need to
- adjust the Makefile.mingw options.
+ cross-compiler -- Under Ubuntu Linux, the Makefile.mingw and
+ Makefile.mingw64 files enable compilation of the software via MinGW.
+ (Type "make -f Makefile.mingw" to compile 32-bit binaries, and "make -f
+ Makefile.mingw64" to compile 64-bit binaries.) If you try to compile
+ using another compiler or even using MinGW under Windows or another Linux
+ variety, you may need to adjust the Makefile.mingw options.
- Microsoft Visual C++ 2008 Express
(http://www.microsoft.com/express/Windows/) -- This compiler requires a
diff --git a/cgdisk.8 b/cgdisk.8
index bb20d71..53e0d4d 100644
--- a/cgdisk.8
+++ b/cgdisk.8
@@ -1,6 +1,6 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "CGDISK" "8" "0.8.9" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "CGDISK" "8" "0.8.10" "Roderick W. Smith" "GPT fdisk Manual"
.SH "NAME"
cgdisk \- Curses-based GUID partition table (GPT) manipulator
.SH "SYNOPSIS"
@@ -276,7 +276,7 @@ Write data. Use this command to save your changes.
.SH "BUGS"
-As of February 2014 (version 0.8.9), \fBcgdisk\fR should be considered
+As of March 2014 (version 0.8.10), \fBcgdisk\fR should be considered
beta software. Although the underlying partition manipulation code is much
older, the \fBcgdisk\fR ncurses user interface is brand new with GPT fdisk
version 0.8.0. Known bugs and limitations include:
diff --git a/current.spec b/current.spec
index 8beaeaa..af26193 100644
--- a/current.spec
+++ b/current.spec
@@ -1,11 +1,12 @@
Summary: GPT partitioning and MBR repair software
Name: gptfdisk
-Version: 0.8.9
+Version: 0.8.10
+
Release: 1%{?dist}
License: GPLv2
URL: http://www.rodsbooks.com/gdisk
Group: Applications/System
-Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.9.tar.gz
+Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.10.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
@@ -80,5 +81,5 @@ provides a few additional partition manipulation features.
%changelog
-* Mon Feb 17 2014 R Smith <rodsmith@rodsbooks.com> - 0.8.9
-- Created spec file for 0.8.9 release
+* Sun Mar 2 2014 R Smith <rodsmith@rodsbooks.com> - 0.8.10
+- Created spec file for 0.8.10 release
diff --git a/fixparts.8 b/fixparts.8
index b7b532d..d840df2 100644
--- a/fixparts.8
+++ b/fixparts.8
@@ -1,6 +1,6 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "FIXPARTS" "8" "0.8.9" "Roderick W. Smith" "FixParts Manual"
+.TH "FIXPARTS" "8" "0.8.10" "Roderick W. Smith" "FixParts Manual"
.SH "NAME"
fixparts \- MBR partition table repair utility
.SH "SYNOPSIS"
@@ -202,7 +202,7 @@ see a summary of available options.
.PP
.SH "BUGS"
-As of February 2014 (version 0.8.9), \fBfixparts\fR
+As of March 2014 (version 0.8.10), \fBfixparts\fR
should be considered beta software. Known bugs and limitations include:
.TP
diff --git a/gdisk.8 b/gdisk.8
index 9109423..5cbaef5 100644
--- a/gdisk.8
+++ b/gdisk.8
@@ -1,6 +1,6 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "GDISK" "8" "0.8.9" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "GDISK" "8" "0.8.10" "Roderick W. Smith" "GPT fdisk Manual"
.SH "NAME"
gdisk \- Interactive GUID partition table (GPT) manipulator
.SH "SYNOPSIS"
@@ -561,7 +561,7 @@ entering data. When only one option is possible, \fBgdisk\fR
usually bypasses the prompt entirely.
.SH "BUGS"
-As of February 2014 (version 0.8.9), \fBgdisk\fR
+As of March 2014 (version 0.8.10), \fBgdisk\fR
should be considered beta software. Known bugs and limitations include:
.TP
diff --git a/sgdisk.8 b/sgdisk.8
index 4fb6507..8bca538 100644
--- a/sgdisk.8
+++ b/sgdisk.8
@@ -1,6 +1,6 @@
.\" Copyright 2011-2013 Roderick W. Smith (rodsmith@rodsbooks.com)
.\" May be distributed under the GNU General Public License
-.TH "SGDISK" "8" "0.8.9" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "SGDISK" "8" "0.8.10" "Roderick W. Smith" "GPT fdisk Manual"
.SH "NAME"
sgdisk \- Command\-line GUID partition table (GPT) manipulator for Linux and Unix
.SH "SYNOPSIS"
@@ -185,9 +185,8 @@ will reflect GPT fdisk's first\-pass interpretation of the GPT.
Change the GPT name of a partition. This name is encoded as a UTF\-16
string, but proper entry and display of anything beyond basic ASCII values
requires suitable locale and font support. For the most part, Linux ignores
-the partition name, but it may be important in some OSes. GPT fdisk sets
-a default name based on the partition type code. If you want to set a name
-that includes a space, enclose it in quotation marks, as in
+the partition name, but it may be important in some OSes. If you want to
+set a name that includes a space, enclose it in quotation marks, as in
\fIsgdisk \-c 1:"Sample Name" /dev/sdb\fR. Note that the GPT name of a
partition is distinct from the filesystem name, which is encoded in the
filesystem's data structures.
@@ -329,7 +328,9 @@ or \fI\fB\-200M\fR\fR to specify a point 200MiB before the last available
sector. A start or end value of 0 specifies the default value, which is the
start of the largest available block for the start sector and the end of
the same block for the end sector. A partnum value of 0 causes the program
-to use the first available partition number.
+to use the first available partition number. Subsequent uses of the
+\fI\-A\fR, \fI\-c\fR, \fI\-t\fR, and \fI\-u\fR options may also use
+\fI0\fR to refer to the same partition.
.TP
.B \-N, \-\-largest\-new=num
@@ -490,7 +491,7 @@ sgdisk, but may with gdisk)
Disk replication operation (-R) failed
.SH "BUGS"
-As of February 2014 (version 0.8.9), \fBsgdisk\fR
+As of March 2014 (version 0.8.10), \fBsgdisk\fR
should be considered beta software. Known bugs and limitations include:
.TP
diff --git a/support.h b/support.h
index 51ae414..7f691c3 100644
--- a/support.h
+++ b/support.h
@@ -8,7 +8,7 @@
#ifndef __GPTSUPPORT
#define __GPTSUPPORT
-#define GPTFDISK_VERSION "0.8.9.3"
+#define GPTFDISK_VERSION "0.8.10"
#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__)
// Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64