Moving dual boot system to larger SSD. Possible to expand ?
by Honest Abe from LinuxQuestions.org on (#56EG3)
My hardware upgrade path has already been captured in brief here.
So I decided to throw in an SSD upgrade too from 120G to 250G. The older SSD will likely revive an old laptop.
Currently the new SSD is attached via an SATA to USB converter and is detected by as follows -
Code:# fdisk -l /dev/sda /dev/sdc
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Disk model: KINGSTON SUV400S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F4AF905B-0F37-49BA-AD75-2C7C679838F7
Device Start End Sectors Size Type
/dev/sda1 2048 130258762 130256715 62.1G Microsoft basic data
/dev/sda3 138647552 142841855 4194304 2G EFI System
/dev/sda4 142841856 143863807 1021952 499M Windows recovery environment
/dev/sda5 143863808 144068607 204800 100M EFI System
/dev/sda6 144068608 144101375 32768 16M Microsoft reserved
/dev/sda7 144101376 230230015 86128640 41.1G Linux LVM
Disk /dev/sdc: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Disk model: Generic
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesNow the sda holds windows boot data (drive C -> sda1, recovery -> sda4, EFI -> sda5 and reserved -> sda6) and linux boot data (/ -> sda7 and /boot/efi -> sda3).
I know I can clone sda to sdc , make changes of uuids in fstab(chroot in sdc) and boot off it. But that accounts for a like for like disk partition scheme on sdc so I wont be able to use the increased disk space.
Regrettably, I am not using LVM for / and /boot/efi , just partitions.
Code:# df -hPT / /boot/efi
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext4 41G 15G 25G 37% /
/dev/sda3 vfat 2.0G 5.0M 2.0G 1% /boot/efiI also know that I can use this drive sdc like placeholder to copy my / data off sda, boot from a live USB, convert sda7 as lvm, copy the data back, create new initrd and see if it works. But I do not know if the other OS will survive it.
Do you think I need to take any further precaution here ? or it is too much of a hassle and I am better off installing fresh OS on the sdc.
All my data (linux+windows) is on a HDD so they are not being touched at all. I was wondering if anyone has done this already and could give me few pointers.


So I decided to throw in an SSD upgrade too from 120G to 250G. The older SSD will likely revive an old laptop.
Currently the new SSD is attached via an SATA to USB converter and is detected by as follows -
Code:# fdisk -l /dev/sda /dev/sdc
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Disk model: KINGSTON SUV400S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F4AF905B-0F37-49BA-AD75-2C7C679838F7
Device Start End Sectors Size Type
/dev/sda1 2048 130258762 130256715 62.1G Microsoft basic data
/dev/sda3 138647552 142841855 4194304 2G EFI System
/dev/sda4 142841856 143863807 1021952 499M Windows recovery environment
/dev/sda5 143863808 144068607 204800 100M EFI System
/dev/sda6 144068608 144101375 32768 16M Microsoft reserved
/dev/sda7 144101376 230230015 86128640 41.1G Linux LVM
Disk /dev/sdc: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Disk model: Generic
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesNow the sda holds windows boot data (drive C -> sda1, recovery -> sda4, EFI -> sda5 and reserved -> sda6) and linux boot data (/ -> sda7 and /boot/efi -> sda3).
I know I can clone sda to sdc , make changes of uuids in fstab(chroot in sdc) and boot off it. But that accounts for a like for like disk partition scheme on sdc so I wont be able to use the increased disk space.
Regrettably, I am not using LVM for / and /boot/efi , just partitions.
Code:# df -hPT / /boot/efi
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext4 41G 15G 25G 37% /
/dev/sda3 vfat 2.0G 5.0M 2.0G 1% /boot/efiI also know that I can use this drive sdc like placeholder to copy my / data off sda, boot from a live USB, convert sda7 as lvm, copy the data back, create new initrd and see if it works. But I do not know if the other OS will survive it.
Do you think I need to take any further precaution here ? or it is too much of a hassle and I am better off installing fresh OS on the sdc.
All my data (linux+windows) is on a HDD so they are not being touched at all. I was wondering if anyone has done this already and could give me few pointers.