LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2010, 08:00 PM   #1
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Rep: Reputation: 17
transfer one linux to another comp?


is it possible to transfer Ubuntu to a different computer without changing the hdds?
 
Old 09-21-2010, 08:02 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,394

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
Try G4U.

I usually never do this unless they are the same hardware but many people do it all the time.

There are many other ways to do it also.
 
Old 09-21-2010, 08:02 PM   #3
chutsu
Member
 
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255

Rep: Reputation: 31
look this command up.

dd
 
Old 09-21-2010, 08:45 PM   #4
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
g4u seems too complicated and dd i probly will blow up my comp at that lol any other suggestions?
 
Old 09-21-2010, 09:19 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,845

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
I simply use "cp -a ..."
Fix up the bootloader and fstab, and you're away.
 
Old 09-21-2010, 11:27 PM   #6
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 45
Clonezilla
 
Old 09-22-2010, 05:10 AM   #7
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Rep: Reputation: 27
@animeman : are the two computers of the same model? if so clonezilla(as kindofabuzz suggested) would be of help.Otherwise try remastersys -> www.remastersys.com
 
Old 09-22-2010, 05:50 AM   #8
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
Use dd :

Quote:
dd if=/dev/sda of=/dev/sdb bs=32256

/dev/sda = old hdd
/dev/sdb = new hdd

then connect 2nd hdd to new computer.

Do these things from a live cd.
 
Old 09-22-2010, 05:55 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
All you needs to do is to copy the contents from the origin drive to the destination one. How this is done will depend on many things (amongst them how are the drives physically attached, via a network, etc) but the only important thing is that you must preserve all the file ownerships and permissions. How to do that depends on the tool you choose. With regular 'cp' you will have to specify the '-a' flag. Other tools will do that on different ways.

The only thing to need after that is (probably, not always) to adjust your boot loader configuration files and re-install it on the boot sector of the new drive (again, how to do this will depends on the boot loader you use, for PC it will probably be LILO or GRUB).

Being that sorted, all you might need to do is to adjust /etc/fstab to fit the new drive and partitioning layout.

This should suffice for most distros (it should be enough for Ubuntu). If you use a custom kernel you will probably also need to make sure that all the needed drivers (mostly the ones for the SATA controller and your boot file system) are in place, so the OS can find the root partition.
 
Old 09-22-2010, 04:14 PM   #10
animeman
Member
 
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Original Poster
Rep: Reputation: 17
Thank you for all of your help guys it worked very well plus i did not know that there are so many different ways.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
is there a way to an xp home comp see a linux suse comp in a network rayclnz SUSE / openSUSE 1 01-03-2007 03:30 AM
Best Linux for my comp? Vinn3Bo1 Linux - Software 8 04-19-2005 11:06 PM
how to do: using a linux comp to act as router for a windows comp grimhammer Linux - Networking 8 02-10-2005 10:56 PM
New comp v's old comp SirLaughAlot General 12 12-21-2003 12:39 PM
couldn't ping a WinXp comp from Fedora Comp tanbetien Fedora 5 12-04-2003 07:03 AM


All times are GMT -5. The time now is 11:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration