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