Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 an 80 GB hdd. Due to some sector failures, I am going to replace the drive with a 120 GB hdd. I have OpenSUSE 12.1 installed in my old hdd (the 80 GB one). I want to copy the entire OS to the new hdd (120 GB).
What I am planning to do is I will install SUSE in my new hdd, then copy the entire file system from my old hdd os and replace it with the new hdd os file system, deleting the existing file system in my newly installed os.
I expect to get all my files, settings and installed programs in my new os by this method and make it work exactly like the old one (I will have to give back the 80 gb hdd to the manufacturers). Do you think I will succeed? Am I going in the right direction?
You don't need to install a new OS when you want to copy over the old one. Just start from a live-CD, partition the new disk that it resembles the layout from the old one, copy over the files, chroot into the new system and re-install the bootloader.
With little Linux knowledge this isn't a trivial task, but let's see that if we can get you through that. Keep in mind that your system may already be damaged (due to the bad sectors) and a fresh reinstall on the new harddisk would be a better option to get a known good system.
1. Start from a live-CD
2. Partition your new disk with GParted so that it has the same partitions as the old one. Don't forget to give them the same filesystem while doing this.
3. Now it is time to copy over your files. To do that we need to mount the old and the new partitions. I can only giver more precise instructions when knowing your disk layout, so please post the output of
I am extremely sorry to tell you that I could not wait as my warranty was about to expire, so they have already given me a new HDD and took away the old one. I have copied over my files to the new one and made a fresh installation of the OS.
Please forgive me if I have dissapointed you. I got the new HDD installed before your reply. BTW, fresh installtion of an OS is always beter as it fixes many bugs and the hardware support gets refreshed to support the new peripherals.
"sorry"----why? You got your system working--that makes everyone happy. FWIW, I never bother moving an OS to another disk---just re-install (as you did)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.