Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
Date: Thu, 28 Jul 2005 08:18:01
Message-Id: 20050728091237.12493d1a@hactar.digimed.co.uk
In Reply to: Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2 by Sean Higgins
1 On Wed, 27 Jul 2005 20:24:46 -0400, Sean Higgins wrote:
2
3 > > Can anyone tell me if it's possible to move (or copy) the complete
4 > > contents of /boot located on /dev/hdb1 to /dev/hda2. If so would
5 > > anyone know the correct command so I pick up any hidden files ,etc.
6 >
7 > One way to do it is to do the following:
8 >
9 > mount -o ro /dev/hdb1 old
10 > mount /dev/hda1 new
11 > cd old
12 > tar cvf - * | tar xf -C ../new/
13
14 * doesn't match hidden files, so the copy will be incomplete.
15
16 My favourite method is: rsync -a old/ new/
17
18
19 --
20 Neil Bothwick
21
22 Therapy is expensive, popping bubble wrap is cheap! You choose.

Replies

Subject Author
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2 Sean Higgins <sean@×××××××.com>