* [gentoo-user] Moving installation to another HD
@ 2006-08-10 18:01 Daniel da Veiga
2006-08-10 18:21 ` Christoph Eckert
0 siblings, 1 reply; 8+ messages in thread
From: Daniel da Veiga @ 2006-08-10 18:01 UTC (permalink / raw
To: gentoo-user
Hello list,
I've had Gentoo running for a long time now, before that I was using
WinXP (this is my work machine, I have no choice). I simply got an old
(8GB) HD, setup it, installed and started working (with dual boot,
just in case). After a while, I found myself not using winxp anymore,
as most of my stuff was already ported (printers, file shares) or
emulated (novell using qemu and full virtualization). Now, I'm running
out of space in this old HD, and want to move my Gentoo install over
to the 40GB original disk of this machine.
I thought about "dd" the entire old disk to the new one, but I guess
partitioning will not like that (because of the size, and I have been
using fixed primary partitions), maybe tar or something like that.
Anyway, if anyone have suggestions on the procedure needed to do that,
it would be more than welcome. Any info needed, please let me know.
Thanks in advance.
--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Moving installation to another HD
2006-08-10 18:01 [gentoo-user] Moving installation to another HD Daniel da Veiga
@ 2006-08-10 18:21 ` Christoph Eckert
2006-08-10 18:56 ` Daniel da Veiga
2006-08-10 19:19 ` Richard Fish
0 siblings, 2 replies; 8+ messages in thread
From: Christoph Eckert @ 2006-08-10 18:21 UTC (permalink / raw
To: gentoo-user
> Any info needed, please let me know.
* Boot from a live-CD
* mount old and new drive partitions
* cd to the mountpoint containing the data to be copied
* tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
* Drink coffee :)
Worked for me more than once.
ce
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Moving installation to another HD
2006-08-10 18:21 ` Christoph Eckert
@ 2006-08-10 18:56 ` Daniel da Veiga
2006-08-10 19:07 ` Dale
2006-08-10 19:19 ` Richard Fish
1 sibling, 1 reply; 8+ messages in thread
From: Daniel da Veiga @ 2006-08-10 18:56 UTC (permalink / raw
To: gentoo-user
On 8/10/06, Christoph Eckert <ce@christeck.de> wrote:
>
> > Any info needed, please let me know.
>
> * Boot from a live-CD
> * mount old and new drive partitions
> * cd to the mountpoint containing the data to be copied
> * tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
> * Drink coffee :)
>
> Worked for me more than once.
>
Thanks Cristopher. I'll give it a try tomorrow morning.
--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Moving installation to another HD
2006-08-10 18:56 ` Daniel da Veiga
@ 2006-08-10 19:07 ` Dale
0 siblings, 0 replies; 8+ messages in thread
From: Dale @ 2006-08-10 19:07 UTC (permalink / raw
To: gentoo-user
Daniel da Veiga wrote:
> On 8/10/06, Christoph Eckert <ce@christeck.de> wrote:
>>
>> > Any info needed, please let me know.
>>
>> * Boot from a live-CD
>> * mount old and new drive partitions
>> * cd to the mountpoint containing the data to be copied
>> * tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
>> * Drink coffee :)
>>
>> Worked for me more than once.
>>
>
> Thanks Cristopher. I'll give it a try tomorrow morning.
>
I always boot from the CD, mount both drives as above then do a cp -av
/old/stuff/ new/stuff and it works. No tarring and such then. Still
get to drink a cup of coffee though. O_O
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Moving installation to another HD
2006-08-10 18:21 ` Christoph Eckert
2006-08-10 18:56 ` Daniel da Veiga
@ 2006-08-10 19:19 ` Richard Fish
2006-08-10 19:32 ` Christoph Eckert
2006-08-10 19:41 ` Daniel da Veiga
1 sibling, 2 replies; 8+ messages in thread
From: Richard Fish @ 2006-08-10 19:19 UTC (permalink / raw
To: gentoo-user
On 8/10/06, Christoph Eckert <ce@christeck.de> wrote:
> * Boot from a live-CD
> * mount old and new drive partitions
> * cd to the mountpoint containing the data to be copied
> * tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
> * Drink coffee :)
The one thing you may have to take care of is grub, since I assume the
/boot directory will be moving to the 40G drive as well. Assuming the
partition containing /boot is /dev/hda1, then the following should
work:
echo "(hd0) /dev/hda" > device.map
grub --device-map=device.map << EOF
root (hd0,0)
setup (hd0)
quit
EOF
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Moving installation to another HD
2006-08-10 19:19 ` Richard Fish
@ 2006-08-10 19:32 ` Christoph Eckert
2006-08-10 19:41 ` Daniel da Veiga
1 sibling, 0 replies; 8+ messages in thread
From: Christoph Eckert @ 2006-08-10 19:32 UTC (permalink / raw
To: gentoo-user
> The one thing you may have to take care of is grub, since I assume
> the /boot directory will be moving to the 40G drive as well.
> Assuming the partition containing /boot is /dev/hda1, then the
> following should work:
>
> echo "(hd0) /dev/hda" > device.map
> grub --device-map=device.map << EOF
> root (hd0,0)
> setup (hd0)
> quit
> EOF
huh, true, I forgot Grub. I usually chroot to the new boot partition and
reinstall grub just based on the old configuration files (though it
will only work if the partition scheme hasn't changed).
Best regards
ce
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Moving installation to another HD
2006-08-10 19:19 ` Richard Fish
2006-08-10 19:32 ` Christoph Eckert
@ 2006-08-10 19:41 ` Daniel da Veiga
2006-08-10 22:50 ` Anthony E. Caudel
1 sibling, 1 reply; 8+ messages in thread
From: Daniel da Veiga @ 2006-08-10 19:41 UTC (permalink / raw
To: gentoo-user
On 8/10/06, Richard Fish <bigfish@asmallpond.org> wrote:
> On 8/10/06, Christoph Eckert <ce@christeck.de> wrote:
> > * Boot from a live-CD
> > * mount old and new drive partitions
> > * cd to the mountpoint containing the data to be copied
> > * tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
> > * Drink coffee :)
>
> The one thing you may have to take care of is grub, since I assume the
> /boot directory will be moving to the 40G drive as well. Assuming the
> partition containing /boot is /dev/hda1, then the following should
> work:
>
> echo "(hd0) /dev/hda" > device.map
> grub --device-map=device.map << EOF
> root (hd0,0)
> setup (hd0)
> quit
> EOF
You seem to have read my mind, I was just about to ask about the boot
signature and if I should run grub again. Yes, I'm moving the whole
partition scheme along with data.
Linux "cp" is a powerful command, gotta take a look at its manual.
Thanks for the info so far people, I've decided to move my stuff by
the morning, I'll post any disaster/sucess reports.
--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Moving installation to another HD
2006-08-10 19:41 ` Daniel da Veiga
@ 2006-08-10 22:50 ` Anthony E. Caudel
0 siblings, 0 replies; 8+ messages in thread
From: Anthony E. Caudel @ 2006-08-10 22:50 UTC (permalink / raw
To: gentoo-user
Daniel da Veiga wrote:
> On 8/10/06, Richard Fish <bigfish@asmallpond.org> wrote:
>> On 8/10/06, Christoph Eckert <ce@christeck.de> wrote:
>> > * Boot from a live-CD
>> > * mount old and new drive partitions
>> > * cd to the mountpoint containing the data to be copied
>> > * tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
>> > * Drink coffee :)
>>
>> The one thing you may have to take care of is grub, since I assume the
>> /boot directory will be moving to the 40G drive as well. Assuming the
>> partition containing /boot is /dev/hda1, then the following should
>> work:
>>
>> echo "(hd0) /dev/hda" > device.map
>> grub --device-map=device.map << EOF
>> root (hd0,0)
>> setup (hd0)
>> quit
>> EOF
>
> You seem to have read my mind, I was just about to ask about the boot
> signature and if I should run grub again. Yes, I'm moving the whole
> partition scheme along with data.
>
> Linux "cp" is a powerful command, gotta take a look at its manual.
>
> Thanks for the info so far people, I've decided to move my stuff by
> the morning, I'll post any disaster/sucess reports.
>
Also don't forget to adjust fstab and your kernel line in grub.conf.
Tony
--
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-08-10 22:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10 18:01 [gentoo-user] Moving installation to another HD Daniel da Veiga
2006-08-10 18:21 ` Christoph Eckert
2006-08-10 18:56 ` Daniel da Veiga
2006-08-10 19:07 ` Dale
2006-08-10 19:19 ` Richard Fish
2006-08-10 19:32 ` Christoph Eckert
2006-08-10 19:41 ` Daniel da Veiga
2006-08-10 22:50 ` Anthony E. Caudel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox