====== Festplatten-Partitionierung ======
\\
===== Partitionierung >2TB =====
* Installation einer ca. 100 MB großen GRUB-Partition:
~# parted /dev/sda
(parted) mkpart primary 1 101
(parted) p
...
Number Start End Size File system Name Flags
1 0.01MB 101MB 100MB primary
...
(parted) set 1 bios_grub on
(parted) p
...
Number Start End Size File system Name Flags
1 0.01MB 101MB 100MB primary bios_grub
...
(parted) q
\\
===== MBR und Partitionstabelle =====
* Sichern des MBR:
~# dd if=/dev/sda of=~/sda.mbr bs=512 count=1
\\
* Wiederherstellen des MBR:
~# dd if=~/sda.mbr of=/dev/sda count=1
\\
* Sichern der Partitionstabelle:
~# sfdisk -d /dev/sda > ~/partition.out
\\
* Wiederherstellen der Partition:
~# sfdisk /dev/sda < ~/partition.out
\\
--- //[[steffen.bornemann@gmx.de|Steffen Bornemann]] 08.11.2018//
\\
{{tag>Partitionierung MBR GRUB}}