Replace My Cloud Gen2 harddisk, need help with partition parameter

Hello all,

I’m trying to swap out the existing 8TB drive with a new 10TB drive.

I believe Fox’s instruction should work fine but the only problem is it’s for 8TB drive as below.

parted /dev/sda
mklabel gpt
mkpart primary 1049kB 2149MB
mkpart primary 8591MB -1MB
mkpart primary 7517MB 8591MB
mkpart primary 2149MB 3222MB
mkpart primary 3222MB 4296MB
mkpart primary 4296MB 6443MB
mkpart primary 6443MB 7517MB
mkswap /dev/sda1
mkfs.ext4 /dev/sda3

Would someone please let me know the command for 10TB drive? Many thanks!!

No the directions are not for an 8TB drive. They should work on almost any sized drive. The line: mkpart primary 8591MB -1MB is (IIRC) what instructs mkpart program to use the full size of the drive for the user data partition.

That confuses me more…

so what do these command do? Or I simply use the same command on my 10TB drive then it will come out right? Thank you.

Those commands are setting up the various partitions that the My Cloud OS uses/needs. The mkpart primary 8591MB -1MB line is telling the partition program to use all the space on the drive (regardless of size) above 8591MB partition start point for that partition. All the other partitions are created below the 8591MB partition start point.

Typically you would use those same commands regardless of drive size.

Maybe it would be easier to say that the 8591MB -1MB command says to make the partition
starting at 8591MB thru the end of the disk whether the disk is 6TB or 8TB or 10TB.

Hmm… Okay… I think I am getting it.

Just out of curiosity, does these commands need to be run in such order?

Thanks guys!