diff options
Diffstat (limited to 'usr/src/man/man1m')
-rw-r--r-- | usr/src/man/man1m/Makefile | 17 | ||||
-rw-r--r-- | usr/src/man/man1m/mkntfs.1m | 319 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfscat.1m | 217 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfsclone.1m | 460 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfscluster.1m | 225 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfscmp.1m | 104 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfscp.1m | 199 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfsfix.1m | 81 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfsinfo.1m | 151 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfslabel.1m | 133 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfsls.1m | 204 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfsprogs.1m | 185 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfsresize.1m | 280 | ||||
-rw-r--r-- | usr/src/man/man1m/ntfsundelete.1m | 476 | ||||
-rw-r--r-- | usr/src/man/man1m/parted.1m | 347 |
15 files changed, 2 insertions, 3396 deletions
diff --git a/usr/src/man/man1m/Makefile b/usr/src/man/man1m/Makefile index ea1f042ff9..68c87a2c29 100644 --- a/usr/src/man/man1m/Makefile +++ b/usr/src/man/man1m/Makefile @@ -602,21 +602,8 @@ _MANFILES= 6to4relay.1m \ zpool.1m \ zstreamdump.1m -i386_MANFILES= lms.1m \ - parted.1m \ - mkntfs.1m \ - ntfscat.1m \ - ntfsclone.1m \ - ntfscluster.1m \ - ntfscmp.1m \ - ntfscp.1m \ - ntfsfix.1m \ - ntfsinfo.1m \ - ntfslabel.1m \ - ntfsls.1m \ - ntfsprogs.1m \ - ntfsresize.1m \ - ntfsundelete.1m +i386_MANFILES= \ + lms.1m sparc_MANFILES= cvcd.1m \ dcs.1m \ diff --git a/usr/src/man/man1m/mkntfs.1m b/usr/src/man/man1m/mkntfs.1m deleted file mode 100644 index 98921794ca..0000000000 --- a/usr/src/man/man1m/mkntfs.1m +++ /dev/null @@ -1,319 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH MKNTFS 1M "May 27, 2009" -.SH NAME -mkntfs \- create an NTFS file system -.SH SYNOPSIS -.LP -.nf -\fBmkntfs\fR [\fIoptions\fR] \fIdevice\fR [\fInumber_of_sectors\fR] -.fi - -.LP -.nf -\fBmkntfs\fR [\fB-C\fR] [\fB-c\fR \fIcluster-size\fR] [\fB-F\fR] [\fB-f\fR] [\fB-H\fR \fIheads\fR] [\fB-h\fR] [\fB-I\fR] - [\fB-L\fR \fIvolume-label\fR] [\fB-l\fR] [\fB-n\fR] [\fB-p\fR \fIpart-start-sect\fR] [\fB-Q\fR] [\fB-q\fR] - [\fB-S\fR \fIsectors-per-track\fR] [\fB-s\fR \fIsector-size\fR] [\fB-T\fR] [\fB-V\fR] [\fB-v\fR] - [\fB-z\fR \fImft-zone-multiplier\fR] [\fB--debug\fR] \fIdevice\fR [\fInumber-of-sectors\fR] -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBmkntfs\fR utility is used to create an NTFS file system on a device, -usually a disk partition, or file. The \fIdevice\fR operand is the special -file corresponding to the device; for example, \fB/dev/dsk/c0d0p0\fR. The -\fInumber-of-sectors\fR operand is the number of blocks on the device. If -omitted, \fBmkntfs\fR automatically figures the file system size. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.LP -Options are divided among basic, advanced, output, and help options, as listed -below. -.SS "Basic Options" -.sp -.ne 2 -.na -\fB\fB-C\fR, \fB--enable-compression\fR\fR -.ad -.sp .6 -.RS 4n -Enable compression on the volume. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--fast\fR or \fB-q\fR, \fB--quick\fR\fR -.ad -.sp .6 -.RS 4n -Perform quick (fast) format. This option skips both zeroing of the volume and -bad sector checking. -.RE - -.sp -.ne 2 -.na -\fB\fB-L\fR, \fB--label\fR \fIstring\fR\fR -.ad -.sp .6 -.RS 4n -Set the volume label for the filesystem to \fIstring\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-n\fR, \fB--no-action\fR\fR -.ad -.sp .6 -.RS 4n -Causes \fBmkntfs\fR to not actually create a file system, but display what it -would do if it were to create a file system. All formatting steps are carried -out except the actual writing to the device. -.RE - -.SS "Advanced Options" -.sp -.ne 2 -.na -\fB\fB-c\fR, \fB--cluster-size\fR \fIbytes\fR\fR -.ad -.sp .6 -.RS 4n -Specify the size of clusters in bytes. Valid cluster size values are powers of -two, with at least 256, and at most 65536, bytes per cluster. If omitted, -\fBmkntfs\fR uses 4096 bytes as the default cluster size. -.sp -Note that the default cluster size is set to be at least equal to the sector -size, as a cluster cannot be smaller than a sector. Also, note that values -greater than 4096 have the side effect that compression is disabled on the -volume. This is due to limitations in the NTFS compression algorithm used by -Windows. -.RE - -.sp -.ne 2 -.na -\fB\fB-F\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Force \fBmkntfs\fR to run, even if the specified device is not a block special -device, or appears to be mounted. -.RE - -.sp -.ne 2 -.na -\fB\fB-H\fR, \fB--heads\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Specify the number of heads. The maximum is 65535 (0xffff). If omitted, -\fBmkntfs\fR attempts to determine the number of heads automatically. If that -fails a default of 0 is used. Note that specifying \fInum\fR is required for -Windows to be able to boot from the created volume. -.RE - -.sp -.ne 2 -.na -\fB\fB-I\fR, \fB--no-indexing\fR\fR -.ad -.sp .6 -.RS 4n -Disable content indexing on the volume. This option is only meaningful on -Windows 2000 and later. Windows NT 4.0 and earlier ignore this, as they do not -implement content indexing. -.RE - -.sp -.ne 2 -.na -\fB\fB-p\fR, \fB--partition-start\fR \fIsector\fR\fR -.ad -.sp .6 -.RS 4n -Specify the partition start sector. The maximum is 4294967295 (2^32-1). If -omitted, \fBmkntfs\fR attempts to determine \fIsector\fRautomatically. If that -fails, a default of 0 is used. Note that specifying \fIsector\fR is required -for Windows to be able to boot from the created volume. -.RE - -.sp -.ne 2 -.na -\fB\fB-S\fR, \fB--sectors-per-track\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Specify the number of sectors per track. The maximum is 65535 (0xffff). If -omitted, mkntfs attempts to determine the number of sectors-per-track -automatically and if that fails a default of 0 is used. Note that -sectors-per-track is required for Windows to be able to boot from the created -volume. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR, \fB--sector-size\fR \fIbytes\fR\fR -.ad -.sp .6 -.RS 4n -Specify the size of sectors in bytes. Valid sector size values are 256, 512, -1024, 2048, and 4096. If omitted, \fBmkntfs\fR attempts to determine the -sector-size automatically. If that fails, a default of 512 bytes per sector is -used. -.RE - -.sp -.ne 2 -.na -\fB\fB-T\fR, \fB--zero-time\fR\fR -.ad -.sp .6 -.RS 4n -Fake the time to be 00:00:00 UTC, Jan 1, 1970, instead of the current system -time. This can be useful for debugging purposes. -.RE - -.sp -.ne 2 -.na -\fB\fB-z\fR, \fB--mft-zone-multiplier\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Set the master file table (MFT) zone multiplier, which determines the size of -the MFT zone to use on the volume. The MFT zone is the area at the beginning of -the volume reserved for the MFT, which stores the on-disk inodes (MFT records). -It is noteworthy that small files are stored entirely within the inode; thus, -if you expect to use the volume for storing large numbers of very small files, -it is useful to set the zone multiplier to a higher value. Although the MFT -zone is resized on the fly as required during operation of the NTFS driver, -choosing an optimal value reduces fragmentation. Valid values are \fB1\fR, -\fB2\fR, \fB3\fR, and \fB4\fR. The values have the following meaning: -.sp -.in +2 -.nf -MFT zone MFT zone size -multiplier (% of volume size) -1 12.5% (default) -2 25.0% -3 37.5% -4 50.0% -.fi -.in -2 -.sp - -.RE - -.SS "Output Options" -.sp -.ne 2 -.na -\fB\fB--debug\fR\fR -.ad -.sp .6 -.RS 4n -Includes the verbose output from the \fB-v\fR option, as well as additional -output useful for debugging \fBmkntfs\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Verbose execution. Errors are written to stderr, no output to stdout occurs at -all. Useful if \fBmkntfs\fR is run in a script. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Verbose execution. -.RE - -.SS "Help Options" -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each one. -.RE - -.sp -.ne 2 -.na -\fB\fB-l\fR, \fB--license\fR\fR -.ad -.sp .6 -.RS 4n -Display the \fBmkntfs\fR licensing information and exit. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Display the \fBmkntfs\fR version number and exit. -.RE - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBntfsprogs\fR(1M), \fBntfsresize\fR(1M), \fBntfsundelete\fR(1M), -\fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBmkntfs\fR was written by Anton Altaparmakov, Richard Russon, Erik Sornes and -Szabolcs Szakacsits. diff --git a/usr/src/man/man1m/ntfscat.1m b/usr/src/man/man1m/ntfscat.1m deleted file mode 100644 index 4166857579..0000000000 --- a/usr/src/man/man1m/ntfscat.1m +++ /dev/null @@ -1,217 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSCAT 1M "May 28, 2009" -.SH NAME -ntfscat \- display NTFS files and streams on the standard output -.SH SYNOPSIS -.LP -.nf -\fBntfscat\fR [\fIoptions\fR] \fIdevice\fR [\fIfile\fR] -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfscat\fR command reads a file or stream from an NTFS volume and -display the contents on the standard output. -.sp -.LP -The case of the filename passed to \fBntfscat\fR is ignored. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-a\fR, \fB--attribute\fR \fItype\fR\fR -.ad -.sp .6 -.RS 4n -Display the contents of a particular attribute type. By default, the unnamed -\fB$DATA\fR attribute will be shown. The attribute can be specified by a number -in decimal or hexadecimal, or by name. -.sp -.in +2 -.nf -Hex Decimal Name -0x10 16 "$STANDARD_INFORMATION" -0x20 32 "$ATTRIBUTE_LIST" -0x30 48 "$FILE_NAME" -0x40 64 "$OBJECT_ID" -0x50 80 "$SECURITY_DESCRIPTOR" -0x60 96 "$VOLUME_NAME" -0x70 112 "$VOLUME_INFORMATION" -0x80 128 "$DATA" -0x90 144 "$INDEX_ROOT" -0xA0 160 "$INDEX_ALLOCATION" -0xB0 176 "$BITMAP" -0xC0 192 "$REPARSE_POINT" -0xD0 208 "$EA_INFORMATION" -0xE0 224 "$EA" -0xF0 240 "$PROPERTY_SET" -0x100 256 "$LOGGED_UTILITY_STREAM" -.fi -.in -2 -.sp - -The attribute names can be specified without the leading dollar sign (\fB$\fR) -symbol. If you use the \fB$\fR symbol, you must quote the name to prevent the -shell from interpreting the name. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Overrides some sensible defaults, such as not using a mounted volume. Use this -option with caution. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--inode\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Specify a file by its inode number instead of its name. -.RE - -.sp -.ne 2 -.na -\fB\fB-n\fR, \fB--attribute-name\fR \fIname\fR\fR -.ad -.sp .6 -.RS 4n -Display the attribute identified by \fIname\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Suppress some debug, warning, and error messages. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Show the version number, copyright, and license information. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display more debug, warning, and error messages. -.RE - -.SH EXAMPLES -.LP -\fBExample 1 \fRDisplaying Contents of File in Root -.sp -.LP -The following command displays the contents of a file in the root of an NTFS -volume. - -.sp -.in +2 -.nf -# \fBntfscat /dev/dsk/c0d0p1 boot.ini\fR -.fi -.in -2 -.sp - -.LP -\fBExample 2 \fRDisplaying Contents of File in Subdirectory -.sp -.LP -The following command displays the contents of a file in a subdirectory of an -NTFS volume. - -.sp -.in +2 -.nf -# \fBntfscat /dev/dsk/c0d0p1 /winnt/system32/drivers/etc/hosts\fR -.fi -.in -2 -.sp - -.LP -\fBExample 3 \fRDisplay Contents of an Attribute -.sp -.LP -The following command displays the contents of the \fB$INDEX_ROOT\fR attribute -of the root directory (inode 5). - -.sp -.in +2 -.nf -# \fBntfscat /dev/dsk/c0d0p1 -a INDEX_ROOT -i 5\fR -.fi -.in -2 -.sp - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBntfsls\fR(1M), \fBntfsprogs\fR(1M), \fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfscat\fR was written by Richard Russon, Anton Altaparmakov and Szabolcs -Szakacsits. diff --git a/usr/src/man/man1m/ntfsclone.1m b/usr/src/man/man1m/ntfsclone.1m deleted file mode 100644 index a288e018fe..0000000000 --- a/usr/src/man/man1m/ntfsclone.1m +++ /dev/null @@ -1,460 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSCLONE 1M "May 14, 2009" -.SH NAME -ntfsclone \- clone, image, restore, or rescue an NTFS -.SH SYNOPSIS -.LP -.nf -\fBntfsclone\fR [\fIoptions\fR] \fIsource\fR -.fi - -.LP -.nf -\fBntfsclone\fR \fB--save-image\fR [\fIoptions\fR] \fIsource\fR -.fi - -.LP -.nf -\fBntfsclone\fR \fB--resotore-image\fR [\fIoptions\fR] \fIsource\fR -.fi - -.LP -.nf -\fBntfsclone\fR \fB--metadata\fR [\fIoptions\fR] \fIsource\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfsclone\fR utility efficiently clones (which includes copy, save, -backup, and restore operations) or rescues an NTFS filesystem to a sparse file, -an image, a device (partition), or to standard output. It works at disk sector -level and copies only the written data (that is, not empty space). Unused disk -space becomes zero (cloning to sparse file), encoded with control codes (saving -in special image format), left unchanged (cloning to a disk/partition) or -filled with zeros (cloning to standard output). -.sp -.LP -\fBntfsclone\fR can be useful in making backups\(emtaking an exact snapshot of -an NTFS filesystem\(emand restoring it later on. It also can be used to test -NTFS read/write functionality and allows you to troubleshoot users' issues -using the clone, without the risk of destroying the original file system. -.sp -.LP -If not using the special image format (see section of the same name below), the -clone is an exact copy of the original NTFS file system, from sector to sector. -Thus, it can also be mounted just like the original NTFS filesystem. For -example, if you clone to a file and the kernel has a loopback device and NTFS -support, then the file can be mounted using: -.sp -.in +2 -.nf -# \fBmount -t ntfs -o loop ntfsclone.img\fR -.fi -.in -2 -.sp - -.SS "Windows Cloning" -.sp -.LP -You must exercise great care to copy, move or restore a system or boot -partition to another computer, or to a different disk or partition (for -example, \fB/dev/dsk/c0d0p1\fR to \fB/dev/dsk/c0d0p2\fR, \fB/dev/dsk/c0d0p1\fR -to \fB/dev/dsk/c0d1p1\fR or to a different disk sector offset). -.sp -.LP -Under most circumstances, to enable Windows to boot you must copy, move, or -restore NTFS to the same partition that has the following characteristics as -the original partition and disk: -.RS +4 -.TP -.ie t \(bu -.el o -starts at the same sector -.RE -.RS +4 -.TP -.ie t \(bu -.el o -on the same type of disk -.RE -.RS +4 -.TP -.ie t \(bu -.el o -having the same BIOS legacy cylinder setting -.RE -.sp -.LP -The \fBntfsclone\fR utility guarantees an exact copy of NTFS but does not deal -with booting issues. This is by design: \fBntfsclone\fR is a file system, not a -system, utility. Its goal is only NTFS cloning, not Windows cloning. Because of -this, \fBntfsclone\fR can be used as a very fast and reliable building block -for Windows cloning, but is not a complete answer. You can find useful tips on -NTFS cloning at the NTFS web site, http://wiki.linux-ntfs.org\&. -.SS "Sparse Files" -.sp -.LP -A file containing unallocated blocks (holes) is referred to as a "sparse file". -The reported size of such files is always higher than the disk space consumed -by them. The \fBdu\fR(1) command reports the real disk space used by a sparse -file. The holes are always read as zeros. All major Linux file systems, such -as, \fBext2\fR, \fBext3\fR, \fBreiserfs\fR, \fBReiser4\fR, JFS, and XFS support -sparse files. However, the ISO 9600 CD-ROM file system, as one example, does -not. -.SS "Special Image Format" -.sp -.LP -It is recommended that you save an NTFS filesystem to a special image format. -Instead of representing unallocated blocks as holes, they are encoded using -control codes. Thus, the image saves space without requiring sparse file -support. The image format is ideal for streaming file system images over the -network. The disadvantage of the special image format is that you cannot mount -the image directly; you must first restore it. -.sp -.LP -To save an image using the special image format, use the \fB-s\fR or the -\fB--save-image\fR option. To restore an image, use the \fB-r\fR or the -\fB--restore-image\fR option. Note that you can restore images from standard -input by using a hyphen (\fB-\fR) as the source file. -.SS "Metadata-only Cloning" -.sp -.LP -Using the \fB-m\fR or \fB--metadata\fR option, \fBntfsclone\fR can save only -the NTFS metadata and the clone still will be mountable. In this usage, all -non-metadata file content is lost; reading back the data results in all zeros. -.sp -.LP -The metadata-only image can be compressed very well, usually to a size in the -range of 1 to 8 MB. It is convenient to transfer such an image for -investigation and troubleshooting. -.sp -.LP -In metadata-only mode, \fBntfsclone\fR saves none of the user's data, which -includes the resident user's data embedded into metadata. All is filled with -zeros. Moreover, all the file timestamps, and deleted and unused spaces inside -the metadata are filled with zeros. Thus, this mode is inappropriate, for -example, for forensic analyses. -.sp -.LP -Note that filenames are not removed. Because a filename might contain sensitive -information, consider the possibities for breaches of security or privacy -before sending out a metadata-only image. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Forces \fBntfsclone\fR to proceed, even if the filesystem is marked "dirty" -following a consistency check. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each one. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--ignore-fs-check\fR\fR -.ad -.sp .6 -.RS 4n -Ignore the result of the file system consistency check. This option can be used -only with the \fB--meta-data\fR option. Any clusters that cause an -inconsistency are saved. -.RE - -.sp -.ne 2 -.na -\fB\fB-m\fR, \fB--metadata\fR\fR -.ad -.sp .6 -.RS 4n -Clone only metadata. With this option, you must clone only to a file. -.RE - -.sp -.ne 2 -.na -\fB\fB-o\fR, \fB--output\fR \fIfile\fR\fR -.ad -.sp .6 -.RS 4n -Clone NTFS to the non-existent \fIfile\fR. If \fIfile\fR is a hyphen (\fB-\fR), -clone to the standard output. -.RE - -.sp -.ne 2 -.na -\fB\fB-O\fR, \fB--overwrite\fR \fIfile\fR\fR -.ad -.sp .6 -.RS 4n -Clone NTFS to \fIfile\fR, overwriting \fIfile\fR if it already exists. -.RE - -.sp -.ne 2 -.na -\fB\fB--rescue\fR\fR -.ad -.sp .6 -.RS 4n -Ignore disk read errors so that a disk having bad sectors, for example, a -failing disk, can be rescued with minimal impact on the disk. \fBntfsclone\fR -works at the lowest, sector level in this mode, enabling more data to be -rescued. The contents of the unreadable sectors are filled with the question -mark (\fB?\fR) character; the beginning of such sectors are marked by the -string: \fBBadSector\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-r\fR, \fB--restore-image\fR \fIsource\fR\fR -.ad -.sp .6 -.RS 4n -Restore from the special image format specified by \fIsource\fR. If -\fIsource\fR is a hyphen (\fB-\fR), the image is read from the standard input. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR, \fB--save-image\fR\fR -.ad -.sp .6 -.RS 4n -Save to the special image format. In terms of space usage and speed, this is -the most efficient option if imaging is done to the standard output. This -option is useful for image compression, encryption, or streaming through a -network. -.RE - -.SH EXAMPLES -.LP -\fBExample 1 \fRCloning with Overwrite Option -.sp -.LP -The following command clones with the \fB--overwrite\fR option. - -.sp -.in +2 -.nf -# \fBntfsclone --overwrite /dev/dsk/c0d2p1 /dev/dsk/c0d0p1\fR -.fi -.in -2 -.sp - -.LP -\fBExample 2 \fRSaving to Special Image Format -.sp -.LP -The following command clones to the special image format to its original -partition. - -.sp -.in +2 -.nf -# \fBntfsclone --save-image --output backup.img /dev/dsk/c0d0p1\fR -.fi -.in -2 -.sp - -.LP -\fBExample 3 \fRRestoring from a Special Image File -.sp -.LP -The following command restores an NTFS from a special image file. - -.sp -.in +2 -.nf -# \fBntfsclone --restore-image --overwrite /dev/dsk/c0d0p1 backup.img\fR -.fi -.in -2 -.sp - -.LP -\fBExample 4 \fRSaving to a Compressed Image -.sp -.LP -The following command saves an NTFS to a compressed image file. - -.sp -.in +2 -.nf -# \fBntfsclone --save-image -o - /dev/dsk/c0d0p1\fR -.fi -.in -2 -.sp - -.LP -\fBExample 5 \fRRestoring from a Compressed Image -.sp -.LP -The following command restores an NTFS volume from a compressed image file. - -.sp -.in +2 -.nf -# \fBgunzip -c backup.img.gz | \e\fR -\fBntfsclone --restore-image --overwrite /dev/dsk/c0d0p1 -\fR -.fi -.in -2 -.sp - -.LP -\fBExample 6 \fRBacking up to a Remote Host Using \fBssh\fR -.sp -.LP -The following command backs up to a remote host, using \fBssh\fR(1). Note that -\fBssh\fR will probably require a password. - -.sp -.in +2 -.nf -# \fBntfsclone --save-image --output - /dev/dsk/c0d0p1 | \e\fR -\fBgzip -c | ssh host `cat > backup.img.gz`\fR -.fi -.in -2 -.sp - -.LP -\fBExample 7 \fRRestoring from a Remote Host Using \fBssh\fR -.sp -.LP -The following command backs up to a remote host, using \fBssh\fR(1). Note that -\fBssh\fR will probably require a password. - -.sp -.in +2 -.nf -# \fBssh host `cat backup.img.gz` | gunzip -c | \e\fR -\fBntfsclone --restore-image --overwrite /dev/dsk/c0d0p1 -\fR -.fi -.in -2 -.sp - -.LP -\fBExample 8 \fRStreaming an Image File from a Web Server -.sp -.LP -The following command streams an image file from a web server and restore it to -a partition. - -.sp -.in +2 -.nf -# \fBwget -qO - http://server/backup.img | \e\fR -\fBntfsclone --restore-image --overwrite /dev/dsk/c0d0p1 -\fR -.fi -.in -2 -.sp - -.LP -\fBExample 9 \fRCloning to a New File -.sp -.LP -The following command clones an NTFS volume to a non-existent file. - -.sp -.in +2 -.nf -# \fBntfsclone --output ntfs-clone.img /dev/dsk/c0d0p1\fR -.fi -.in -2 -.sp - -.LP -\fBExample 10 \fRPacking NTFS Metadata -.sp -.LP -The following command packs NTFS metadata into an image file. Note that -\fBbzip2\fR takes a much longer time than \fBgzip\fR, but produces an archive -that is up to ten times smaller than the latter produces. - -.sp -.in +2 -.nf -# \fBntfsclone --metadata --output ntfsmeta.img /dev/dsk/c0d0p1\fR -\fBbzip2 ntfsmeta.img\fR -.fi -.in -2 -.sp - -.LP -\fBExample 11 \fRUnpacking NTFS Metadata -.sp -.LP -The following command unpacks NTFS metadata into a sparse file. - -.sp -.in +2 -.nf -# \fBbunzip2 -c ntfsmeta.img.bz2 | \e\fR -\fBcp --sparse=always /proc/self/fd/0 ntfsmeta.img\fR -.fi -.in -2 -.sp - -.SH EXIT STATUS -.sp -.LP -The return code is zero on success, non-zero otherwise. -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBdu\fR(1), \fBssh\fR(1), \fBntfsresize\fR(1M), \fBntfsundelete\fR(1M), -\fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfsclone\fR was written by Szabolcs Szakacsits with contributions from Per -Olofsson (special image format support) and Anton Altaparmakov. diff --git a/usr/src/man/man1m/ntfscluster.1m b/usr/src/man/man1m/ntfscluster.1m deleted file mode 100644 index 62494b22db..0000000000 --- a/usr/src/man/man1m/ntfscluster.1m +++ /dev/null @@ -1,225 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSCLUSTER 1M "May 28, 2009" -.SH NAME -ntfscluster \- identify files in a specified region of an NTFS volume -.SH SYNOPSIS -.LP -.nf -\fBntfscluster\fR [\fIoptions\fR] \fIdevice\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfscluster\fR utility has three modes of operation: \fBinfo\fR, -\fBsector\fR, and \fBcluster\fR, described as follows. -.sp -.ne 2 -.na -\fB\fBInfo\fR\fR -.ad -.sp .6 -.RS 4n -The default mode, \fBinfo\fR is currently not implemented. It will display -general information about the NTFS volume when it is working. -.RE - -.sp -.ne 2 -.na -\fB\fBSector\fR\fR -.ad -.sp .6 -.RS 4n -The \fBsector\fR mode displays a list of files that have data in the specified -range of sectors. This mode is put in effect by the \fB--sector\fR option. -.RE - -.sp -.ne 2 -.na -\fB\fBCluster\fR\fR -.ad -.sp .6 -.RS 4n -The \fBcluster\fR mode displays a list of files that have data in the specified -range of clusters. When the cluster size is one sector, this is equivalent to -the \fBsector\fR mode of operation. This mode is put in effect by the -\fB--cluster\fR option. -.RE - -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-c\fR, \fB--cluster\fR \fIrange\fR\fR -.ad -.sp .6 -.RS 4n -Any files whose data is in this range of clusters will be displayed. -.RE - -.sp -.ne 2 -.na -\fB\fB-F\fR, \fB--filename\fR \fIfilename\fR\fR -.ad -.sp .6 -.RS 4n -Display information about \fIfilename\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Overrides some sensible defaults, such as not working with a mounted volume. -Use this option with caution. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each. -.RE - -.sp -.ne 2 -.na -\fB\fB-I\fR, \fB--inode\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Show information about this inode. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--info\fR\fR -.ad -.sp .6 -.RS 4n -This option is not yet implemented. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Suppress some debug, warning, and error messages. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR, \fB--sector\fR \fIrange\fR\fR -.ad -.sp .6 -.RS 4n -Any files whose data is in this range of sectors will be displayed. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Show the version number, copyright, and license information. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display more debug, warning, and error messages. -.RE - -.SH EXAMPLES -.LP -\fBExample 1 \fRDisplaying Information About a Volume -.sp -.LP -The following command displays information about the volume -\fB/dev/dsk/c0d0p1\fR. - -.sp -.in +2 -.nf -# \fBntfscluster /dev/dsk/c0d0p1\fR -.fi -.in -2 -.sp - -.LP -\fBExample 2 \fRDisplaying List of Files in a Cluster Range -.sp -.LP -The following command looks for files in the first 500 clusters of -\fB/dev/dsk/c0d0p1\fR. - -.sp -.in +2 -.nf -# \fBntfscluster -c 0-500 /dev/dsk/c0d0p1\fR -.fi -.in -2 -.sp - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBntfsinfo\fR(1M), \fBntfsprogs\fR(1M), \fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfscluster\fR was written by Richard Russon, with contributions from Anton -Altaparmakov. diff --git a/usr/src/man/man1m/ntfscmp.1m b/usr/src/man/man1m/ntfscmp.1m deleted file mode 100644 index 921ea78a0f..0000000000 --- a/usr/src/man/man1m/ntfscmp.1m +++ /dev/null @@ -1,104 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSCMP 1M "May 28, 2009" -.SH NAME -ntfscmp \- compare two NTFS file systems and report the differences -.SH SYNOPSIS -.LP -.nf -\fBntfscmp\fR [\fIoptions\fR] \fIdevice1\fR \fIdevice2\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfscmp\fR utility compares all aspects of two NTFS file systems and -reports all differences it finds. The file systems can be on block devices or -in image files. \fBntfscmp\fR can be used for volume verification. However, its -primary purpose is to be an efficient development tool, used to quickly locate, -identify, and check the correctness of the metadata changes made to NTFS. -.sp -.LP -If one is interested only in the NTFS metadata changes, it can be useful to -compare the metadata images created by using the \fB--metadata\fR option of -\fBntfsclone\fR(1M) to eliminate the usually uninteresting timestamp changes. -.sp -.LP -The terse output of \fBntfscmp\fR is intentional, because the provided -information is sufficient to determine exact differences. More copious output -can be obtained by using \fBdiff\fR(1) to compare the verbose output of -\fBntfsinfo\fR(1M) for each reported inode. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Options have both single-letter and -full-name forms. -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Display help and exit. -.RE - -.sp -.ne 2 -.na -\fB\fB-P\fR, \fB--no-progress-bar\fR\fR -.ad -.sp .6 -.RS 4n -Do not show progress bars. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display more debug, warning, and error messages. -.RE - -.SH EXIT STATUS -.sp -.LP -The exit code is \fB0\fR on success, non-zero otherwise. -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBdiff\fR(1), \fBntfscat\fR(1M), \fBntfsclone\fR(1M), \fBntfsinfo\fR(1M), -\fBntfsprogs\fR(1M), \fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfscmp\fR was written by Szabolcs Szakacsits. diff --git a/usr/src/man/man1m/ntfscp.1m b/usr/src/man/man1m/ntfscp.1m deleted file mode 100644 index e18047fa8e..0000000000 --- a/usr/src/man/man1m/ntfscp.1m +++ /dev/null @@ -1,199 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSCP 1M "May 28, 2009" -.SH NAME -ntfscp \- copy file to an NTFS volume -.SH SYNOPSIS -.LP -.nf -\fBntfscp\fR [\fIoptions\fR] \fIdevice\fR \fIsource_file\fR \fIdestination\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfscp\fR utility copies files to an NTFS volume. \fIdestination\fR (see -Synopis) can be either a file or a directory. If \fIdestination\fR is a -directory specified by name, \fIsource_file\fR is copied into this directory. -If \fIdestination\fR is a directory specified by inode number, an unnamed data -attribute is created for this inode and \fIsource_file\fR is copied into it. -Consider possible negative consequence before specifying a directory by inode -number: it is unusual to have an unnamed data stream in a directory. -.SS "Data Streams" -.sp -.LP -All data on NTFS is stored in streams, which can have names. A file can have -more than one data stream, but exactly one must have no name. The size of a -file is the size of its unnamed data stream. Usually, when you do not specify a -stream name, you are seeking access to the unnamed data stream. If you want -access to a named data stream, you need to add \fB:\fR\fIstream_name\fR to the -filename. For example, by opening \fBsome.mp3:artist\fR you will open stream -\fBartist\fR in \fBsome.mp3\fR. In an operating system, such as Windows, that -prevents you from accessing named data streams, you need to use some program -like \fBFAR\fR or utilities from \fBcygwin\fR to access those streams. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-a\fR, \fB--attribute\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Write to attribute designated by \fInum\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Overrides some sensible defaults, such as not working with a mounted volume. -Use this option with caution. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each one. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--inode\fR\fR -.ad -.sp .6 -.RS 4n -Treat \fIdestination\fR (see Synopsis) as inode number. -.RE - -.sp -.ne 2 -.na -\fB\fB-N\fR, \fB--attr-name\fR \fIname\fR\fR -.ad -.sp .6 -.RS 4n -Write to attribute with this name. -.RE - -.sp -.ne 2 -.na -\fB\fB-n\fR, \fB--no-action\fR\fR -.ad -.sp .6 -.RS 4n -Use this option to make a test run before doing the actual copy operation. -Volume will be opened read-only and no write will be done. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Suppress some debug, warning, and error messages. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Show the version number, copyright, and license information. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display more debug, warning, and error messages. -.RE - -.SH EXAMPLES -.LP -\fBExample 1 \fRCopying from Home to Root Directory -.sp -.LP -The following command copies \fBnew_boot.ini\fR from \fB/home/user\fR as -\fBboot.ini\fR to the root of an \fB/dev/dsk/c0d0p1\fR NTFS volume. - -.sp -.in +2 -.nf -# \fBntfscp /dev/dsk/c0d0p1 /home/user/new_boot.ini boot.ini\fR -.fi -.in -2 -.sp - -.LP -\fBExample 2 \fRCopying a Stream -.sp -.LP -The following command copies \fBmyfile\fR to \fBC:\some\path\myfile:stream\fR -(assume that \fB/dev/dsk/c0d0p1\fR drive designator is \fBC\fR). - -.sp -.in +2 -.nf -# \fBntfscp -N stream /dev/dsk/c0d0p1 myfile /some/path\fR -.fi -.in -2 -.sp - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBntfsresize\fR(1M), \fBntfsprogs\fR(1M), \fBparted\fR(1M), -\fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfscp\fR was written by Yura Pakhuchiy, with contributions from Anton -Altaparmakov and Hil Liao. diff --git a/usr/src/man/man1m/ntfsfix.1m b/usr/src/man/man1m/ntfsfix.1m deleted file mode 100644 index c2e2ae13c2..0000000000 --- a/usr/src/man/man1m/ntfsfix.1m +++ /dev/null @@ -1,81 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSFIX 1M "May 28, 2009" -.SH NAME -ntfsfix \- fix common errors and force operating system to check NTFS -.SH SYNOPSIS -.LP -.nf -\fBntfsfix\fR [\fIoptions\fR] \fIdevice\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfsfix\fR utility fixes some common NTFS problems. Note that it is not -a version of \fBchkdsk\fR. It repairs some fundamental NTFS inconsistencies, -resets the NTFS journal file, and schedules an NTFS consistency check for the -next reboot of the operating system. -.sp -.LP -Run \fBntfsfix\fR on an NTFS volume if you think it was damaged by the -operating system or in some other way and it cannot be mounted. -.SH OPTIONS -.sp -.LP -Supported options are listed below. -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Show the version number, copyright, and license information. -.RE - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBmkntfs\fR(1M), \fBntfsprogs\fR(1M), \fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfsfix\fR was written by Anton Altaparmakov, with contributions from -Szabolcs Szakacsits. diff --git a/usr/src/man/man1m/ntfsinfo.1m b/usr/src/man/man1m/ntfsinfo.1m deleted file mode 100644 index 147d130a69..0000000000 --- a/usr/src/man/man1m/ntfsinfo.1m +++ /dev/null @@ -1,151 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSINFO 1M "May 28, 2009" -.SH NAME -ntfsinfo \- dump a file's attributes -.SH SYNOPSIS -.LP -.nf -\fBntfsinfo\fR [\fIoptions\fR] \fIdevice\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfsinfo\fR utility dumps the attributes of inode \fIinode-number\fR or -the file \fIpath-filename\fR and/or information about the MFT (\fB-m\fR -option). Run \fBntfsinfo\fR without arguments for a full list of options. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-F\fR, \fB--file\fR \fIfile\fR\fR -.ad -.sp .6 -.RS 4n -Show information about \fIfile\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Overrides some sensible defaults, such as not overwriting an existing file. Use -this option with caution. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--inode\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Show information about inode identified by \fInum\fR. -.RE - -.sp -.ne 2 -.na -\fB\fB-m\fR, \fB--mft\fR\fR -.ad -.sp .6 -.RS 4n -Show information about the volume. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Suppress some debug, warning, and error messages. -.RE - -.sp -.ne 2 -.na -\fB\fB-t\fR, \fB--notime\fR\fR -.ad -.sp .6 -.RS 4n -Do not display timestamps in the output. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Show the version number, copyright, and license information. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display more debug, warning, and error messages. -.RE - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBntfsprogs\fR(1M), \fBntfsundelete\fR(1M), \fBparted\fR(1M), -\fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfsinfo\fR was written by Matthew J. Fanto, Anton Altaparmakov, Richard -Russon, Szabolcs Szakacsits, Yuval Fledel, Yura Pakhuchiy and Cristian Klein. diff --git a/usr/src/man/man1m/ntfslabel.1m b/usr/src/man/man1m/ntfslabel.1m deleted file mode 100644 index f8ec796def..0000000000 --- a/usr/src/man/man1m/ntfslabel.1m +++ /dev/null @@ -1,133 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSLABEL 1M "May 28, 2009" -.SH NAME -ntfslabel \- display or change the label on an NTFS file system -.SH SYNOPSIS -.LP -.nf -\fBntfslabel\fR [\fIoptions\fR] \fIdevice\fR [\fInew_label\fR] -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfslabel\fR utility displays or changes the file system label on the -NTFS file system located on \fIdevice\fR (see Synopsis). -.sp -.LP -If the optional argument \fInew_label\fR is not present, \fBntfslabel\fR -displays the current file system label. -.sp -.LP -If the optional argument \fInew_label\fR is present, \fBntfslabel\fR sets the -file system label to be \fInew_label\fR. NTFS file system labels can be at most -128 Unicode characters long; if \fInew_label\fR is longer than 128 Unicode -characters, \fBntfslabel\fR truncates it and displays a warning message. -.sp -.LP -It is also possible to set the file system label using the \fB-L\fR option of -\fBmkntfs\fR(1M) during creation of the file system. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Overrides some sensible defaults, such as not working with a mounted volume. -Use this option with caution. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each. -.RE - -.sp -.ne 2 -.na -\fB\fB-n\fR, \fB--no-action\fR\fR -.ad -.sp .6 -.RS 4n -Do not actually write a new label to disk. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Suppress some debug, warning, and error messages. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Show the version number, copyright, and license information. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display more debug, warning, and error messages. -.RE - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBmkntfs\fR(1M), \fBntfsprogs\fR(1M), \fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfslabel\fR was written by Matthew J. Fanto, with contributions from Anton -Altaparmakov and Richard Russon. diff --git a/usr/src/man/man1m/ntfsls.1m b/usr/src/man/man1m/ntfsls.1m deleted file mode 100644 index 8202a955e5..0000000000 --- a/usr/src/man/man1m/ntfsls.1m +++ /dev/null @@ -1,204 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSLS 1M "May 28, 2009" -.SH NAME -ntfsls \- list directory contents on an NTFS file system -.SH SYNOPSIS -.LP -.nf -\fBntfsls\fR [\fIoptions\fR] \fIdevice\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfsls\fR utility lists information about the files specified by the -\fBPATH\fR option (the root directory by default). \fIdevice\fR (see Synopsis) -is the special file corresponding to the device (for example, -\fB/dev/dsk/c0d0p0\fR\fInum\fR) or an NTFS image file. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-a\fR, \fB--all\fR\fR -.ad -.sp .6 -.RS 4n -Display all files. If this option is not specified file names in the POSIX -namespace are not displayed. -.RE - -.sp -.ne 2 -.na -\fB\fB-F\fR, \fB--classify\fR\fR -.ad -.sp .6 -.RS 4n -Append one of the indicators shown below to entries. -.sp -.in +2 -.nf -* / = @ | -.fi -.in -2 -.sp - -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Force execution. For example, this option is necessary to run on an NTFS -partition stored in a normal file. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Display usage information and exit. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--inode\fR\fR -.ad -.sp .6 -.RS 4n -Display the inode number of each file. This is the MFT reference number, in -NTFS terminology. -.RE - -.sp -.ne 2 -.na -\fB\fB-l\fR, \fB--long\fR\fR -.ad -.sp .6 -.RS 4n -Use a long listing format. -.RE - -.sp -.ne 2 -.na -\fB\fB-p\fR, \fB--path\fR \fIpath\fR\fR -.ad -.sp .6 -.RS 4n -The directory whose contents to list or the file (including the path) about -which to display information. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Suppress some debug, warning, and error messages. -.RE - -.sp -.ne 2 -.na -\fB\fB-R\fR, \fB--recursive\fR\fR -.ad -.sp .6 -.RS 4n -Show the contents of all directories beneath the specified directory. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR, \fB--system\fR\fR -.ad -.sp .6 -.RS 4n -Unless this options is specified, all files beginning with a dollar sign -character will not be listed, as these files are usually system files. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display more debug, warning, and error messages. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Display the \fBntfsls\fR version number and exit. -.RE - -.sp -.ne 2 -.na -\fB\fB-x\fR, \fB--dos\fR\fR -.ad -.sp .6 -.RS 4n -Display short file names, that is, files in the DOS namespace, instead of long -file names, that is, files in the WIN32 namespace. -.RE - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -, \fBntfsprogs\fR(1M), \fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -This version of \fBntfsls\fR was written by Lode Leroy, Anton Altaparmakov, -Richard Russon, Carmelo Kintana and Giang Nguyen. diff --git a/usr/src/man/man1m/ntfsprogs.1m b/usr/src/man/man1m/ntfsprogs.1m deleted file mode 100644 index 8be9e8f989..0000000000 --- a/usr/src/man/man1m/ntfsprogs.1m +++ /dev/null @@ -1,185 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSPROGS 1M "May 28, 2009" -.SH NAME -ntfsprogs \- list of NTFS tools -.SH SYNOPSIS -.LP -.nf -\fBntfsprogs\fR -.fi - -.SH DESCRIPTION -.sp -.LP -\fBntfsprogs\fR is the name of a suite of NTFS utilities based around a shared -library. The tools are available for free and come with full source code. The -tools are listed below. -.sp -.ne 2 -.na -\fB\fBmkntfs\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Create an NTFS filesystem. -.RE - -.sp -.ne 2 -.na -\fB\fBntfscat\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Dump a file's content to the standard output. -.RE - -.sp -.ne 2 -.na -\fB\fBntfsclone\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Efficiently clone, backup, restore, or rescue NTFS. -.RE - -.sp -.ne 2 -.na -\fB\fBntfscluster\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Locate the files that use the specified sectors or clusters. -.RE - -.sp -.ne 2 -.na -\fB\fBntfscmp\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Compare two NTFS file systems and report the differences. -.RE - -.sp -.ne 2 -.na -\fB\fBntfscp\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Copy a file to an NTFS volume. -.RE - -.sp -.ne 2 -.na -\fB\fBntfsfix\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Check and fix some common errors, clear the log file, and make the operating -system perform a thorough check next time it boots. -.RE - -.sp -.ne 2 -.na -\fB\fBntfsinfo\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Show information about NTFS or one of the files or directories within it. -.RE - -.sp -.ne 2 -.na -\fB\fBntfslabel\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Show, or set, an NTFS filesystem's volume label. -.RE - -.sp -.ne 2 -.na -\fB\fBntfsls\fR(1M)\fR -.ad -.sp .6 -.RS 4n -List information about files in a directory residing on an NTFS. -.RE - -.sp -.ne 2 -.na -\fB\fBntfsmount(1M)\fR (not a SunOS man page)\fR -.ad -.sp .6 -.RS 4n -Read-write NTFS user space driver. -.RE - -.sp -.ne 2 -.na -\fB\fBntfsresize\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Resize NTFS without losing data. -.RE - -.sp -.ne 2 -.na -\fB\fBntfsundelete\fR(1M)\fR -.ad -.sp .6 -.RS 4n -Recover deleted files from NTFS. -.RE - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -The tools were written by Anton Altaparmakov, Carmelo Kintana, Cristian Klein, -Erik Sornes, Giang Nguyen, Holger Ohmacht, Lode Leroy, Matthew J. Fanto, Per -Olofsson, Richard Russon, Szabolcs Szakacsits, Yura Pakhuchiy, and Yuval -Fledel. diff --git a/usr/src/man/man1m/ntfsresize.1m b/usr/src/man/man1m/ntfsresize.1m deleted file mode 100644 index 34a72a9b09..0000000000 --- a/usr/src/man/man1m/ntfsresize.1m +++ /dev/null @@ -1,280 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSRESIZE 1M "May 21, 2009" -.SH NAME -ntfsresize \- resize an NTFS file system without data loss -.SH SYNOPSIS -.LP -.nf -\fBntfsresize\fR [\fIoptions\fR] \fB--info\fR \fIdevice\fR -.fi - -.LP -.nf -\fBntfsresize\fR [\fIoptions\fR] [\fB--size\fR \fIsize\fR[k|M|G]] \fIdevice\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfsresize\fR program safely resizes Windows XP, Windows Server 2003, -Windows 2000, Windows NT4 and Longhorn NTFS filesystems without data loss. All -NTFS versions used by 32-bit and 64-bit Windows "operating systems" are -supported. Defragmentation is not required prior to resizing, because -\fBntfsresize\fR can relocate any data if needed, without risking data -integrity. -.sp -.LP -\fBntfsresize\fR can be used to shrink or enlarge any NTFS file system located -on an unmounted device (usually a disk partition). The new file system will -have a size that you specify. The size parameter can have one of the optional -modifiers \fBk\fR, \fBM\fR, \fBG\fR, denoting, respectively, kilobytes, -megabytes, or gigabytes. \fBntfsresize\fR conforms to the SI, ATA, an IEEE -standards and the disk manufacturers by supporting \fBk=10\fR^3, \fBM=10\fR^6 -and \fBG=10\fR^9. -.sp -.LP -If both \fB---info\fR and \fB---size\fR options are omitted then the NTFS file -system will be enlarged to the underlying device size. -.sp -.LP -To resize a file system on a partition, you must resize both the file system -and the partition, by editing the partition table on the disk. Similarly to -other command-line file system resizers, \fBntfsresize\fR does not manipulate -the size of the partitions. To do that you must use a disk partitioning tool, -such as \fBfdisk\fR(1M). Alternatively, you could use one of the many user -friendly partitioners that uses \fBntfsresize\fR internally. Such partitioners -include, among others, Mandriva's DiskDrake, QTParted, SUSE/Novell's YaST -Partitioner, IBM's EVMS, GParted, or Debian/Ubuntu's Partman. -.sp -.LP -Back up your data and your partition table before using any partitioning tool. -For an NTFS file system, you can use \fBntfsclone\fR(1M) as a means of backup. -.sp -.LP -To shrink an NTFS partition, first use \fBntfsresize\fR to shrink the size of -the file system. Then use a utility such as \fBfdisk\fR(1M) to shrink the size -of the partition by deleting the partition and recreating it with the smaller -size. Do not make the partition smaller than the new size of NTFS; otherwise, -you will not be able to boot from that partition. If you mistakenly made a -too-small partition, you would have to recreate the partition to be as large as -newly sized NTFS file system. -.sp -.LP -To enlarge an NTFS file system, you must first enlarge the size of the -underlying partition. You can use \fBfdisk\fR(1M) to delete the partition and -recreate it with a larger size. Make sure the newly sized partition does not -overlap with any other partition. Then use \fBntfsresize\fR to enlarge the file -system. -.sp -.LP -When recreating a partition, make sure you create it at the same starting -sector and with the same partition type as was used in the partition you are -replacing. Otherwise, you will not be able to access your file system. Use the -\fBfdisk u\fR command to switch from the default cylinder unit to the reliable -sector unit. Also, if the bootable flag was set in the old partition, make sure -to set it in the recreated partiton. Otherwise, you might not be able to boot -from the new partition. -.SH EXTENDED DESCRIPTION -.sp -.LP -There are a handful of very rarely met restrictions in the use of -\fBntfsresize\fR. An example of such a restriction occurs with a file system -stored on a disk having unknown bad sectors. Relocation of the first \fBMFT\fR -extent and resizing into the middle of a \fB$MFTMirr\fR extent are not -supported. These cases are detected and resizing is restricted to a safe size -or the closest safe size is displayed. -.sp -.LP -Upon completion of a resizing, \fBntfsresize\fR schedules an NTFS consistency -check. In Windows, this check is performed by \fBchkdsk\fR. Upon the first -subsequent reboot into Windows, you will note \fBchkdsk\fR running in a blue -background. This is normal. Windows might force a quick reboot after the -consistency check. Depending on your hardware configuration, Windows might -alert you to a systems setting change and recommend or require a reboot. -Acknowledge the message and reboot a second time. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-b\fR, \fB--bad-sectors\fR\fR -.ad -.sp .6 -.RS 4n -By default, \fBntfsresize\fR exits upon encountering bad sectors. This option -allows the utility to proceed in spite of such sectors. -.sp -Prior using this option, it is strongly recommended that you use -\fBntfsclone\fR(1M) with the \fB--rescue\fR option to make a backup, then, in -Windows, run \fBchkdsk /f /r volume\fR: from the command line. If the disk -guarantee displays as valid, then replace it, as it is defective. Note that no -software can repair bad sector errors. The most that can be done is to work -around these defects. -.sp -This option has no effect if a disk has no bad sectors. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -\fBntfsresize\fR always marks a file system for consistency check before a real -(not using \fB--no-action\fR) resize operation and it leaves that way for extra -safety. Thus, if an NTFS file system was marked by \fBntfsresize\fR, it is safe -to use this option. You must use this option, if you need to resize several -times without booting into Windows between each resizing step. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Display usage information and exit. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--info\fR\fR -.ad -.sp .6 -.RS 4n -Used when you want to shrink a file system. Causes \fBntfsresize\fR to -determine the smallest shrunken file system size supported. Most of the time -the smallest size is the space already used on the file system. -\fBntfsresize\fR does not shrink a file system to a smaller size than what is -returned by this option. Depending on several factors, it might be unable to -shrink to this theoretical size. Although the integrity of your data should be -never at risk, it is nevertheless strongly recommended to make a test run by -using the \fB--no-action\fR option before actual resizing. -.sp -Based on testing, the smallest attainable size is approximately space used in -the file system plus 20-200 MB. Note also that Windows might need an additional -50-100 MB to boot safely. -.sp -This option never causes any changes to the file system; the partition is -opened read-only. -.RE - -.sp -.ne 2 -.na -\fB\fB-n\fR, \fB--no-action\fR\fR -.ad -.sp .6 -.RS 4n -Use this option to make a test run before doing the resize operation. Volume -will be opened read-only and \fBntfsresize\fR displays what it would do if it -were to resize the file system. Proceed with the actual resizing only if the -test run passed. -.RE - -.sp -.ne 2 -.na -\fB\fB-P\fR, \fB--no-progress-bar\fR\fR -.ad -.sp .6 -.RS 4n -Do not display progress bars during \fBntfsresize\fR operation. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR, \fB--size\fR \fIsize\fR[k|M|G]]\fR -.ad -.sp .6 -.RS 4n -Resize file system to \fIsize\fR bytes. The new file system will have a size -that you specify. The size parameter can have one of the optional modifiers -\fBk\fR, \fBM\fR, \fBG\fR, denoting, respectively, kilobytes, megabytes, or -gigabytes. \fBntfsresize\fR conforms to the SI, ATA, an IEEE standards and the -disk manufacturers by supporting \fBk=10\fR^3, \fBM=10\fR^6 and \fBG=10\fR^9. -Before performing an actual resizing, run \fBntfsresize\fR with the -\fB--no-action\fR option, along with this option, first. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR\fR -.ad -.sp .6 -.RS 4n -Display copious output. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Display the version number of \fBntfsresize\fR. -.RE - -.SH EXIT STATUS -.sp -.LP -Display zero on success, non-zero otherwise. -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBfdisk\fR(1M), \fBntfsclone\fR(1M), \fBparted\fR(1M), \fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH NOTES -.sp -.LP -In Linux version 2.6, with partitions that have been manipulated by -\fBparted\fR(1M), use of \fBntfsresize\fR preceded corruption of partition -tables, which resulted in unbootable Windows systems. This occurred even if the -NTFS file system was consistent. This problem is independent of NTFS and, thus, -\fBntfsresize\fR. Moreover, \fBntfsresize\fR never touches the partition table. -Under the conditions just described, you can, in the BIOS, change \fBDisk -Access Mode\fR to \fBLBA\fR to regain the ability to boot. For further -discussion of this condition see the \fBntfsresize\fR FAQ at: -\fBhttp://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html\fR. -.SH AUTHORS -.sp -.LP -\fBntfsresize\fR was written by Szabolcs Szakacsits, with contributions from -Anton Altaparmakov and Richard Russon. diff --git a/usr/src/man/man1m/ntfsundelete.1m b/usr/src/man/man1m/ntfsundelete.1m deleted file mode 100644 index 62ed3ad473..0000000000 --- a/usr/src/man/man1m/ntfsundelete.1m +++ /dev/null @@ -1,476 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (c) 2002-2006 Szabolcs Szakacsits -.\" Copyright (c) 2002-2005 Anton Altaparmakov -.\" Copyright (c) 2002-2003 Richard Russon -.\" Copyright (c) 2007 Yura Pakhuchiy -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program -.\" (in the main directory of the Linux-NTFS distribution in the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 11-1307 USA -.TH NTFSUNDELETE 1M "May 22, 2009" -.SH NAME -ntfsundelete \- recover a deleted file from an NTFS volume -.SH SYNOPSIS -.LP -.nf -\fBntfsundelete\fR [\fIoptions\fR] \fIdevice\fR -.fi - -.SH DESCRIPTION -.sp -.LP -The \fBntfsundelete\fR utility can, under the right circumstances, recover a -deleted file from an NTFS volume. The command has three modes of operation: -.sp -.ne 2 -.na -\fB\fBScan\fR\fR -.ad -.sp .6 -.RS 4n -The default mode, \fBscan\fR simply reads an NTFS Volume and looks for files -that have been deleted. It then displays a list, giving the inode number, name, -and size of each deleted file. -.RE - -.sp -.ne 2 -.na -\fB\fBUndelete\fR\fR -.ad -.sp .6 -.RS 4n -The undelete mode takes the files either matching the regular expression -(option \fB-m\fR) or specified by the \fIinode-expressions\fR and recovers as -much of the data as possible. It saves the result to another location. -.RE - -.sp -.ne 2 -.na -\fB\fBCopy\fR\fR -.ad -.sp .6 -.RS 4n -The "wizard's" option. Saves a portion of the MFT to a file, which can be -useful when debugging \fBntfsundelete\fR. -.RE - -.sp -.LP -There are many circumstances under which \fBntfsundelete\fR is unable to -recover a file. For example, consider the following scenario. When a file is -deleted the MFT Record is marked as not in use and the bitmap representing the -disk usage is updated. If the power is not turned off immediately, the free -space, where the file used to reside might get overwritten. Worse, the MFT -Record might be reused for another file. If this happens, it is impossible to -tell where the file was on disk. -.sp -.LP -Even if all the clusters of a file are not in use, there is no guarantee that -they have not been overwritten by some short-lived file. -.sp -.LP -\fBntfsundelete\fR cannot recover compressed or encrypted files. During a scan, -it will display such a file as being 0% recoverable. -.SS "Locale" -.sp -.LP -In NTFS, all filenames are stored as Unicode. A filename is converted into the -current locale for display by \fBntfsundelete\fR. The utility has successfully -displayed Chinese pictogram filenames and then correctly recovered them. -.SS "Extended MFT Records" -.sp -.LP -In rare circumstances, a single MFT Record will not be large enough to hold the -metadata describing a file (a file would have to be in hundreds of fragments -for this to happen). In these cases, one MFT record might hold the filename, -while another will hold the information about the data. \fBntfsundelete\fR will -not try and piece together such records. It will simply list unnamed files with -data. -.SS "Recovered File's Size and Creation Date" -.sp -.LP -To recover a file, \fBntfsundelete\fR has to read the file's metadata. -Unfortunately, when a file is deleted, the metadata can be left in an -inconsistent state. For example, the file size might be recorded as zero; the -creation date of a file might be set to the time it was deleted or to a random -time. In such situations, \fBntfsundelete\fR picks the largest file size it -finds and writes that to disk. It also tries to set the file's creation date to -the last-modified date. This date might be the correct last modified date, or -something unexpected. -.SH OPTIONS -.sp -.LP -Supported options are listed below. Most options have both single-letter and -full-name forms. Multiple single-letter options that do not take an argument -can be combined. For example, \fB-fv\fR is the equivalent of \fB-f\fR \fB-v\fR. -A full-name option can be abbreviated to a unique prefix of its name. -.sp -.ne 2 -.na -\fB\fB-b\fR, \fB--byte\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Fill in the parts of unrecoverable file clusters with byte represented by -\fInum\fR. The default is zeros. -.RE - -.sp -.ne 2 -.na -\fB\fB-C\fR, \fB--case\fR\fR -.ad -.sp .6 -.RS 4n -Make filename search, when attempting a match with the \fB--match\fR option, -case-sensitive. The default filename search is case-insensitive. -.RE - -.sp -.ne 2 -.na -\fB\fB-c\fR, \fB--copy\fR \fIrange\fR\fR -.ad -.sp .6 -.RS 4n -This "wizard" option writes a block of MFT FILE records to a file. The default -file is mft which will be created in the current directory. This option can be -combined with the \fB--output\fR and \fB--destination\fR options. -.RE - -.sp -.ne 2 -.na -\fB\fB-d\fR, \fB--destination\fR \fIdir\fR\fR -.ad -.sp .6 -.RS 4n -Specify the location of the output file for the \fB--copy\fR and -\fB--undelete\fR options. -.RE - -.sp -.ne 2 -.na -\fB\fB-f\fR, \fB--force\fR\fR -.ad -.sp .6 -.RS 4n -Overrides some sensible defaults, such as not overwriting an existing file. Use -this option with caution. -.RE - -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Show a list of options with a brief description of each one. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--inodes\fR \fIrange\fR\fR -.ad -.sp .6 -.RS 4n -Recover the files within the specified range of inode numbers. \fIrange\fR can -be a single inode number, several numbers separated by commas, or a range -separated by a dash (\fB-\fR). -.RE - -.sp -.ne 2 -.na -\fB\fB-m\fR, \fB--match\fR \fIpattern\fR\fR -.ad -.sp .6 -.RS 4n -Filter the output by looking only for filenames that match \fIpattern\fR. The -pattern can include the wildcards \fB?\fR, matching exactly one character, or -\fB*\fR, matching zero or more characters. By default, the matching is -case-insensitive. To make the search case-sensitive, use the \fB--case\fR -option. -.RE - -.sp -.ne 2 -.na -\fB\fB-O\fR, \fB--optimistic\fR\fR -.ad -.sp .6 -.RS 4n -Recover parts of the file even if they are currently marked as in use. -.RE - -.sp -.ne 2 -.na -\fB\fB-o\fR, \fB--output\fR \fIfile\fR\fR -.ad -.sp .6 -.RS 4n -Set the name of the output file created by the \fB--copy\fR or \fB--undelete\fR -options. -.RE - -.sp -.ne 2 -.na -\fB\fB-P\fR, \fB--parent\fR\fR -.ad -.sp .6 -.RS 4n -Display the parent directory of a deleted file. -.RE - -.sp -.ne 2 -.na -\fB\fB-p\fR, \fB--percentage\fR \fInum\fR\fR -.ad -.sp .6 -.RS 4n -Filter the output of the \fB--scan\fR option by matching only files with -\fInum\fR percent of recoverable content. -.RE - -.sp -.ne 2 -.na -\fB\fB-q\fR, \fB--quiet\fR\fR -.ad -.sp .6 -.RS 4n -Reduce the amount of output to a minimum. This option is not useful with the -\fB--scan\fR option. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR, \fB--scan\fR\fR -.ad -.sp .6 -.RS 4n -Search through an NTFS volume and display a list of files that could be -recovered. This is the default action of \fBntfsundelete\fR. This list can be -filtered by filename, size, percentage recoverable, or last modification time, -using the \fB--match\fR, \fB--size\fR, \fB--percent\fR, and \fB--time\fR -options, respectively. -.sp -In the output from this option, the \fB%age\fR (percentage) field displays how -much of a file can potentially be recovered. -.RE - -.sp -.ne 2 -.na -\fB\fB-S\fR, \fB--size\fR \fIrange\fR\fR -.ad -.sp .6 -.RS 4n -Filter the output of the \fB--scan\fR option by looking for a particular range -of file sizes. \fIrange\fR can be specified as two numbers separated by a -hyphen (\fB-\fR). A unit of size can be abbreviated using the suffixes \fBk\fR, -\fBm\fR, \fBg\fR, and \fBt\fR, for kilobytes, megabytes, gigabytes, and -terabytes respectively. -.RE - -.sp -.ne 2 -.na -\fB\fB-t\fR, \fB--time\fR \fIsince\fR\fR -.ad -.sp .6 -.RS 4n -Filter the output of the \fB--scan\fR option. Match only files that have been -altered since this time. The time must be given as number and a suffix of -\fBd\fR, \fBw\fR, \fBm\fR, or \fBy\fR for, respectively, days, weeks, -months, or years. -.RE - -.sp -.ne 2 -.na -\fB\fB-T\fR, \fB--truncate\fR\fR -.ad -.sp .6 -.RS 4n -The default behavior of \fBntfsundelete\fR is to round \fBup\fR a file's size -to the nearest cluster (which will be a multiple of 512 bytes). In cases where -the utility has complete data about the size of a file, this option restores -the file to exactly that size. -.RE - -.sp -.ne 2 -.na -\fB\fB-u\fR, \fB--undelete\fR\fR -.ad -.sp .6 -.RS 4n -Specifies undelete mode. You can specify the files to be recovered using by -using \fB--match\fR or \fB--inodes\fR options. This option can be combined with -\fB--output\fR, \fB--destination\fR, and \fB--byte\fR. -.sp -When the file is recovered it will be given its original name, unless the -\fB--output\fR option is used. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--verbose\fR \fI\fR\fR -.ad -.sp .6 -.RS 4n -Increase the amount of output that \fBntfsundelete\fR displays. -.RE - -.sp -.ne 2 -.na -\fB\fB-V\fR, \fB--version\fR \fI\fR\fR -.ad -.sp .6 -.RS 4n -Display the version number, copyright, and license for \fBntfsundelete\fR. -.RE - -.SH EXAMPLES -.LP -\fBExample 1 \fRSearching for Deleted Files -.sp -.LP -The following command searches for deleted files on a specific device. - -.sp -.in +2 -.nf -# \fBntfsundelete /dev/dsk/c0d0p1\fR -.fi -.in -2 -.sp - -.LP -\fBExample 2 \fRScanning for Files Matching a Wildcard -.sp -.LP -The following command searches for deleted files that match \fB*.doc\fR. - -.sp -.in +2 -.nf -# \fBntfsundelete /dev/dsk/c0d0p1 -s -m '*.doc'\fR -.fi -.in -2 -.sp - -.LP -\fBExample 3 \fRSearching for Files of a Certain Size -.sp -.LP -The following command looks for deleted files between 5000 and 6000000 bytes, -with at least 90% of the data recoverable, on \fB/dev/dsk/c0d0p1\fR. - -.sp -.in +2 -.nf -# \fBntfsundelete /dev/dsk/c0d0p1 -S 5k-6m -p 90\fR -.fi -.in -2 -.sp - -.LP -\fBExample 4 \fRSearching for Recently Changed Files -.sp -.LP -The following command searches for deleted files altered in the last two days. - -.sp -.in +2 -.nf -# \fBntfsundelete /dev/dsk/c0d0p1 -t 2d\fR -.fi -.in -2 -.sp - -.LP -\fBExample 5 \fRSpecifying an Inode Range -.sp -.LP -The following command undeletes inodes 2, 5 and 100 to 131 of device -\fB/dev/sda1\fR. - -.sp -.in +2 -.nf -# \fBntfsundelete /dev/sda1 -u -i 2,5,100-131\fR -.fi -.in -2 -.sp - -.LP -\fBExample 6 \fRSpecifying an Output File and Directory -.sp -.LP -The following command undeletes inode number 3689, names the file -\fBwork.doc\fR, and stores it in the user's home directory. - -.sp -.in +2 -.nf -# \fBntfsundelete /dev/dsk/c0d0p1 -u -i 3689 -o work.doc -d ~\fR -.fi -.in -2 -.sp - -.LP -\fBExample 7 \fRSaving MFT Records -.sp -.LP -The following command saves MFT records 3689 to 3690 to a file \fBdebug\fR. - -.sp -.in +2 -.nf -# \fBntfsundelete /dev/dsk/c0d0p1 -c 3689-3690 -o debug\fR -.fi -.in -2 -.sp - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBntfsclone\fR(1M), \fBntfsresize\fR(1M), \fBparted\fR(1M), -\fBattributes\fR(5) -.sp -.LP -http://wiki.linux-ntfs.org -.SH AUTHORS -.sp -.LP -\fBntfsundelete\fR was written by Richard Russon and Holger Ohmacht, with -contributions from Anton Altaparmakov. diff --git a/usr/src/man/man1m/parted.1m b/usr/src/man/man1m/parted.1m deleted file mode 100644 index 31cb0f4286..0000000000 --- a/usr/src/man/man1m/parted.1m +++ /dev/null @@ -1,347 +0,0 @@ -'\" te -.\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright (C) 1999, 2000, 2007 Free Software Foundation, Inc. -.\" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed -.\" in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. -.\" If not, see: http://www.gnu.org/copyleft/gpl.html -.TH PARTED 1M "May 27, 2009" -.SH NAME -parted \- partition manipulation program -.SH SYNOPSIS -.LP -.nf -\fBparted\fR [\fIoptions\fR] [\fIdevice\fR [\fIoptions\fR...]...]] -.fi - -.SH DESCRIPTION -.sp -.LP -\fBparted\fR is a disk partitioning and partition resizing program. It allows -you to create, destroy, resize, move, and copy \fBext2\fR, \fBext3\fR, -\fBlinux-swap\fR, \fBFAT\fR, \fBFAT32\fR, and \fBreiserfs\fR partitions. It -can create, resize, and move Macintosh HFS partitions, as well as detect -\fBjfs\fR, \fBntfs\fR, \fBufs\fR, and \fBxfs\fR partitions. It is useful for -creating space for new operating systems, reorganizing disk usage, and copying -data to new hard disks. -.sp -.LP -This manual page documents \fBparted\fR briefly. Complete \fBparted\fR -documentation is distributed with the package in "GNU Info" format. -.sp -.LP -\fBparted\fR is implemented with a set of top-level options and a set of -subcommands, most of which have their own options and operands. These -subcommands are described below. \fBparted\fR has an optional operand: -.sp -.ne 2 -.na -\fB\fIdevice\fR\fR -.ad -.RS 10n -The block device to be used. When none is given, \fBparted\fR uses the first -block device it finds. -.RE - -.SH OPTIONS -.sp -.LP -The following options are supported: -.sp -.ne 2 -.na -\fB\fB-h\fR, \fB--help\fR\fR -.ad -.sp .6 -.RS 4n -Displays a help message. -.RE - -.sp -.ne 2 -.na -\fB\fB-i\fR, \fB--interactive\fR\fR -.ad -.sp .6 -.RS 4n -Prompts for user intervention. -.RE - -.sp -.ne 2 -.na -\fB\fB-l\fR, \fB--list\fR\fR -.ad -.sp .6 -.RS 4n -Lists partition layout on all block devices. -.RE - -.sp -.ne 2 -.na -\fB\fB-m\fR, \fB--machine\fR\fR -.ad -.sp .6 -.RS 4n -Displays machine-parseable output. -.RE - -.sp -.ne 2 -.na -\fB\fB-s\fR, \fB--script\fR\fR -.ad -.sp .6 -.RS 4n -Never prompts for user intervention. -.RE - -.sp -.ne 2 -.na -\fB\fB-v\fR, \fB--version\fR\fR -.ad -.sp .6 -.RS 4n -Displays the version number. -.RE - -.SH SUB-COMMANDS -.sp -.LP -If you omit a subcommand in a \fBparted\fR command line, the utility issues a -command prompt. -.sp -.ne 2 -.na -\fB\fBcheck\fR \fIpartition\fR\fR -.ad -.sp .6 -.RS 4n -Do a simple check on \fIpartition\fR. -.RE - -.sp -.ne 2 -.na -\fB\fBcp\fR [\fIsource-device\fR] \fIsource\fR \fIdest\fR\fR -.ad -.sp .6 -.RS 4n -Copy the source partition's filesystem on \fIsource-device\fR (or the current -device if no other device was specified) to the \fIdest\fR partition on the -current device. -.RE - -.sp -.ne 2 -.na -\fB\fBhelp\fR \fIcommand\fR\fR -.ad -.sp .6 -.RS 4n -Display general help, or help on a command, if specified. -.RE - -.sp -.ne 2 -.na -\fB\fBmkfs\fR \fIpartition\fR \fIfs-type\fR\fR -.ad -.sp .6 -.RS 4n -Make a filesystem \fIfs-type\fR on partition. \fIfs-type\fR can be one of -\fBfat16\fR, \fBfat32\fR, \fBext2\fR, \fBlinux-wap\fR, or \fBreiserfs\fR. -.RE - -.sp -.ne 2 -.na -\fB\fBmklabel\fR \fIlabel-type\fR\fR -.ad -.sp .6 -.RS 4n -Create a new disk label (partition table) of \fIlabel-type\fR. \fIlabel-type\fR -should be one of \fBbsd\fR, \fBdvh\fR, \fBgpt\fR, \fBloop\fR, \fBmac\fR, -\fBmsdos\fR, \fBpc98\fR, or \fBsun\fR. -.RE - -.sp -.ne 2 -.na -\fB\fBmkpart\fR \fIpart-type\fR [\fIfs-type\fR] \fIstart\fR \fIend\fR\fR -.ad -.sp .6 -.RS 4n -Make a \fIpart-type\fR partition with file system \fIfs-type\fR (if specified), -beginning at \fIstart\fR and ending at \fIend\fR (by default, in megabytes). -\fIfs-type\fR can be one of \fBfat16\fR, \fBfat32\fR, \fBext2\fR, \fBHFS\fR, -\fBlinux-swap\fR, \fBNTFS\fR, \fBreiserfs\fR, or \fBufs\fR. \fIpart-type\fR -should be one of \fBprimary\fR, \fBlogical\fR, or \fBextended\fR. -.RE - -.sp -.ne 2 -.na -\fB\fBmkpartfs\fR \fIpart-type\fR \fIfs-type\fR \fIstart\fR \fIend\fR\fR -.ad -.sp .6 -.RS 4n -Make a \fIpart-type\fR partition with file system \fIfs-type\fR, beginning at -\fIstart\fR and ending at \fIend\fR (by default, in megabytes). -.RE - -.sp -.ne 2 -.na -\fB\fBmove\fR \fIpartition\fR \fIstart\fR \fIend\fR\fR -.ad -.sp .6 -.RS 4n -Move partition so that it begins at \fIstart\fR and ends at \fIend\fR. Note -that \fBmove\fR never changes the minor number. -.RE - -.sp -.ne 2 -.na -\fB\fBname\fR \fIpartition\fR \fIname\fR\fR -.ad -.sp .6 -.RS 4n -Set the name of partition to \fIname\fR. This option works only on Mac, PC98, -and GPT disk labels. The name can be placed in quotes, if necessary. -.RE - -.sp -.ne 2 -.na -\fB\fBprint\fR\fR -.ad -.sp .6 -.RS 4n -Display the partition table. -.RE - -.sp -.ne 2 -.na -\fB\fBquit\fR\fR -.ad -.sp .6 -.RS 4n -Exit from \fBparted\fR. -.RE - -.sp -.ne 2 -.na -\fB\fBrescue\fR \fIstart\fR \fIend\fR\fR -.ad -.sp .6 -.RS 4n -Rescue a lost partition that was located somewhere between \fIstart\fR and -\fIend\fR. If a partition is found, \fBparted\fR will ask if you want to create -an entry for it in the partition table. -.RE - -.sp -.ne 2 -.na -\fB\fBresize\fR \fIpartition\fR \fIstart\fR \fIend\fR\fR -.ad -.sp .6 -.RS 4n -Resize the file system on \fIpartition\fR so that it begins at \fIstart\fR and -ends at \fIend\fR (by default, in megabytes). -.RE - -.sp -.ne 2 -.na -\fB\fBrm\fR \fIpartition\fR\fR -.ad -.sp .6 -.RS 4n -Delete \fIpartition\fR. -.RE - -.sp -.ne 2 -.na -\fB\fBselect\fR \fIdevice\fR\fR -.ad -.sp .6 -.RS 4n -Choose \fIdevice\fR as the current device to edit. \fIdevice\fR should usually -be a Solaris or Linux hard disk device, but it can be a partition, software -raid device, or an SVM or LVM logical volume if necessary. -.RE - -.sp -.ne 2 -.na -\fB\fBset\fR \fIpartition\fR \fIflag\fR \fIstate\fR\fR -.ad -.sp .6 -.RS 4n -Change the state of the \fIflag\fR on \fIpartition\fR to \fIstate\fR. Supported -flags are: \fBboot\fR, \fBroot\fR, \fBswap\fR, \fBhidden\fR, \fBraid\fR, -\fBlvm\fR, \fBlba\fR, and \fBpalo\fR. \fIstate\fR should be either \fBon\fR or -\fBoff\fR. -.RE - -.sp -.ne 2 -.na -\fB\fBunit\fR \fIunit\fR\fR -.ad -.sp .6 -.RS 4n -Set \fIunit\fR as the unit to use when displaying locations and sizes, and for -interpreting those given by the user when not suffixed with an explicit unit. -\fIunit\fR can be one of \fBs\fR (sectors), \fBB\fR (bytes), \fBkB\fR, -\fBMB\fR, \fBGB\fR, \fBTB\fR, \fB%\fR (percentage of device size), \fBcyl\fR -(cylinders), \fBchs\fR (cylinders, heads, sectors), or \fBcompact\fR (megabytes -for input, and a human-friendly form for output). -.RE - -.sp -.ne 2 -.na -\fB\fBversion\fR\fR -.ad -.sp .6 -.RS 4n -Display version information and a copyright message. -.RE - -.SH ATTRIBUTES -.sp -.LP -See \fBattributes\fR(5) for descriptions of the following attributes: -.sp - -.sp -.TS -box; -c | c -l | l . -ATTRIBUTE TYPE ATTRIBUTE VALUE -_ -Interface Stability Uncommitted -.TE - -.SH SEE ALSO -.sp -.LP -\fBfdisk\fR(1M), \fBmkfs\fR(1M), \fBattributes\fR(5) -.sp -.LP -The \fBparted\fR program is fully documented in the \fBinfo(1)\fR format GNU -partitioning software manual. -.SH AUTHOR -.sp -.LP -This manual page was written by Timshel Knoll for the Debian GNU/Linux system. -It is here adapted for the Solaris operating system. |