Files
cmp-docs/docs/linux/filesystems.md
2024-01-27 07:49:05 +12:00

42 lines
634 B
Markdown

# LVM
#### Extend
```bash
lvextend -L+1G /dev/vg4/homevol
```
# Btrfs
#### Resize
```bash
btrfs filesystem resize max /mnt/dmp/
```
#### Defragment / compress
```bash
btrfs filesystem defragment -v -clzo /boot/*
```
#### Set RO / RW
```bash
btrfs property set -f . ro false
btrfs property set -f . ro true
```
#### Create shapshot
```bash
btrfs subvolume snapshot xyz xyz-snapshot-path-name
```
#### Delete shapshot
```bash
btrfs subvolume delete xyz-snapshot-path-name
```
# Ext4
#### Resize
```bash
resize2fs /dev/device [size]
```
#### if superblock fail
```bash
dumpe2fs /dev/sda5 | grep -i backup
fsck -b 32768 /dev/sda5
```