Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tech:ubuntu_replace_disk [17-Nov-2013 1:24pm] – Corrected rsync source path and added error checking ian | tech:ubuntu_replace_disk [18-Nov-2013 12:11pm] (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: |