Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 807 Bytes

File metadata and controls

42 lines (23 loc) · 807 Bytes

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

Fdisk

lsblk -> to list all the drives

sudo fdisk /dev/sda -> to start the tool

Lvm

How to resize it: https://www.linuxtechi.com/extend-lvm-partitions/

Best page to check if you land here:

red_hat

Format usb-drive ntfs format

lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT,MODEL

sudo umount /dev/sdX1

sudo parted /dev/sdX --script mklabel gpt
sudo parted /dev/sdX --script mkpart primary ntfs 1MiB 100%

sudo mkfs.ntfs -f -L USB /dev/sdX1