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.
I have a dying MBR-based 1tb drive with 4 partitions (system recovery, Windows, some unknown one and a 2mb spare) that I want to move to a new 2tb drive.
As for getting Windows to behave, simply point the BIOS to it - or remove the first (dodgy) disk.
I'd have to have a second enclosure, which I don't want to wait for. And I want an image backup, too. How do I point the bios to it? Bios is supposed to see the partitions right off, correct?
And also restore using clonezilla as well. When setting up the options in clonezilla, just be sure to select the option to copy the bootloader. I've always found clonezilla to be easier to use and much faster that using dd utilities.
And also restore using clonezilla as well. When setting up the options in clonezilla, just be sure to select the option to copy the bootloader. I've always found clonezilla to be easier to use and much faster that using dd utilities.
Okay, will it work on the resulting dd image file? I've already created the dd image file of that disk and would not want to try to draw data off that dying drive again.
Okay, will it work on the resulting dd image file?
I doubt it but I don't know for sure as I haven't researched it. If you've already imaged the drive with dd, I would continue with dd to write to your new drive. The image that you created should have the included the bootloader and your new drive should boot. Give it a try; you've got nothing to lose. It will either boot or it won't. If not, you may be able to use some windows tool to restore the bootloader. If successful, your windows OS will only see 1TB of your 2TB drive. You can correct that by using a partitioning tool like gparted to enlarge existing partition(s). How you do that will depend on your partition layout and your needs.
If nothing works with your dd image, and you have either a Western Digital or Seagate hard drive as either your old or new drive, both have imaging utilities on their websites for free that can image your drive. These utilities are stripped down versions of Acronis TrueImage which is an excellent imaging application for windows.
Bios is supposed to see the partitions right off, correct?
BIOS only sees disks, not partitions. With an eSATA connection it might take some BIOS futzing to make seeing the disk happen. I never boot with a USB connected disk, so I'm not sure what to expect the BIOS to find or report, but probably it should be found unless the PC is truly ancient.
If the 2TB happens to be a 2.5" SSD, an "enclosure" isn't required, just a dongle, like this.
It appears that I made some mistake with ddrescue on my first try with imaging my drive. ddrescue created a perfectly functional copy of my failing 4-partition 1tb MBR'd drive onto the 2tb backup on my last attempt.
Then gparted to format the remaining 1tb partition and it booted right up in my laptop!
I believe ddrescue probably performs the same as dd in that it copies bit by bit everything from the source to the destination. What you likely ended up with before the gparted step was an exact copy of the original disk, partition sizes, etc. and no access to the remainder of the 2TB drive.
I have seen that same effect many times when using dd to copy the live boot image to a USB stick. An 8GB stick looks like ~2GB because that was the size of the iso.
If you don't want the hassles of recovering the hidden portion of your drives you should use something like clonezilla or equivalent. Those only copy the data and restore the partitions without making the new drive look exactly like the old drive.
Saves a lot of copy time and headaches in repartitioning. I remember using a norton utility that did the same, and when doing the restore you had the option to resize the partitions during the restore.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.