Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| tech:ubuntu_replace_disk [2013-11-17 13:24 (12 years ago)] – Corrected rsync source path and added error checking ian | tech:ubuntu_replace_disk [2013-11-18 12:11 (12 years ago)] (current) – Swapped fdisk to parted for disks greater than 2TB ian | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| In the unlucky event that one of your data disks starts to show [[wp> | In the unlucky event that one of your data disks starts to show [[wp> | ||
| - | <note tip>This guide assumes your old disk has a single partition, is formatted with the EXT4 file-system and is mounted at /srv during boot.</ | + | <note tip>This guide assumes your old disk has a single partition, is formatted with the EXT4 file-system and is mounted at /srv during boot. If this is not the case, some of the commands below may need appropriate modifications for your environment.</ |
| ===== Supported Releases ===== | ===== Supported Releases ===== | ||
| Line 44: | Line 44: | ||
| Now create a partition on the new disk using: | Now create a partition on the new disk using: | ||
| - | < | + | < |
| - | The fdisk menu will appear. | + | If your new disk is 2TB or below, |
| - | - " | + | < |
| - | - " | + | mklabel msdos |
| - | - "1" for the first partition | + | mkpart pri 1 -1 |
| - | - " | + | quit |
| + | </ | ||
| + | |||
| + | If your new disk is larger than 2TB, complete | ||
| + | |||
| + | < | ||
| + | mklabel gpt | ||
| + | mkpart pri 1 -1 | ||
| + | quit | ||
| + | </ | ||
| Now format the new partition using: | Now format the new partition using: | ||