<div dir="ltr"><div class="gmail_quote">On 20 February 2012 07:06, Tzafrir Cohen <span dir="ltr"><<a href="mailto:tzafrir@cohens.org.il">tzafrir@cohens.org.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sun, Feb 19, 2012 at 09:22:37PM +0200, Omer Zak wrote:<br>
> Hello Tzafrir,<br>
> Thanks for your war story.<br>
><br>
> On Sun, 2012-02-19 at 18:34 +0000, Tzafrir Cohen wrote:<br>
> > update-initramfs -u<br>
><br>
> The twist is that I need to boot some kernel to run it.<br>
> What I did was:<br>
> 1. Leave both disks connected to the PC.<br>
> 2. Boot from the old (500GB) disk.<br>
> 3. Mount the partitions of the new (2TB) disk on a directory tree<br>
> originating in /tmp/new_2T, so that the to-be-root partition is mounted<br>
> on it and other partitions are mounted on subdirectories of the<br>
> to-be-root.<br>
> 4. chroot /tmp/new_2T/ update-initramfs -u -k all -v<br>
<br>
You make need to bind-mount /dev and mount /proc and/or /sys inside the<br>
chroot.<br></blockquote><div><br>s/make/may/, I guess.<br><br>You'll HAVE to, especially /boot, before chroot'ing do:<br><br># for i in proc dev sys boot; do mount -o bind /$i /chroot/$i; done<br><br></div>--Amos<br>
<br></div>-- <br><div dir="ltr">
<a href="http://www.linkedin.com/in/gliderflyer" target="_blank">
<span>
<img src="http://s4.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png" alt="View my profile on LinkedIn" height="25" width="160">
</span></a></div><br>
</div>