Skip to content

Commit

Permalink
TIL: scrub and check btrfs filesystems
Browse files Browse the repository at this point in the history
  • Loading branch information
pew committed Nov 30, 2023
1 parent 98e09e8 commit a5a0c89
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion man/btrfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,33 @@ tags:

# btrfs

## resize btrfs filesystem
## check and scrub btrfs filesystem

### scrub

this just checks checksums of the data, it does not repair a filesystem

**start the process:**

```shell
sudo btrfs scrub start /
```

**check the status:**

```shell
sudo btrfs scrub status /
```

### check

should be done on a readonly or not mounted filesystem, however it can be run on a mounted filesystem as well, with the `--readonly` and `--force` flag you can make sure that nothing will be modified:

```shell
btrfs check --readonly --force /dev/md0
```

## resizing btrfs filesystems

to max:

Expand Down

0 comments on commit a5a0c89

Please sign in to comment.