2005-11-22 05:25:14 +08:00
|
|
|
.\" Copyright (c) 2002\-2004 Anton Altaparmakov.
|
|
|
|
.\" Copyright (c) 2005 Richard Russon.
|
2014-02-17 01:25:09 +08:00
|
|
|
.\" Copyright (c) 2012 Jean-Pierre Andre.
|
2002-11-29 20:16:35 +08:00
|
|
|
.\" This file may be copied under the terms of the GNU Public License.
|
2002-12-02 02:54:13 +08:00
|
|
|
.\"
|
2014-02-17 01:25:09 +08:00
|
|
|
.TH NTFSLABEL 8 "January 2012" "ntfs-3g @VERSION@"
|
2002-11-29 20:16:35 +08:00
|
|
|
.SH NAME
|
|
|
|
ntfslabel \- display/change the label on an ntfs file system
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B ntfslabel
|
2005-11-22 05:25:14 +08:00
|
|
|
[\fIoptions\fR] \fIdevice \fR[\fInew\-label\fR]
|
2002-11-29 20:16:35 +08:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B ntfslabel
|
|
|
|
will display or change the file system label on the ntfs file system located on
|
|
|
|
.IR device .
|
2012-01-24 01:22:59 +08:00
|
|
|
It can also change the serial number of the
|
|
|
|
.IR device .
|
2002-11-29 20:16:35 +08:00
|
|
|
.PP
|
|
|
|
If the optional argument
|
2005-11-22 05:25:14 +08:00
|
|
|
.I new\-label
|
2012-01-24 01:22:59 +08:00
|
|
|
is not present, and no option is present,
|
2002-11-29 20:16:35 +08:00
|
|
|
.B ntfslabel
|
|
|
|
will simply display the current file system label.
|
|
|
|
.PP
|
|
|
|
If the optional argument
|
2005-11-22 05:25:14 +08:00
|
|
|
.I new\-label
|
2002-11-29 20:16:35 +08:00
|
|
|
is present, then
|
|
|
|
.B ntfslabel
|
|
|
|
will set the file system label to be
|
2005-11-22 05:25:14 +08:00
|
|
|
.IR new\-label .
|
2002-11-29 20:16:35 +08:00
|
|
|
NTFS file system labels can be at most 128 Unicode characters long; if
|
2005-11-22 05:25:14 +08:00
|
|
|
.I new\-label
|
2002-11-29 20:16:35 +08:00
|
|
|
is longer than 128 Unicode characters,
|
|
|
|
.B ntfslabel
|
|
|
|
will truncate it and print a warning message.
|
|
|
|
.PP
|
|
|
|
It is also possible to set the file system label using the
|
|
|
|
.B \-L
|
|
|
|
option of
|
|
|
|
.BR mkntfs (8)
|
|
|
|
during creation of the file system.
|
2005-11-22 05:25:14 +08:00
|
|
|
.SH OPTIONS
|
|
|
|
Below is a summary of all the options that
|
|
|
|
.B ntfslabel
|
|
|
|
accepts. Nearly all options have two equivalent names. The short name is
|
|
|
|
preceded by
|
|
|
|
.B \-
|
|
|
|
and the long name is preceded by
|
|
|
|
.BR \-\- .
|
|
|
|
Any single letter options, that don't take an argument, can be combined into a
|
|
|
|
single command, e.g.
|
|
|
|
.B \-fv
|
|
|
|
is equivalent to
|
|
|
|
.BR "\-f \-v" .
|
|
|
|
Long named options can be abbreviated to any unique prefix of their name.
|
|
|
|
.TP
|
|
|
|
\fB\-f\fR, \fB\-\-force\fR
|
|
|
|
This will override some sensible defaults, such as not working with a mounted
|
|
|
|
volume. Use this option with caution.
|
|
|
|
.TP
|
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
|
|
Show a list of options with a brief description of each one.
|
2012-01-24 01:22:59 +08:00
|
|
|
.TP
|
|
|
|
\fB\-\-new\-serial\fR[\fI=ssssssssssssssss\fR], or
|
|
|
|
.TP
|
|
|
|
\fB\-\-new\-half\-serial\fR[\fI=ssssssss\fR]
|
|
|
|
Set a new serial number to the device, either the argument value, or a random
|
|
|
|
one if no argument is given. The serial number is a 64 bit number,
|
|
|
|
represented as a sixteen-digit hexadecimal number, used to identify the
|
|
|
|
device during the mounting process. As a consequence, two devices with the
|
|
|
|
same serial number cannot be mounted at the same time on the same computer.
|
|
|
|
This is not the volume UUID used by Windows to locate files which have been
|
|
|
|
moved to another volume.
|
|
|
|
|
|
|
|
The option \-\-new\-half\-serial only changes the upper part of the serial
|
|
|
|
number, keeping the lower part which is used by Windows unchanged.
|
|
|
|
In this case the optional argument is an eight-digit hexadecimal number.
|
|
|
|
|
2005-11-22 05:25:14 +08:00
|
|
|
.TP
|
|
|
|
\fB\-n\fR, \fB\-\-no\-action\fR
|
|
|
|
Don't actually write to disk.
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Reduce the amount of output to a minimum.
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase the amount of output that
|
|
|
|
.B ntfslabel
|
2012-01-24 01:22:59 +08:00
|
|
|
prints. The label and the serial number are displayed.
|
2005-11-22 05:25:14 +08:00
|
|
|
.TP
|
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
|
|
|
Show the version number, copyright and license for
|
|
|
|
.BR ntfslabel .
|
|
|
|
.SH BUGS
|
|
|
|
There are no known problems with
|
|
|
|
.BR ntfslabel .
|
|
|
|
If you find a bug please send an email describing the problem to the
|
|
|
|
development team:
|
|
|
|
.br
|
|
|
|
.nh
|
2010-12-16 15:19:15 +08:00
|
|
|
ntfs\-3g\-devel@lists.sf.net
|
2005-11-22 05:25:14 +08:00
|
|
|
.hy
|
|
|
|
.SH AUTHORS
|
2002-12-02 02:54:13 +08:00
|
|
|
.B ntfslabel
|
2005-11-22 05:25:14 +08:00
|
|
|
was written by Matthew J. Fanto, with contributions from Anton Altaparmakov and
|
|
|
|
Richard Russon.
|
2011-03-23 17:09:20 +08:00
|
|
|
It was ported to ntfs-3g by Erik Larsson.
|
2002-11-29 20:16:35 +08:00
|
|
|
.SH AVAILABILITY
|
|
|
|
.B ntfslabel
|
2005-11-22 05:25:14 +08:00
|
|
|
is part of the
|
2010-12-16 15:41:22 +08:00
|
|
|
.B ntfs-3g
|
2005-11-22 05:25:14 +08:00
|
|
|
package and is available from:
|
|
|
|
.br
|
|
|
|
.nh
|
2010-12-16 15:44:18 +08:00
|
|
|
http://www.tuxera.com/community/
|
2005-11-22 05:25:14 +08:00
|
|
|
.hy
|
2002-11-29 20:16:35 +08:00
|
|
|
.SH SEE ALSO
|
2002-11-29 23:26:49 +08:00
|
|
|
.BR mkntfs (8),
|
|
|
|
.BR ntfsprogs (8)
|