dearJulius.com

How to clone a drive from the Linux command line

© 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.

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


A Part of Julius LLC
Made with in NYC by Julius Choudhury
Name

AI,6,Amazon Prime,1,Android,31,Apple,44,Apps,35,Browsers,3,Camera,18,Chrome,2,Computing,17,Electronics,11,Electronics and Gadgets,12,Email,2,Entertainment,3,Facebook,3,Featured,13,Features,110,Fintech,1,Firefox,1,Gadgets,90,Games,123,Google,51,Industry,5,Instagram,4,Internet,30,iOS,2,iPad,9,iPhone,53,Laptops,19,Mac,1,Messenger,1,Metaverse,1,Microsoft,8,Mobile,24,News,1,Operating Systems,3,Portable Media,14,Printer,2,Security,30,Smartphone,90,Snapchat,2,Social Media,59,Spotify,1,Tech Advice,12,Tech Education,8,Tech Hacks,41,Tech Updates,3,Tutorials,56,TV,2,Twitter,4,Virtual Reality,1,VPN,2,Web & Social,17,WhatsApp,2,Wi-Fi,7,Windows,3,YouTube,7,
ltr
item
Tech Hacks | Tips, Tricks and How-Tos: 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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-WOqDEv3s9Ok_hDzsjBnv6lyzX6YOyWIs3WsNcFyGEuc7wjx_ra1LX0biDuH66NhC0P1Uqkxuu51GO6EU-_GFR4iNu185KKeR4-zWYLPibWG2einThohSBnM69xfU-ioXcxfM-jxePEU/s1600/1.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-WOqDEv3s9Ok_hDzsjBnv6lyzX6YOyWIs3WsNcFyGEuc7wjx_ra1LX0biDuH66NhC0P1Uqkxuu51GO6EU-_GFR4iNu185KKeR4-zWYLPibWG2einThohSBnM69xfU-ioXcxfM-jxePEU/s72-c/1.jpg
Tech Hacks | Tips, Tricks and How-Tos
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 Table of Content