From: Kerin Millar <kerframil@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Moving the system from one disk to another
Date: Mon, 05 Apr 2010 02:49:46 +0100 [thread overview]
Message-ID: <hpbfjs$dtj$1@dough.gmane.org> (raw)
In-Reply-To: <hpben6$c97$1@dough.gmane.org>
On 05/04/2010 02:34, walt wrote:
> On 04/04/2010 01:04 PM, Neil Bothwick wrote:
>> On Sun, 04 Apr 2010 20:35:11 +0100, Kerin Millar wrote:
>>
>>> Whichever way you go about it, ensure that no pseudo-filesystem or bind
>>> mounts are present within "/mnt/oldrootfs" at the time.
>>
>> Use the -x option with rsync to stop it descending into other
>> filesystems.
>
> This is directed to all of you gurus who replied to Meino's post:
>
> Meino's unstated assumption is that his new (larger) disk is already
> formatted
> (possibly partitioned?) before he copies the existing filesystem to it.
>
> IIUC the new disk will then be unbootable until grub or equivalent is
> installed
> on the new disk. Does this seem correct, or not?
Absolutely correct. Two commands from the grub shell and job done :)
>
> My instinct is to use dd to duplicate the entire old disk to the new
> (unformatted)
> disk and then use gparted to twiddle it from there. (But I do love a
> puzzle ;o)
In general, I'm a proponent of copying filesystems, as opposed to
copying entire block devices or disks. That's not to say that there
aren't some situations where the latter approach makes sense.
Note that it's possible to copy just the portion of the first sector
that contains bootloader code as thus:
dd if=/dev/sda of=/dev/sdb bs=446 count=1
NOTE: that's 446 as opposed to 512 as the latter would result in the
partition table being copied too, which would be most undesirable.
Cheers,
--Kerin
next prev parent reply other threads:[~2010-04-05 2:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-04 19:05 [gentoo-user] Moving the system from one disk to another meino.cramer
2010-04-04 19:09 ` covici
2010-04-04 19:35 ` [gentoo-user] " Kerin Millar
2010-04-04 20:04 ` Neil Bothwick
2010-04-04 23:51 ` Kacper Kopczyński
2010-04-05 0:16 ` Kerin Millar
2010-04-05 1:34 ` walt
2010-04-05 1:49 ` Kerin Millar [this message]
2010-04-05 7:03 ` Neil Bothwick
[not found] ` <201004051201.30038.michaelkintzios@gmail.com>
2010-04-05 11:10 ` Neil Bothwick
2010-04-06 2:51 ` [gentoo-user] " Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hpbfjs$dtj$1@dough.gmane.org' \
--to=kerframil@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox