table of contents
other versions
- jessie 3.17-1.1
- jessie-backports 4.7.3-1~bpo8+1
- stretch 4.7.3-1
- testing 4.20.1-2
- stretch-backports 4.17-1~bpo9+1+b1
- unstable 4.20.2-1
BTRFS-CONVERT(8) | Btrfs Manual | BTRFS-CONVERT(8) |
NAME¶
btrfs-convert - convert from ext2/3/4 filesystem to btrfs in-placeSYNOPSIS¶
btrfs-convert [options] <device>DESCRIPTION¶
btrfs-convert is used to convert existing ext2/3/4 filesystem image to a btrfs filesystem in-place. The original filesystem image is accessible subvolume named ext2_saved as file image.# btrfs subvolume delete /mnt/ext2_saved
# btrfs filesystem defrag -v -r -f -t 32M /mnt/btrfs
# btrfs balance start -m /mnt/btrfs
OPTIONS¶
-d|--no-datasumdisable data checksum calculations and set the NODATASUM
file flag, this can speed up the conversion
-i|--no-xattr
ignore xattrs and ACLs of files
-n|--no-inline
disable inlining of small files to metadata blocks, this
will decrease the metadata consumption and may help to convert a filesystem
with low free space
-N|--nodesize <SIZE>
set filesystem nodesize, the tree block size in which
btrfs stores its metadata. The default value is 16KB (16384) or the page size,
whichever is bigger. Must be a multiple of the sectorsize, but not larger than
65536. See mkfs.btrfs(8) for more details.
-r|--rollback
rollback to the original ext2/3/4 filesystem if
possible
-l|--label <LABEL>
set filesystem label during conversion
-L|--copy-label
use label from the converted filesystem
-O|--features <feature1>[,<feature2>...]
A list of filesystem features turned on at conversion
time. Not all features are supported by old kernels. To disable a feature,
prefix it with ^. Description of the features is in section
FILESYSTEM FEATURES of mkfs.btrfs(8).
To see all available features that btrfs-convert supports run:
btrfs-convert -O list-all
-p|--progress
show progress of conversion (a heartbeat indicator and
number of inodes processed), on by default
--no-progress
disable progress and show only the main phases of
conversion
EXIT STATUS¶
btrfs-convert will return 0 if no error happened. If any problems happened, 1 will be returned.SEE ALSO¶
mkfs.btrfs(8)10/02/2016 | Btrfs v4.7.3 |