0

After reading on threads, I'm still confused and need your help. My laptop is Lenovo G580 20157 - 2 Hard Drives (sda and sdb)

sda(500GB) - SSD

sdb(250GB) - Ubuntu 20.04.2 LTS

see the picture attached

I want to copy/clone my OS to SSD using: dd command sudo dd bs=4M conv=sync,noerror status=progress if=/dev/sdb of=/dev/sda

As stated my OS is on sdb which I will use to execute the command in terminal.

  1. Can I execute the command while using the live running OS(sdb) to clone it into sda?
  2. After clone, does my previous hard disk(sdb) still have the OS and files - no changes?

Sadly, I can't boot clonezilla and gparted on bootable cd/flash drives because of bios issue.

Any comments/suggestion will be much appreciated thanks in advance guys keep safe :)

8
  • If you can't access BIOS (probably UEFI, not BIOS) then you shouldn't be doing what you're asking here, at all, until you figure out HOW to access the firmware settings. Reason is even if you succeed in cloning the drive and bootloaders, in one way or another, you then must change the the boot options accordingly. Apr 19, 2021 at 16:34
  • The dd will totally erase sdb drive and convert it to 250GB. Since UEFI, you probably have gpt partitioning and backup gpt partition is at end of 250GB drive. And you will not be able to boot with both drives connected as duplicate UUID/GUIDs are not allowed. Major repairs then required to "fix" sdb drive. Better just to do new install.
    – oldfred
    Apr 19, 2021 at 17:07
  • Thanks @ChaganAuto Apr 19, 2021 at 18:18
  • Thanks @oldfred my plan is to copy and retain incase something went wrong. The old files from sdb to sda is there a workaround or idea? I'm using caddy drive on my laptop(sdb) and the dedicated is sda. If I successfully backed up the data to sda, I'll try to remove the sdb from caddy then instead placed my sda to it what do you think? Apr 19, 2021 at 18:29
  • What do you think on my idea above will it work?@ChanganAuto Apr 19, 2021 at 18:54

0

You must log in to answer this question.

Browse other questions tagged .