Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tech:ubuntu_replace_disk [16-Nov-2013 2:14pm] – created 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: | ||
Line 63: | Line 72: | ||
Copy the data from the old disk to the new one using (omit the '' | Copy the data from the old disk to the new one using (omit the '' | ||
- | < | + | < |
+ | |||
+ | Review the '' | ||
+ | |||
+ | < | ||
- | <note tip>If you suspect any files may have changed during the copy process it is possible to simply re-run the above command to update them. However, it is best to stop any processes that modify files on your data disk during the data transfer.</ | + | <note tip>If you suspect any files may have changed during the copy process it is possible to simply re-run the rsync command to update them. However, it is best to stop any processes that modify files on your data disk during the data transfer.</ |
Now we must update ''/ | Now we must update ''/ |