New Harddrive Partition Expansion Problem
I have upgraded my Ubuntu hardrive from from 1 tb to 2 tb. I successfully cloned the original drive with "dd
" but had problems expanding the disk partitions to utilize the new space. After resizing the partitions, the computer booted normally, but Ubuntu went into "emergency mode" and would not start. I re-cloned the old drive to the new and now everything works normally, albeit without the new disk space being available.
The attached screenshot is a Gparted look at my new drive taken via a live boot USB. In more reading about this problem, I now know that I should have unmounted the swap partition before attempting to resize the expanded partition in which it resides.
I suspect my problem was found in resizing the expanded partition which contained the mounted swap partition. I am writing here to ask if there is anything else of which I should be aware. I expect the steps to follow, after unmounting the swap, are:
- Delete partition SDA6 (a sliver of an old windows install serving no purpose)
- Expand SDA2 (expanded partition) all the way to the right.
- Expand SDA7 (home partition) all the way to the right.
Also, there is now a drive SDC that appears to be the same drive as SDA. I do not know what this is, perhaps a leftover from my first attempt at expanding partitions? Here is a screen shot of that as well.
Is there anything else I should know and/or do? In reading through many posts on this forum, it sounds like this is a straight forward process with Gparted, but I am asking here for advice before I make a second attempt.
Your problem is that you have a 2TB HDD, but you're using a MBR partition table. Your 1TB source disk was MBR and was using extended partitioning. Disks larger than 2TB require a GPT partition table, and don't require extended partitioning. Cloning is not the best choice in this case.
You can check the partition tables by using sudo fdisk -l
.
Note: There are some partitioning problems on your original 1TB HDD that you don't necessarily want to clone to the new 2TB HDD.
Backup any new data on the 2TB, lay down a fresh GPT partition table (this WILL wipe the drive) using gparted
. Then copy over partitions using gparted
, clonezilla
, or some other application. (Not recommended plan).
Or, better yet, just do a fresh Ubuntu install to the 2TB (with the fresh GPT partition table from above). Don't manually allocate partitions, accept the Ubuntu installer's default partition scheme, unless you wish to create additional ext4 partitions, or NTFS partitions to share data with a Windows installation. Then copy over any data from the 1TB to the new 2TB HDD. (Best plan).
Note: If you wish to create a dual-boot configuration with Windows, install Windows FIRST, and then Ubuntu second.
Thank you all for your help. I asked in my original post "Is there anything else of which I should be aware" the clear answer is yes. I knew nothing of MBR vs GPT partitions. After reading the answers and comments and doing some more research, I have decided to redo the new 2TB drive as GPT and start with a fresh install with default partitioning before moving my data from the original drive.