spanskiblog/content/posts/disk-utils.md

26 lines
572 B
Markdown
Raw Normal View History

2022-12-24 17:42:40 +01:00
2022-12-24 17:09:22 +01:00
+++
2023-02-27 21:59:02 +01:00
date="2023-02-03"
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)