Zum Inhalt springen

Linux/RAID/Partitionierung: Unterschied zwischen den Versionen

Aus Foxwiki
K Textersetzung - „ I/O “ durch „ I/O
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 5: Zeile 5:
* Am Anfang und Ende des Datenträgers Sektoren freilassen
* Am Anfang und Ende des Datenträgers Sektoren freilassen


== fdisk ==
== Datenträgerbezeichnungen ==
; Bezeichnungen der Datenträger ermitteln
; Bezeichnungen der Datenträger ermitteln
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
sudo fdisk -l
sudo fdisk -l
</syntaxhighlight>
</syntaxhighlight>


== Datenträger partitionieren ==
== Datenträger partitionieren ==
<syntaxhighlight lang="bash" highlight="1,12,17,19-21,26,28,29,34,48" line>
<syntaxhighlight lang="bash" highlight="1,12,17,19-21,26,28,29,34,48" line copy>
sudo fdisk /dev/sdc
sudo fdisk /dev/sdc
  Welcome to fdisk (util-linux 2.33.1)
  Welcome to fdisk (util-linux 2.33.1)
Zeile 25: Zeile 25:
GPT (GUID-Partition-Table) wird angelegt
GPT (GUID-Partition-Table) wird angelegt
  Command (m for help): g
  Command (m for help): g
 
  Created a new GPT disklabel (GUID: 748568BC-EC8C-F34A-B822-45C2E267CFFB)
  Created a new GPT disklabel (GUID: 748568BC-EC8C-F34A-B822-45C2E267CFFB)
   
   
Zeile 39: Zeile 39:
Partition als RAID-Partition markieren
Partition als RAID-Partition markieren
  Command (m for help): t
  Command (m for help): t
 
  Selected partition 1
  Selected partition 1
  Partition type (type L to list all types): 42
  Partition type (type L to list all types): 42
Zeile 47: Zeile 47:
Änderungen auf Korrektheit überprüfen
Änderungen auf Korrektheit überprüfen
  Command (m for help): p
  Command (m for help): p
 
  Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
  Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
  Disk model: WDC WD20EZRX-00D
  Disk model: WDC WD20EZRX-00D
  Units: sectors of 1 * 512 = 512 bytes
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  [[I/O]] size (minimum/optimal): 4096 bytes / 4096 bytes
  Disklabel type: gpt
  Disklabel type: gpt
  Disk identifier: 748568BC-EC8C-F34A-B822-45C2E267CFFB
  Disk identifier: 748568BC-EC8C-F34A-B822-45C2E267CFFB

Aktuelle Version vom 20. Juni 2026, 08:49 Uhr

Linux/RAID/Partitionierung

Beschreibung

Datenträger eines RAIDs identisch partitionieren

  • Am Anfang und Ende des Datenträgers Sektoren freilassen

Datenträgerbezeichnungen

Bezeichnungen der Datenträger ermitteln
sudo fdisk -l

Datenträger partitionieren

sudo fdisk /dev/sdc
 Welcome to fdisk (util-linux 2.33.1)
 Changes will remain in memory only, until you decide to write them
 Be careful before using the write command
 
 Device does not contain a recognized partition table
 Created a new DOS disklabel with disk identifier 0xdfca4904
 
 Command (m for help)

GPT (GUID-Partition-Table) wird angelegt
 Command (m for help): g
 
 Created a new GPT disklabel (GUID: 748568BC-EC8C-F34A-B822-45C2E267CFFB)
 
Partitionstabelle anlegen
 Command (m for help): n
 
 Partition number (1-128, default 1): 1
 First sector (2048-3907029134, default 2048): 2048
 Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-3907029134, default 3907029134): +1842G
 
 Created a new partition 1 of type Linux filesystem and of size 1,8 TiB

Partition als RAID-Partition markieren
 Command (m for help): t
 
 Selected partition 1
 Partition type (type L to list all types): 42
 
 Changed type of partition Linux filesystem to Linux RAID

Änderungen auf Korrektheit überprüfen
 Command (m for help): p
 
 Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
 Disk model: WDC WD20EZRX-00D
 Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 4096 bytes
 [[I/O]] size (minimum/optimal): 4096 bytes / 4096 bytes
 Disklabel type: gpt
 Disk identifier: 748568BC-EC8C-F34A-B822-45C2E267CFFB
 
 Device Start End Sectors Size Type
 /dev/sdc1 2048 3862956031 3862953984 1,8T Linux RAID

Änderungen schreiben
 Command (m for help): w
 
 The partition table has been altered
 Calling ioctl() to re-read partition table
 Syncing disks