Since the original SSD of my Laptop (sdb
) is relatively small (100GB) I recently installed another SSD (sda
) with a larger capacity (500GB). My idea was to clone the old SSD (sdb
) onto the new SSD (sda
) with the dd
command, therefore I ran the following command from a live-usb-ubuntu-stick:
sudo dd if=/dev/sdb of=/dev/sda bs=64K
in order to copy the contents of sdb
(older SSD) onto sda
(newer SSD).
After I ran this command, I had difficulties booting from either of the two SSDs (both of which are still installed in the laptop). I then ran the boot-repair
command and now GRUB starts normally when I boot from sda
. GRUB gives me the following options:
- Ubuntu
- Windows 7
- Ubuntu (on /dev/sda5)
- Windows 7 (on /dev/sda2)
The problem is that when I want to start the Ubuntu version on the newer SSD (option Ubuntu (on \dev\sda5)
in GRUB), GRUB still loads the Ubuntu installation on the old SSD \dev\sdb5
.
I think I might need to make manual changes in \boot\grub
or to the file \etc\fstab
on sda
?
\etc\fstab
currently has the following contents (on \dev\sda
):
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb5 during installation
UUID=c4055038-09dd-417e-88f1-228ffcf873c1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb6 during installation
UUID=9c79ac5d-78a8-4ab7-9141-8397cb686e25 none swap sw 0 0
EDIT:
When I choose Ubuntu (on \dev\sda5)
in GRUB and I then run lsblk
in a terminal I get the following:
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 102M 0 part
├─sda2 8:2 0 78.3G 0 part
├─sda3 8:3 0 1K 0 part
├─sda5 8:5 0 195.8G 0 part
└─sda6 8:6 0 7.9G 0 part
sdb 8:16 0 119.2G 0 disk
├─sdb1 8:17 0 102M 0 part
├─sdb2 8:18 0 78.3G 0 part
├─sdb3 8:19 0 1K 0 part
├─sdb5 8:21 0 31.8G 0 part /
└─sdb6 8:22 0 7.9G 0 part [SWAP]
lsblk -f
orsudo blkid
You should see the same UUIDs on both drives which will not work.