Gentoo Archives: gentoo-user

From: Fernando Rodriguez <cyklonite@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] plain copy of root disk won't work
Date: Fri, 18 Nov 2016 23:31:51
Message-Id: 20161118233133.GB32748@formics.local
In Reply to: [gentoo-user] plain copy of root disk won't work by Raffaele BELARDI
1 On Fri, Nov 18, 2016 at 04:30:28PM +0100, Raffaele BELARDI wrote:
2 > I want to move the main disk contents (hda, PATA) to another, larger
3 > disk (sda, SATA).
4 >
5 > hda contains 4 ext3 partitions (root, home, data, swap).
6 > I created 4 ext3 partitions on sda and copied the data over from the
7 > corresponding hda partitions using 'cp -ax'.
8 > Then I chroot into sda1, 'grub-install /dev/sda', grub-mkconfig and edit
9 > fstab to use sda instead of hda.
10 > Reboot, from the non-UEFI bios change the disk boot order and try to
11 > boot from sda.
12
13 Do you have a reference to your root partition on /etc/default/grub that
14 you forgot to update before running grub-mkconfig?
15
16
17 > grub from the sda starts, loads the kernel from sda1, the kernel finds
18 > the root file system and mounts it RO but then the process stops at the
19 > end of the kernel boot. No kernel panic, just hangs there with the last
20 > kernel message before openrc. Openrc is not started.
21 >
22 > What might I be missing?
23 >
24 > thanks,
25 >
26 > raffaele
27
28 --
29 Fernando Rodriguez