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. |