2022-12-24 17:42:40 +01:00
|
|
|
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
2022-12-24 22:54:34 +01:00
|
|
|
date="2022-12-24"
|
2022-12-24 17:09:22 +01:00
|
|
|
author="spanskiduh"
|
|
|
|
title="disk-utils"
|
2022-12-24 17:42:40 +01:00
|
|
|
description="click to read about disk-utils"
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
|
|
|
# Disk utils
|
|
|
|
|
|
|
|
## Use dd
|
|
|
|
It should work
|
|
|
|
`dd if=/dev/old of=/dev/new bs=64K conv=noerror,sync`
|
|
|
|
|
|
|
|
## Resize drive
|
|
|
|
|
|
|
|
### ext4
|
|
|
|
`resize2fs /dev/sdb 100G` -> resized my partition on hetzner from 50G to 100G ez
|
|
|
|
|
|
|
|
|
|
|
|
### Lvm
|
|
|
|
How to resize it:
|
|
|
|
`https://www.linuxtechi.com/extend-lvm-partitions/`
|
|
|
|
|
|
|
|
### Best page to check if you land here:
|
|
|
|
[red_hat](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/storage_administration_guide/part-file-systems)
|