Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
before doing any actual writing you should back up the whole drive, the tool for this is ddrescue and you need obviously another hard drive with at least 250 GB free space to accomplish this.
Alright ; I've heard of ddrescue , but never used it .
I HAVE used cp in CLI successfully - cp /dev/sd1 /dev/sd2 , to copy an ENTIRE drive , including MBR . WITH multiple partitions and OS'es ...edit : should have said cp /dev/sda /dev/sdb
You guys think cp would work as well as ddrescue , in this case ?
Quote:
Originally Posted by Emerson
cbbuccaneere,
before doing any actual writing you should back up the whole drive, the tool for this is ddrescue and you need obviously another hard drive with at least 250 GB free space to accomplish this.
Last edited by cbbuccaneere; 03-04-2021 at 08:24 AM.
cp cannot copy multiple partitions (or at least not the best tool to do that). try dd.
What then would be correct syntax for entire disk 1 -> entire disk 2 ? ddrescue x y
ed.: I looked at syntax options in ddrescue --help , but don't really need to get it wrong !!!
-------------------
My example previous post was bad - cp /dev/sda /dev/sdb . I DID do this task once successfully with 2 4-partition , multi-OS disks , including MBR , about 10 years ago .
Copied disk booted perfectly . Does cp no longer do this ???
Last edited by cbbuccaneere; 03-04-2021 at 08:41 AM.
no, that is the tool dd or dcfldd (which is an enhanced dd). https://www.linuxnix.com/what-you-sh...ux-dd-command/
you can use ddrescue or testdisk after that.
dd is used to make a copy, ddrescue or testdisk is used to recover data/files from it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.