UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Hard drive is ready to give up soon. Getting harder to boot every time. Duel bood with XP. How can I "copy" Ubuntu 8.04 on to the new hard drive. I beleave Windows can be moved to the new hard drive with an imaging program. I am new to Linux and run EMC2 on my CNC. Thanks, Carl
If you want to restore both windows and ubuntu together to a new drive, it would be worth copying the MBR ... but in this case I would suggest Clonezilla rather than Gparted.
But it's probably better to do a fresh install on a new drive - of a newer version than 8.04 - and then restore the data separately, in which case you would not need the MBR.
Do you already have read and/or write errors on the old drive? If you do, I would suggest that you stop using it immediately and get ready to learn about the ddrescue utility. I've had good results with this, but it took a long time.
If you want to restore both windows and ubuntu together to a new drive, it would be worth copying the MBR ... but in this case I would suggest Clonezilla rather than Gparted.
But it's probably better to do a fresh install on a new drive - of a newer version than 8.04 - and then restore the data separately, in which case you would not need the MBR.
Do you already have read and/or write errors on the old drive? If you do, I would suggest that you stop using it immediately and get ready to learn about the ddrescue utility. I've had good results with this, but it took a long time.
I don't have any read of write problems...Yet!
I don't have the windows software for a fresh install. That is most of the problem. I don't mind fresh install of Ubuntu. 8.04 or 10.04 will work for me. I only need EMC2. This machine is only used to run my CNC router in Linux. But I will have to use the Windows for the CAD/CAM part. I don't know anything about programing and am way to old to leard it now BUT I need to use Linux. Thanks Carl
You can perform a test on the S.M.A.R.T of the drive to find out how close is it to Death. Use "smartmontools", available in the repositories of most distributions. There are lots of documents around explaining how to use it.
Quote:
Do you already have read and/or write errors on the old drive? If you do, I would suggest that you stop using it immediately
I agree with that.
Now, the clash course about backupping:
Connect a backup drive to your computer, and ensure it is no smaller than the dying drive. Assuming that your inner drive is "/dev/sda" and your outer drive is "/dev/sdb", run as root:
Code:
dd if=/dev/sda of=/dev/sdb conv=noerror,sync
You'll have a binary clone of the main drive (but, if there is data corruption already, try dd_rescue as suggested).
Last edited by BlackRider; 10-20-2011 at 10:50 AM.
Regarding recovering windows, clonezilla or gparted or dd will get you an exact copy. To avoid reinstalling windows, do clone the entire drive including the MBR.
Are you going to run in the same computer (ie install a new hard drive in it)? Otherwise, you may run into the need to reactivate windows.
Fixed the easy way for me. Used "Todo Backup"free and did a clone of the harddrive. Everything was there when I swaped the new for old HDD. I can't beleave how easy it was, three or four clicks and it was all done for me. Then I installed 10.04 also. Need to get the computor on line and install EMC2. Thanks for any help, Carl
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.