Hi,
Thanks to everyone for the help to understand and sort out my dual booting. I now have a testing hard drive which works having a dual boot (legacy) chaining grub from Windows. I want to move the installation to an existing drive that has windows 10 on it.
I have copied the partitions over and now the two drives look as follows:
julian@Sputnik:~> sudo fdisk -l[sudo] password for root:
Disk /dev/sda: 335.37 GiB, 360100795904 bytes, 703321867 sectors
Disk model: SSD 360GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5ca1162e
Device Boot Start End Sectors Size Id Type
/dev/sda1 63 80324 80262 39.2M de Dell Utility
/dev/sda2 * 81920 30801919 30720000 14.6G 7 HPFS/NTFS/exFAT
/dev/sda3 30801920 646174565 615372646 293.4G 7 HPFS/NTFS/exFAT
/dev/sda4 646174566 703302407 57127842 27.2G f W95 Ext'd (LBA)
/dev/sda5 646174629 691224484 45049856 21.5G 83 Linux
/dev/sda6 691236954 703302407 12065454 5.8G 82 Linux swap / Solaris
Disk /dev/sdb: 298.09 GiB, 320072932352 bytes, 625142446 sectors
Disk model: FreeAgent Go
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa4b57300
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 63 568026269 568026207 270.9G 7 HPFS/NTFS/exFAT
/dev/sdb2 568027136 613076991 45049856 21.5G 83 Linux
/dev/sdb3 613076992 625142445 12065454 5.8G 82 Linux swap / Solaris
julian@Sputnik:~>
/dev/sda is the target system and /dev/sdb is the test source drive. Grub code is written to /dev/sdb2 and /dev/sda5
Apart from reinstating the chaining bootloader from Windows what else do I have to do? I know I have to edit the instation’s /etc/fstab which is currently:
julian@Sputnik:~> cat /etc/fstab
UUID=6e358ab4-64a8-4636-b0f7-9988631ae00e / ext4 defaults 0 1
UUID=344e85f0-c18b-4b70-989c-2fb1069de30b swap swap defaults 0 0
julian@Sputnik:~>
But not sure how I get the new UUID of the relevant partitions on /dev/sda
I have also looked at /etc/default/grub and there are no explicit references to drives either with UUID or /dev/sda1 or hd(0,1) type references so I don’t think I have to do anything for Grub to be happy.
Thanks in advance.