-
Notifications
You must be signed in to change notification settings - Fork 35
/
ntfs2btrfs.8.in
68 lines (67 loc) · 2.62 KB
/
ntfs2btrfs.8.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.TH NTFS2BTRFS "8" "January 2024" "ntfs2btrfs @PROJECT_VERSION@" "System Administration"
.SH NAME
ntfs2btrfs \- convert ntfs filesystem to btrfs filesystem
.SH SYNOPSIS
\fBntfs2btrfs\fR [options] \fIdevice\fR
.SH DESCRIPTION
This is a tool which does in-place conversion of Microsoft's NTFS filesystem
to the open-source filesystem Btrfs, much as \fBbtrfs\-convert\fR does for ext2.
.SH OPTIONS
.PP
-c \fI<ALGO>\fR, --compress=\fI<ALGO>\fR
.RS 4
Uses the specified algorithm to recompress files that are compressed on the
NTFS volume; valid choices are \fIzstd\fR, \fIlzo\fR, \fIzlib\fR, or \fInone\fR.
If you don't specify any value, \fIzstd\fR will be used, assuming it's been
compiled in. Note that this will be ignored if you also select --no-datasum (see
below).
.RE
.PP
-h \fI<ALGO>\fR, --hash=\fI<ALGO>\fR
.RS 4
Uses the specified checksumming algorithm; valid choices are \fIcrc32c\fR,
\fIxxhash\fR, \fIsha256\fR, and \fIblake2\fR. The first of these will be used by
default, and should be fine for most purposes.
.RE
.PP
-r, --rollback
.RS 4
Tries to restore the original NTFS filesystem. See \fBROLLBACK\fR below.
.RE
.PP
-d, --no-datasum
.RS 4
Skips calculating checksums for existing data. Don't choose this unless you're
sure it's what you want.
.RE
.SH ROLLBACK
The original filesystem image is saved as \fIimage/ntfs.img\fR as a reflink copy. You
can restore this at any time by using the rollback option, provided that you've
not moved the data by doing a balance. Bear in mind that this restores the volume
to how it was when you did the conversion, meaning that any changes you've made
since will be lost.
.PP
If you decide to keep the conversion, you can remove the \fIimage\fR subvolume at
any point to free up space.
.SH XATTRS
Various bits of NTFS-specific data are stored as Btrfs xattrs, in a manner that
the Windows btrfs driver understands (\fBhttps://github.com/maharmstone/btrfs\fR). Some
should also be understood by tools such as Wine and Samba, but YMMV.
.IP \[bu] 2
The NTFS attribute value is stored as a hex string at \fIuser.DOSATTRIB\fR.
.IP \[bu] 2
The reparse points on directories are stored at \fIuser.reparse\fR. NTFS symlinks should
be converted into POSIX symlinks. The data for other reparse points will be stored as
the contents of the files.
.IP \[bu] 2
The NT security descriptor is stored as \fIsecurity.NTACL\fR.
.IP \[bu] 2
Alternate data streams on files are stored in the \fIuser\fR namespace, e.g. \fI:Zone.Identifier\fR
becomes \fIuser.Zone.Identifier\fR.
.SH SEE ALSO
.BR btrfs (8),
.BR mkfs.btrfs (8).
.SH AUTHOR
Written by Mark Harmstone (\[email protected]\fR).
.SH WEB
.IP https://github.com/maharmstone/ntfs2btrfs