Migrating a Linux (Debian Squeeze) system from one HD to another HD
Omer Zak
w1 at zak.co.il
Sun Feb 19 21:22:37 IST 2012
Hello Tzafrir,
Thanks for your war story.
On Sun, 2012-02-19 at 18:34 +0000, 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 the new (2TB) disk on a directory tree
originating in /tmp/new_2T, so that the to-be-root partition is mounted
on it and other partitions are mounted on subdirectories of the
to-be-root.
4. chroot /tmp/new_2T/ update-initramfs -u -k all -v
5. Reboot - this time into the new (2TB) disk.
6. Get stuck because it doesn't find the root and swap partitions.
How did you boot your PC to run update-initramfs?
--- Omer
--
QA People of Curse.
My own blog is at http://www.zak.co.il/tddpirate/
My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html
More information about the Linux-il
mailing list