• Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Tech Tips and Tutorials
Menu
  • Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Home  /  Linux  /  Hardisk clone using Linux live USB and external HDD enclosure

Hardisk clone using Linux live USB and external HDD enclosure

Written by
Linux Leave a Comment

It is very common these days replacing the traditional hard drive on your laptop with an SSD . There are lot of advantages of doing it in terms of speed ,performance etc .So here we are using an external hardisk enclosure and a Linux mint live USB stick to acheive it .

The external hardisk enclosure here is a cheap chineese one which you can get from an ebay or amazon store and costs less than 4$ . You will see from cheap to very expesnive options but this will do the job .

Linux mint live USB image can be downloaded from their official website and use a USB image burner tool like Win32 disk manager or Rufus to create the live image. So connect the Live USB and reboot your PC and from BIOS choose the option boot to external USB . Once you get the desktop access, login to the shell and execute the below command :

lsblk

So here you will see ‘sda’ is my laptop harddisk and ‘sdc’ is the crucial SSD .The disk names might be different on your PC, so make sure you are DD ing the correct disks

Now you can run the dd command ,

dd if=/dev/sda of=/dev/sdc bs=1M

This will take time depends upon the size of your original harddisk . So once the dd is finished you can replace your laptop HDD with SSD drive.

So once you have the OS copied and boots up for the first time , you still see the same storage capacity in your drive .So you need to extend the existing drive or you can add as a seperate drive in Windows > Computer Managemnet > Storage > Disk Management .

WARNING: Run dd command at your own risk as choosing the wrong drive will wipe out the existing contents , we are not responsible for any damages .

DD command can also be used to create a copy of your disk/SD card image . In that case, connect your disk to your Linux pc and run ‘lsblk’ first to verify the correct disk name , for eg : if my external disk is ‘sdb’ , the command will be as below : make sure you point the path to the ‘write’ directory and also give a name to the new copy/backup imagefile . If you don’t give a name to the new image the ‘dd’ command will not execute .

dd if=/dev/sdb of=/home/images/mynewimage.img bs=1M

Share On
Share on Facebook
Share on Twitter
Share on Google+
Share on Whatsapp

 Previous Article Bash script to ping hosts and alert via email
Next Article   Ylva commandline password manager in Linux

Related Posts

  • Linux Shell Scripts for System Administrators

  • SOCKS PROXY

  • How to grep IP addresses from log files in Linux

Leave a Reply

Cancel reply

  • Popular Posts
  • Recent Posts
  • Linux Shell Scripts for System Administrators
  • Cacti 1.1.38 ERROR Opening .rrd No Such file or directory
  • Apache configuration for Cacti
  • How to create RAM disk in Ubuntu 18.04
  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to install XAMPP and access phpMyAdmin in MAC OS
  • How to increase the root volume in a Linux ec2 instance

Linux

  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to grep IP addresses from log files in Linux
  • How to empty or delete a large file in Linux

Categories

  • AWS (5)
  • FreeBSD (12)
  • Linux (29)
  • Networking (3)
  • Python (5)
  • Uncategorized (4)
  • WebDev (1)
  • Connect on Facebook
  • Connect on YouTube
© Copyright 2020.TechieNix. All Rights Reserved.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.