Initial
This commit is contained in:
41
docs/linux/filesystems.md
Normal file
41
docs/linux/filesystems.md
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
# 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
|
||||
```
|
Reference in New Issue
Block a user