Hard drive issues - Centos Stream 8
Posted: 2022/05/27 03:05:48
OK, haven't been here on a while, having some personal things going on in my life that take precedence, but I'm here now because I'm in the process of replacing my hard drives in my system (a 500gb primary drive, and a 2tb data drive) with a pair of 4tb drives.
I've done "dd" on each drive so that 500gb --> 4tb, and 2tb --> 4tb, using a USB drive with Centos 9 Steam "Live" installed on it so I can "dd" each of the other drives. However neither drive shows full capacity at 4tb. They both max out at 2tb. I did some googling and found that both of my current drives are MBR, and I need to convert them to GPT. I've done this with my data drive, then just manually copied all the data over, which took a couple days.
I'm trying to do the same with the 500gb drive, to format the replacement 4tb drive with GPT, but when I "dd" the drive, it resets back to MBR. I've thought I could just manually set up the partitions the same way as they are on the 500gb drive, then just "dd" the partitions instead of the entire drive, but I've failed miserably at this. At least I haven't destroyed the data on my 500gb drive (yet!)
Is there a quick and easy way to migrate my 500gb drive to the new 4tb drive and use the full capacity? As it is, I can't even make the remaining space a new partition because I'm still limited by the MBR to 2tb.
On this drive (/dev/sda) I have sda1 as my 1gb boot partition, then sda2 as my lvm2 pv, with the remainder of the drive space. The lvm2 is split as 50gb, 15.8gb swap, and 399gb /home.
How can I essentially do a "dd", but make the new drive a GPT partition and not MBR? I've looked into converting the new drive from MBR to GPT without losing data, but every time I've tried this, I end up losing the data (I do have a backup, so it's just frustration at this point.)
I've done "dd" on each drive so that 500gb --> 4tb, and 2tb --> 4tb, using a USB drive with Centos 9 Steam "Live" installed on it so I can "dd" each of the other drives. However neither drive shows full capacity at 4tb. They both max out at 2tb. I did some googling and found that both of my current drives are MBR, and I need to convert them to GPT. I've done this with my data drive, then just manually copied all the data over, which took a couple days.
I'm trying to do the same with the 500gb drive, to format the replacement 4tb drive with GPT, but when I "dd" the drive, it resets back to MBR. I've thought I could just manually set up the partitions the same way as they are on the 500gb drive, then just "dd" the partitions instead of the entire drive, but I've failed miserably at this. At least I haven't destroyed the data on my 500gb drive (yet!)
Is there a quick and easy way to migrate my 500gb drive to the new 4tb drive and use the full capacity? As it is, I can't even make the remaining space a new partition because I'm still limited by the MBR to 2tb.
On this drive (/dev/sda) I have sda1 as my 1gb boot partition, then sda2 as my lvm2 pv, with the remainder of the drive space. The lvm2 is split as 50gb, 15.8gb swap, and 399gb /home.
How can I essentially do a "dd", but make the new drive a GPT partition and not MBR? I've looked into converting the new drive from MBR to GPT without losing data, but every time I've tried this, I end up losing the data (I do have a backup, so it's just frustration at this point.)