Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to move linux to a new hard drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
point3
n00b
n00b


Joined: 03 Nov 2004
Posts: 40

PostPosted: Mon Feb 28, 2005 4:31 pm    Post subject: How to move linux to a new hard drive Reply with quote

Hi!

I got gentoo linux running on my 10 gigs hard drive. I've got a new one, it's 40 GB.

How to move all data to a new one? I want old hard drive moved to another system. So, I need to use only 40Gb one.

I will be glad to get detailed answer or link to faq.

Thanks.
Back to top
View user's profile Send private message
timseal
n00b
n00b


Joined: 29 Apr 2002
Posts: 40
Location: Philadelphia

PostPosted: Mon Feb 28, 2005 5:14 pm    Post subject: Reply with quote

Put the new drive in your box, and boot as usual.
Make partitions on your new drive.
copy or partimage your existing files. Make sure you use the -p switch if you use copy (to preserve permissions)
install grub to the boot sector of your new drive.
Switch off, remove the old drive and make the new one the primary master.
Don't do anything to the old drive for a few days, just in case.

This might be overly simplistic but I've done it that way several times (except partimage).

tim
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Mon Feb 28, 2005 5:16 pm    Post subject: Reply with quote

here's a pretty decent guide on using dd:
http://www.rajeevnet.com/hacks_hints/os_clone/os_cloning.html
Back to top
View user's profile Send private message
point3
n00b
n00b


Joined: 03 Nov 2004
Posts: 40

PostPosted: Mon Feb 28, 2005 5:29 pm    Post subject: Reply with quote

I have a disk with norton ghost 9. It's bootable.

Any ideas about how to use it? Maybe I can just copy hda1 & hda3?

But idea about copy with -p switch sounds good to me.

Thanks.
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Mon Feb 28, 2005 9:15 pm    Post subject: Reply with quote

if you only need 10G on a 40G drive, you can tar each partion and untar on the new disk.


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Mon Feb 28, 2005 9:54 pm    Post subject: Reply with quote

there are some reviews of various methods of accomplishing such a task in the Documentation forum. a quick search for an obvious string like bigger hard drive will get you there.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
PaoloP
n00b
n00b


Joined: 03 Feb 2004
Posts: 14

PostPosted: Mon Mar 21, 2005 1:57 pm    Post subject: Reply with quote

See here.
_________________
--
Paolo Pedroni
Back to top
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Mon Mar 21, 2005 2:28 pm    Post subject: Reply with quote

BTW, why would you want to use dd? cp works fine (and even better because you don't have to worry about partition sizes). Just remember that you shouldn't be copying /dev/ and /proc/
Back to top
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Mon Mar 21, 2005 7:03 pm    Post subject: Reply with quote

you're right. cp is better. just don't forget the -a flag.
Code:
       -a, --archive
              Preserve  as  much  as possible of the structure and attributes of the original files in the copy (but do
              not preserve directory structure).  Equivalent to -dpPR.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Mar 21, 2005 7:08 pm    Post subject: Reply with quote

Please follow up to this topic: https://forums.gentoo.org/viewtopic.php?t=62991

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum