Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-20 Thread Amos Shapira
On 20 February 2012 07:06, Tzafrir Cohen tzaf...@cohens.org.il wrote: On Sun, Feb 19, 2012 at 09:22:37PM +0200, Omer Zak wrote: Hello Tzafrir, Thanks for your war story. On Sun, 2012-02-19 at 18:34 +, Tzafrir Cohen wrote: update-initramfs -u The twist is that I need to boot

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-20 Thread Yedidyah Bar-David
On Mon, Feb 20, 2012 at 06:07:37PM +1100, Amos Shapira wrote: You'll HAVE to, especially /boot, before chroot'ing do: # for i in proc dev sys boot; do mount -o bind /$i /chroot/$i; done The OP specifically said he mounted a NEW boot partition under the chroot. I agree with the others. I

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Yedidyah Bar-David
On Sun, Feb 19, 2012 at 04:03:05AM +0200, Omer Zak wrote: My PC has a 500GB hard disk, and I want to migrate it to a 2TB hard disk. The new hard disk has been formatted to have two physical partitions, one serves as /boot and the other is an encrypted LVM volume, which has its own division

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Amos Shapira
On Feb 19, 2012 4:37 PM, Daniel Shahaf d...@daniel.shahaf.name wrote: Omer Zak wrote on Sun, Feb 19, 2012 at 04:03:05 +0200: My PC has a 500GB hard disk, and I want to migrate it to a 2TB hard disk. The new hard disk has been formatted to have two physical partitions, one serves as /boot

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Omer Zak
Thanks, Daniel and Amos, for your suggestions. However they address the wrong part of my problem. All my regular files were already copied to the new hard disk and it was properly set up. The only problem is to boot from it. I successfully set up grub2 to boot from the new disk's boot partition

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Yedidyah Bar-David
On Sun, Feb 19, 2012 at 03:47:32PM +0200, Omer Zak wrote: Thanks, Daniel and Amos, for your suggestions. However they address the wrong part of my problem. All my regular files were already copied to the new hard disk and it was properly set up. The only problem is to boot from it. I

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Tzafrir Cohen
On Sun, Feb 19, 2012 at 03:47:32PM +0200, Omer Zak wrote: Thanks, Daniel and Amos, for your suggestions. However they address the wrong part of my problem. All my regular files were already copied to the new hard disk and it was properly set up. The only problem is to boot from it. I

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Omer Zak
Hello Tzafrir, Thanks for your war story. On Sun, 2012-02-19 at 18:34 +, Tzafrir Cohen wrote: update-initramfs -u The twist is that I need to boot some kernel to run it. What I did was: 1. Leave both disks connected to the PC. 2. Boot from the old (500GB) disk. 3. Mount the partitions of

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-19 Thread Tzafrir Cohen
On Sun, Feb 19, 2012 at 09:22:37PM +0200, Omer Zak wrote: Hello Tzafrir, Thanks for your war story. On Sun, 2012-02-19 at 18:34 +, Tzafrir Cohen wrote: update-initramfs -u The twist is that I need to boot some kernel to run it. What I did was: 1. Leave both disks connected to the

Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-18 Thread Omer Zak
My PC has a 500GB hard disk, and I want to migrate it to a 2TB hard disk. The new hard disk has been formatted to have two physical partitions, one serves as /boot and the other is an encrypted LVM volume, which has its own division into logical partitions. I rsync'ed the old hard disk's contents

Re: Migrating a Linux (Debian Squeeze) system from one HD to another HD

2012-02-18 Thread Daniel Shahaf
Omer Zak wrote on Sun, Feb 19, 2012 at 04:03:05 +0200: My PC has a 500GB hard disk, and I want to migrate it to a 2TB hard disk. The new hard disk has been formatted to have two physical partitions, one serves as /boot and the other is an encrypted LVM volume, which has its own division into