On 8/10/06, Richard Fish <[EMAIL PROTECTED]> wrote:
On 8/10/06, Christoph Eckert <[EMAIL PROTECTED]> 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------
--
[email protected] mailing list

Reply via email to