# man > btrfs-find-root(8)

[BTRFS-FIND-ROOT(8)](https://www.chedong.com/phpMan.php/man/BTRFS-FIND-ROOT/8/markdown)                          Btrfs Manual                          [BTRFS-FIND-ROOT(8)](https://www.chedong.com/phpMan.php/man/BTRFS-FIND-ROOT/8/markdown)



## NAME
       btrfs-find-root - filter to find btrfs root

## SYNOPSIS
       **btrfs-find-root** [options] _<device>_

## DESCRIPTION
       **btrfs-find-root** is used to find the satisfied root, you can filter by root tree’s objectid,
       generation, level.

## OPTIONS
### -a
           Search through all metadata extents, even the root has been already found.

       -g _<generation>_
           Filter root tree by it’s original transaction id, tree root’s generation in default.

       -o _<objectid>_
           Filter root tree by it’s objectid,tree root’s objectid in default.

       -l _<level>_
           Filter root tree by B-+ tree’s level, level 0 in default.

## EXIT STATUS
       **btrfs-find-root** will return 0 if no error happened. If any problems happened, 1 will be
       returned.

## SEE ALSO
       [**mkfs.btrfs**(8)](https://www.chedong.com/phpMan.php/man/mkfs.btrfs/8/markdown)



Btrfs v5.16.2                                02/16/2022                           [BTRFS-FIND-ROOT(8)](https://www.chedong.com/phpMan.php/man/BTRFS-FIND-ROOT/8/markdown)
