LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-14-2012, 02:04 PM   #1
americast
Member
 
Registered: May 2012
Location: Kolkata, India
Distribution: Ubuntu, OpenSUSE
Posts: 91
Blog Entries: 1

Rep: Reputation: Disabled
Question System copy


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?

Thanks for any help...
 
Old 09-14-2012, 02:09 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 09-14-2012, 09:12 PM   #3
americast
Member
 
Registered: May 2012
Location: Kolkata, India
Distribution: Ubuntu, OpenSUSE
Posts: 91

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I am rather new to Linux. Can you guide me step-by-step or can you give me a link where the instructions are available?

Quote:
chroot into the new system and re-install the bootloader
I don't understand chroot and reinstalling bootloader. How do I do that?

Thanx a lot...
 
Old 09-15-2012, 01:47 AM   #4
americast
Member
 
Registered: May 2012
Location: Kolkata, India
Distribution: Ubuntu, OpenSUSE
Posts: 91

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
How do I copy the loops in dev?
 
Old 09-16-2012, 08:47 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
Code:
fdisk -l
launched as root.
 
Old 09-20-2012, 03:57 AM   #6
americast
Member
 
Registered: May 2012
Location: Kolkata, India
Distribution: Ubuntu, OpenSUSE
Posts: 91

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thank you for your reply.

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.

Thanx once again...
 
Old 09-20-2012, 05:56 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy system danne123 Linux - Newbie 4 03-27-2007 09:47 AM
Copy from one system to another Kristofer Linux - Software 0 11-29-2005 01:16 AM
Copy / to a new system Jonasx Linux - Software 2 05-20-2004 02:42 PM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM
How to copy files from A computer of NT System to The other one of Unix system? whepin Linux - Newbie 5 04-06-2003 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration