From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E8A0F1395E2 for ; Fri, 18 Nov 2016 17:58:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B17DE0B80; Fri, 18 Nov 2016 17:58:14 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11EBEE0B78 for ; Fri, 18 Nov 2016 17:58:13 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id n21so273161419qka.3 for ; Fri, 18 Nov 2016 09:58:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=GoVeGRTNpMsz4EIoj8U6mavyyGLNR+ZNYnDwobCxXgc=; b=I7QYjk+bVjYJz8cEN2HorJdAX4vbSXAUtqZ+RtKQMNN6b4g4U3VClzvnGRk3ZTTndl th2wzcCHOsy7meIZSePBK2YW7AOQez0AdVb1gJr7mhHAA+uhSNJrIqAc3AdlnfADV8sd RlgyQBgcb0VBiAjTf4oBvuYGzOy9Ib7u/Ba5cM8DKWhYgAJK80foa878CMogwA5BYNNA qFCqavCDJZsrxrxn8Ct0q7tteThmvy0H/1Tdyw3oiZGai+uyTRVCUWQFMQd4Z/xzC8M6 mNl6Qr7E2VwZbLSuWMGWar28BEPdk8Crf+b2CKY8CoAftydZTV6ZTOImrNNpCaJyGZYU AiIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=GoVeGRTNpMsz4EIoj8U6mavyyGLNR+ZNYnDwobCxXgc=; b=OummApz7dCcr0KVTtIviyySTaXVz33r7H46vpWBG4vCsQF+d7ggk3z9A/z17z3W+OH b90b8P37KjjYn7aSgCJqbZYBqJXsJFrMHAFm+vWHaGEW//vgnv0Jpvti3bAFJaNE6K7n Du2r7PHtk/940XXSvQVDRgxKND85tm7BQ+OsKHXaTz+oOmI5O27eVcgSQAPw6Zcv7ZFN h7TcQqQM1T3uOCghzVwmjgIMNm5NTH65Ih6ubNddFSoSxQOaplhGFS3iw8CVD2rLnQYG z0fscFM3ZN0JlnU5MgOGKKIgmUv2xRrSyKx4apg+X+XBX6FZ++gcDSaj8KCasXKRmdnR 6KwQ== X-Gm-Message-State: AKaTC014FcXkXu8tK3l5TkjlVOtUSYfeddx5eDL7smTLdiaSkPA8qVxLsgk2AQHGv7r5RxP47JX2frRqIfV+GQ== X-Received: by 10.55.99.141 with SMTP id x135mr1129845qkb.147.1479491892904; Fri, 18 Nov 2016 09:58:12 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.55.69.78 with HTTP; Fri, 18 Nov 2016 09:57:52 -0800 (PST) In-Reply-To: References: From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= Date: Fri, 18 Nov 2016 11:57:52 -0600 Message-ID: Subject: Re: [gentoo-user] plain copy of root disk won't work To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=94eb2c05c7b6b98d620541970c25 X-Archives-Salt: adf5e094-c65f-44c3-a936-7234cc40bdab X-Archives-Hash: 9d8a4703b27422d3137fee57a4f313f6 --94eb2c05c7b6b98d620541970c25 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Nov 18, 2016 at 9:30 AM, Raffaele BELARDI wrote: > > I want to move the main disk contents (hda, PATA) to another, larger > disk (sda, SATA). > > hda contains 4 ext3 partitions (root, home, data, swap). > I created 4 ext3 partitions on sda and copied the data over from the > corresponding hda partitions using 'cp -ax'. > Then I chroot into sda1, 'grub-install /dev/sda', grub-mkconfig and edit > fstab to use sda instead of hda. > Reboot, from the non-UEFI bios change the disk boot order and try to > boot from sda. > grub from the sda starts, loads the kernel from sda1, the kernel finds > the root file system and mounts it RO but then the process stops at the > end of the kernel boot. No kernel panic, just hangs there with the last > kernel message before openrc. Openrc is not started. > > What might I be missing? Perhaps some permissions and special files. I would use rsync for such a task: rsync -Pvas /source/directory/ /target/directory/ I've used that commend in the past for exactly the same motives as you. It works; also, it's faster I think. Regards. -- Dr. Canek Pel=C3=A1ez Vald=C3=A9s Profesor de Carrera Asociado C Departamento de Matem=C3=A1ticas Facultad de Ciencias Universidad Nacional Aut=C3=B3noma de M=C3=A9xico --94eb2c05c7b6b98d620541970c25 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fri, Nov 18, 2016 at 9:30 AM, Raffaele BELARDI <raffaele.belardi@st.com> wrot= e:
>
> I want to move the main disk contents (hda, PATA) to ano= ther, larger
> disk (sda, SATA).
>
> hda contains 4 ext3 = partitions (root, home, data, swap).
> I created 4 ext3 partitions on= sda and copied the data over from the
> corresponding hda partitions= using 'cp -ax'.
> Then I chroot into sda1, 'grub-install= /dev/sda', grub-mkconfig and edit
> fstab to use sda instead of = hda.
> Reboot, from the non-UEFI bios change the disk boot order and = try to
> boot from sda.
> grub from the sda starts, loads the k= ernel from sda1, the kernel finds
> the root file system and mounts i= t RO but then the process stops at the
> end of the kernel boot. No k= ernel panic, just hangs there with the last
> kernel message before o= penrc. Openrc is not started.
>
> What might I be missing?
<= br>Perhaps some permissions and special files. I would use rsync for such a= task:

rsync -Pvas=C2=A0/source/directory/=C2=A0/target/= directory/

I've used that commend in the past = for exactly the same motives as you. It works; also, it's faster I thin= k.

Regards.
--
Dr. Canek Pel=C3=A1ez Vald=C3=A9s
Profesor d= e Carrera Asociado C
Departamento de Matem=C3=A1ticas
Facultad de Cie= ncias
Universidad Nacional Aut=C3=B3noma de M=C3=A9xico
--94eb2c05c7b6b98d620541970c25--