Re: [gentoo-user] moving my instalation to new hard drive

2007-12-28 Thread Matthew R. Lee
Dear All, Thanks for the advice. I just successfully completed the transfer of my gentoo installation to the new hard drive. I was able to install grub on the external drive successfully, obviating the need to boot with the live cd after swaping the drives. I did however have one problem with

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-27 Thread Matthew R. Lee
On Monday 24 December 2007 19:36:13 Neil Bothwick wrote: On Mon, 24 Dec 2007 21:28:37 +, Stroller wrote: It might be as simple as completing the `dd if=/dev/sda of=/dev/sdb` and then using `fdisk` to delete the last partition, then recreate it with the same start point (and a later end

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-27 Thread Thanasis
on 12/27/2007 11:05 PM Matthew R. Lee wrote the following: On Monday 24 December 2007 19:36:13 Neil Bothwick wrote: On Mon, 24 Dec 2007 21:28:37 +, Stroller wrote: It might be as simple as completing the `dd if=/dev/sda of=/dev/sdb` and then using `fdisk` to delete the last partition, then

[gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Matthew R. Lee
Dear All, I'm running out of space on my laptop (Compaq Presario V5000) so I've decided to intall a bigger hard disk. Currently I have an 80GB SATA drive, I'm also going to add more RAM (from 1GB to 2GB) as RAM is so cheap at the moment. I've been through various howto's online, including

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Randy Barlow
Matthew R. Lee wrote: Question 1: Should I keep the swap partition the same size or increase it? If you are increasing the amount of RAM, and you currently do fine on 512 MB of swap, you should be OK. That said, if you are getting a ton more space, what is 1 GB to dedicate to swap just in case?

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Dale
Matthew R. Lee wrote: Dear All, I'm running out of space on my laptop (Compaq Presario V5000) so I've decided to intall a bigger hard disk. Currently I have an 80GB SATA drive, I'm also going to add more RAM (from 1GB to 2GB) as RAM is so cheap at the moment. I've been through various

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Dale
Dale wrote: cp- a should work fine. I have used that several times and no problems yet. You can add the -v if you like to see the files scrolling by. If you have the same partitions on the new drive as the old drive, your grub.conf and fstab should be fine. You will need to install

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Thanasis
I would first create the new partitions on the new disk keeping the same sequence (and increasing swap partition to 1GB), and then format them. Say the new drive is /dev/sdb. I would go like this (mind the spaces): mkdir /mnt/dst /mnt/src mount /dev/sdb3 /mnt/dst mount -o bind / /mnt/src cd /

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Thanasis
on 12/24/2007 08:38 PM Thanasis wrote the following: I would first create the new partitions on the new disk keeping the same sequence (and increasing swap partition to 1GB), and then format them. Say the new drive is /dev/sdb. I would go like this (mind the spaces): mkdir /mnt/dst /mnt/src

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Matthew R. Lee
On Monday 24 December 2007 15:06:36 Dale wrote: Dale wrote: cp- a should work fine. I have used that several times and no problems yet. You can add the -v if you like to see the files scrolling by. If you have the same partitions on the new drive as the old drive, your grub.conf and

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Dale
Matthew R. Lee wrote: On Monday 24 December 2007 15:06:36 Dale wrote: Dale wrote: cp- a should work fine. I have used that several times and no problems yet. You can add the -v if you like to see the files scrolling by. If you have the same partitions on the new drive as the old

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Neil Bothwick
On Mon, 24 Dec 2007 20:52:30 +0200, Thanasis wrote: mount -o bind / /mnt/src cd /mnt/src tar cfp - . |tar xfp - -C /mnt/dst tar cfp - . |tar xfp - -C /mnt/dst You don't need to mess around with bind mounting /, just do cd / tar clfp - ... For that matter, the f option is redundant, as

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Stroller
On 24 Dec 2007, at 17:06, Randy Barlow wrote: ... You will probably need to use grub-install/setup if you do dd as well, unless you dd if=/dev/sda of=/dev/sdb (or am I wrong about this?) No, you're correct - `dd` would copy the boot-sector. But it would also leave all partitions at their

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread maxim wexler
Question 2: (This is the main one!) The MBR? As the new disk is a direct replacement for the old one, with the same partitions etc, do I need to change anything in my grub.conf? or should it just work without modification? I just did this. My method: Duplicate the partitions, file

Re: [gentoo-user] moving my instalation to new hard drive

2007-12-24 Thread Neil Bothwick
On Mon, 24 Dec 2007 21:28:37 +, Stroller wrote: It might be as simple as completing the `dd if=/dev/sda of=/dev/sdb` and then using `fdisk` to delete the last partition, then recreate it with the same start point (and a later end point). The filesystem would then need to be resized.