List all Disk
lsblk fdisk -l sudo lshw -C disk
Mount Disk (sdb durch gewünschte Disk ersetzen)
fdsik /dev/sdb
n – Create partition
n
p – print partition table
p
d – delete a partition
d
q – exit without saving the changes
q
w – write the changes and exit.
w
P-Primary: Darf es bis zu 4 Geben E-Extended:
Default wenn 1. Partition
W: Für Speichern und beenden
At first we need to create a new folder, where we wanna mount our disk. Then we can mount our Disk to this place.
Mount at startup
open file "etc/fstab" with sudo rights
Add line "/dev/sda4 /media/LinuxLaufwerk ext4 defaults 0 2"
Option Dump default 0
Option pass for root filesystem 1 rest 2
Last updated 4 years ago
mkfs.ext4 /dev/sdb1n
mkdir /media/newdisk mount /dev/sdb1 /media/newdisk