Steve Kondik | 2111ad7 | 2013-07-07 12:07:44 -0700 | [diff] [blame] | 1 | .\" Copyright (c) 2002\-2004 Anton Altaparmakov. |
| 2 | .\" Copyright (c) 2005 Richard Russon. |
Steve Kondik | 79165c3 | 2015-11-09 19:43:00 -0800 | [diff] [blame] | 3 | .\" Copyright (c) 2012 Jean-Pierre Andre. |
Steve Kondik | 2111ad7 | 2013-07-07 12:07:44 -0700 | [diff] [blame] | 4 | .\" This file may be copied under the terms of the GNU Public License. |
| 5 | .\" |
Steve Kondik | 79165c3 | 2015-11-09 19:43:00 -0800 | [diff] [blame] | 6 | .TH NTFSLABEL 8 "January 2012" "ntfs-3g @VERSION@" |
Steve Kondik | 2111ad7 | 2013-07-07 12:07:44 -0700 | [diff] [blame] | 7 | .SH NAME |
| 8 | ntfslabel \- display/change the label on an ntfs file system |
| 9 | .SH SYNOPSIS |
| 10 | .B ntfslabel |
| 11 | [\fIoptions\fR] \fIdevice \fR[\fInew\-label\fR] |
| 12 | .SH DESCRIPTION |
| 13 | .B ntfslabel |
| 14 | will display or change the file system label on the ntfs file system located on |
| 15 | .IR device . |
| 16 | It can also change the serial number of the |
| 17 | .IR device . |
| 18 | .PP |
| 19 | If the optional argument |
| 20 | .I new\-label |
| 21 | is not present, and no option is present, |
| 22 | .B ntfslabel |
| 23 | will simply display the current file system label. |
| 24 | .PP |
| 25 | If the optional argument |
| 26 | .I new\-label |
| 27 | is present, then |
| 28 | .B ntfslabel |
| 29 | will set the file system label to be |
| 30 | .IR new\-label . |
| 31 | NTFS file system labels can be at most 128 Unicode characters long; if |
| 32 | .I new\-label |
| 33 | is longer than 128 Unicode characters, |
| 34 | .B ntfslabel |
| 35 | will truncate it and print a warning message. |
| 36 | .PP |
| 37 | It is also possible to set the file system label using the |
| 38 | .B \-L |
| 39 | option of |
| 40 | .BR mkntfs (8) |
| 41 | during creation of the file system. |
| 42 | .SH OPTIONS |
| 43 | Below is a summary of all the options that |
| 44 | .B ntfslabel |
| 45 | accepts. Nearly all options have two equivalent names. The short name is |
| 46 | preceded by |
| 47 | .B \- |
| 48 | and the long name is preceded by |
| 49 | .BR \-\- . |
| 50 | Any single letter options, that don't take an argument, can be combined into a |
| 51 | single command, e.g. |
| 52 | .B \-fv |
| 53 | is equivalent to |
| 54 | .BR "\-f \-v" . |
| 55 | Long named options can be abbreviated to any unique prefix of their name. |
| 56 | .TP |
| 57 | \fB\-f\fR, \fB\-\-force\fR |
| 58 | This will override some sensible defaults, such as not working with a mounted |
| 59 | volume. Use this option with caution. |
| 60 | .TP |
| 61 | \fB\-h\fR, \fB\-\-help\fR |
| 62 | Show a list of options with a brief description of each one. |
| 63 | .TP |
| 64 | \fB\-\-new\-serial\fR[\fI=ssssssssssssssss\fR], or |
| 65 | .TP |
| 66 | \fB\-\-new\-half\-serial\fR[\fI=ssssssss\fR] |
| 67 | Set a new serial number to the device, either the argument value, or a random |
| 68 | one if no argument is given. The serial number is a 64 bit number, |
| 69 | represented as a sixteen-digit hexadecimal number, used to identify the |
| 70 | device during the mounting process. As a consequence, two devices with the |
| 71 | same serial number cannot be mounted at the same time on the same computer. |
| 72 | This is not the volume UUID used by Windows to locate files which have been |
| 73 | moved to another volume. |
| 74 | |
| 75 | The option \-\-new\-half\-serial only changes the upper part of the serial |
| 76 | number, keeping the lower part which is used by Windows unchanged. |
| 77 | In this case the optional argument is an eight-digit hexadecimal number. |
| 78 | |
| 79 | .TP |
| 80 | \fB\-n\fR, \fB\-\-no\-action\fR |
| 81 | Don't actually write to disk. |
| 82 | .TP |
| 83 | \fB\-q\fR, \fB\-\-quiet\fR |
| 84 | Reduce the amount of output to a minimum. |
| 85 | .TP |
| 86 | \fB\-v\fR, \fB\-\-verbose\fR |
| 87 | Increase the amount of output that |
| 88 | .B ntfslabel |
| 89 | prints. The label and the serial number are displayed. |
| 90 | .TP |
| 91 | \fB\-V\fR, \fB\-\-version\fR |
| 92 | Show the version number, copyright and license for |
| 93 | .BR ntfslabel . |
| 94 | .SH BUGS |
| 95 | There are no known problems with |
| 96 | .BR ntfslabel . |
| 97 | If you find a bug please send an email describing the problem to the |
| 98 | development team: |
| 99 | .br |
| 100 | .nh |
| 101 | ntfs\-3g\-devel@lists.sf.net |
| 102 | .hy |
| 103 | .SH AUTHORS |
| 104 | .B ntfslabel |
| 105 | was written by Matthew J. Fanto, with contributions from Anton Altaparmakov and |
| 106 | Richard Russon. |
| 107 | It was ported to ntfs-3g by Erik Larsson. |
| 108 | .SH AVAILABILITY |
| 109 | .B ntfslabel |
| 110 | is part of the |
| 111 | .B ntfs-3g |
| 112 | package and is available from: |
| 113 | .br |
| 114 | .nh |
| 115 | http://www.tuxera.com/community/ |
| 116 | .hy |
| 117 | .SH SEE ALSO |
| 118 | .BR mkntfs (8), |
| 119 | .BR ntfsprogs (8) |