dearJulius.com

$hide=home

How to clone a drive from the Linux command line

Jack Wallen shows you how easy it is to clone a drive in Linux.

© TechRepublic   How to clone a drive from the Linux command line

By Jack Wallen, TechRepublic


How to clone a drive from the Linux command lineJack Wallen shows you how easy it is to clone a drive in Linux.

I'll walk through the process of cloning a drive in Linux. This process actually isn't too terribly difficult--especially if you're comfortable with the Linux command line interface. But how do you do it? 

First you'll need a bootable ISO image, of just about any Linux distribution, on a flash drive. You'll also need a new drive to clone to. That target drive must be as big or bjgger than the drive you're cloning. I prefer to go with bigger, just to be safe.

Once you have all of that ready, boot the machine with the source drive, using the bootable Linux distribution. Once you've logged in, make sure to attach the target drive to the system and find out where the target drive is located with the command:

cat /proc/partitions

You should see a listing of all available drives, but they shouldn't be mounted. You'll need the name of the source and target drives.

So let's say the source drive is sda and the target drive is sdd. It is crucial that you get those names right, otherwise you could trash all of the data on your source drive and wind up with a non-bootable, not cloned target.

With that information at hand, you can then clone the drive with the command:

sudo dd bs=4M conv=sync,noerror status=progress if=/dev/sda of=/dev/sdd

Depending on the size of the drive and how much data is on the drive, this command can take some time to complete. When it does complete, you should be able to boot from the target drive as though it were the original.

And that's how easy it is to clone a drive from the Linux command line.

COMMENTS



|Featured Content_$type=three$c=3$l=0$m=0$s=hide$rm=0


Made with in NYC
Name

Android,16,Apple,23,Apps,21,Camera,10,Computing,16,Electronics,8,Electronics and Gadgets,3,Email,1,Entertainment,1,Featured,10,Features,76,Gadgets,53,Games,26,Google,25,Industry,5,Internet,24,iPad,4,iPhone,16,Laptops,9,Microsoft,6,Mobile,22,News,1,Operating Systems,3,Portable Media,14,Printer,2,Security,23,Smartphone,52,Social Media,49,Tech Advice,12,Tech Education,8,Tech Hacks,21,Tech Updates,3,Tutorials,17,TV,2,Web & Social,17,WhatsApp,2,Wi-Fi,5,YouTube,5,
ltr
item
Tech Magazine: How to clone a drive from the Linux command line
How to clone a drive from the Linux command line
Jack Wallen shows you how easy it is to clone a drive in Linux.
https://1.bp.blogspot.com/-Xf1g8Z13wCU/XkU7EhoypRI/AAAAAAAB3M8/PaF3vSHZdTM-okG4J5bNGokn1-7oqRLKgCLcBGAsYHQ/s1600/1.jpg
https://1.bp.blogspot.com/-Xf1g8Z13wCU/XkU7EhoypRI/AAAAAAAB3M8/PaF3vSHZdTM-okG4J5bNGokn1-7oqRLKgCLcBGAsYHQ/s72-c/1.jpg
Tech Magazine
https://tech.dearjulius.com/2020/02/how-to-clone-a-drive-from-the-linux-command-line.html
https://tech.dearjulius.com/
https://tech.dearjulius.com/
https://tech.dearjulius.com/2020/02/how-to-clone-a-drive-from-the-linux-command-line.html
true
5526239608669527925
UTF-8
Loaded All Posts Not found any posts VIEW ALL Read More Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy