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