public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
@ 2005-07-27 12:53 Richard Watson
  2005-07-27 13:09 ` Jakub Krajcovic
  2005-07-28  0:24 ` Sean Higgins
  0 siblings, 2 replies; 12+ messages in thread
From: Richard Watson @ 2005-07-27 12:53 UTC (permalink / raw
  To: gentoo-user

Can anyone tell me if it's possible to move (or copy) the complete contents
of /boot located on /dev/hdb1 to /dev/hda2. If so would anyone know the
correct command so I pick up any hidden files ,etc.

--
Thanks, Richard

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25/07/2005
 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-27 12:53 [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2 Richard Watson
@ 2005-07-27 13:09 ` Jakub Krajcovic
  2005-07-27 13:21   ` Dave Nebinger
  2005-07-28  0:24 ` Sean Higgins
  1 sibling, 1 reply; 12+ messages in thread
From: Jakub Krajcovic @ 2005-07-27 13:09 UTC (permalink / raw
  To: gentoo-user

Well, if not sure about the syntax, why don't you just use midnight 
commander?

Although i do not quite understand what you are saying: (copy from 
/dev/hdb1 to /dev/hda2) -> do you mean,: "copy from /dev/hdb1 that is 
mounted on /mountpoint1 to /dev/hda2 that is mounted on mountpoint 
/mountpoint2"?

If that is the case, then a simple: cp -R /boot /new-boot-location
should do it.


s pozdravom
jakub krajcovic


On júl 27, 2005, at 14:53, Richard Watson wrote:

> Can anyone tell me if it's possible to move (or copy) the complete 
> contents
> of /boot located on /dev/hdb1 to /dev/hda2. If so would anyone know the
> correct command so I pick up any hidden files ,etc.
>
> --
> Thanks, Richard
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 
> 25/07/2005
>
>
> -- 
> gentoo-user@gentoo.org mailing list
>


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-27 13:09 ` Jakub Krajcovic
@ 2005-07-27 13:21   ` Dave Nebinger
  2005-07-27 15:10     ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Dave Nebinger @ 2005-07-27 13:21 UTC (permalink / raw
  To: gentoo-user

> Although i do not quite understand what you are saying: (copy from
> /dev/hdb1 to /dev/hda2) -> do you mean,: "copy from /dev/hdb1 that is
> mounted on /mountpoint1 to /dev/hda2 that is mounted on mountpoint
> /mountpoint2"?
> 
> If that is the case, then a simple: cp -R /boot /new-boot-location
> should do it.

You'll probably want to add the "-p" option to copy permissions, ownership,
etc.


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-27 13:21   ` Dave Nebinger
@ 2005-07-27 15:10     ` Neil Bothwick
  0 siblings, 0 replies; 12+ messages in thread
From: Neil Bothwick @ 2005-07-27 15:10 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

On Wed, 27 Jul 2005 09:21:06 -0400, Dave Nebinger wrote:

> You'll probably want to add the "-p" option to copy permissions,
> ownership, etc.

Use -a (--archive), which preserves everything it can.


-- 
Neil Bothwick

WINDOWS: Will Install Needless Data On Whole System

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-27 12:53 [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2 Richard Watson
  2005-07-27 13:09 ` Jakub Krajcovic
@ 2005-07-28  0:24 ` Sean Higgins
  2005-07-28  8:12   ` Neil Bothwick
  1 sibling, 1 reply; 12+ messages in thread
From: Sean Higgins @ 2005-07-28  0:24 UTC (permalink / raw
  To: gentoo-user


Richard,

On Wednesday 27 July 2005 08:53 am, Richard Watson wrote:
> Can anyone tell me if it's possible to move (or copy) the complete contents
> of /boot located on /dev/hdb1 to /dev/hda2. If so would anyone know the
> correct command so I pick up any hidden files ,etc.

One way to do it is to do the following:

mount -o ro /dev/hdb1 old
mount /dev/hda1 new
cd old
tar cvf - * | tar xf -C ../new/

                          Sean

>
> --
> Thanks, Richard
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25/07/2005

-- 
Sean Higgins, sean@systura.com
http://www.systura.com - "Where information becomes knowledge."
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-28  0:24 ` Sean Higgins
@ 2005-07-28  8:12   ` Neil Bothwick
  2005-07-28 21:06     ` Sean Higgins
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2005-07-28  8:12 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

On Wed, 27 Jul 2005 20:24:46 -0400, Sean Higgins wrote:

> > Can anyone tell me if it's possible to move (or copy) the complete
> > contents of /boot located on /dev/hdb1 to /dev/hda2. If so would
> > anyone know the correct command so I pick up any hidden files ,etc.
> 
> One way to do it is to do the following:
> 
> mount -o ro /dev/hdb1 old
> mount /dev/hda1 new
> cd old
> tar cvf - * | tar xf -C ../new/

* doesn't match hidden files, so the copy will be incomplete.

My favourite method is: rsync -a old/ new/


-- 
Neil Bothwick

Therapy is expensive, popping bubble wrap is cheap! You choose.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-28  8:12   ` Neil Bothwick
@ 2005-07-28 21:06     ` Sean Higgins
  2005-07-29  1:37       ` River Yan
  2005-08-05 13:49       ` Andreas Fredriksson
  0 siblings, 2 replies; 12+ messages in thread
From: Sean Higgins @ 2005-07-28 21:06 UTC (permalink / raw
  To: gentoo-user

> > tar cvf - * | tar xf -C ../new/
>
> * doesn't match hidden files, so the copy will be incomplete.

Neil,

Interesting.  I had not thought about that.  I did use the above to recreate 
my hard drive from one hard drive to another one.  It worked well, I guess I 
lucked out that I did not have any hidden files in the "old" directory.

                               Sean

-- 
Sean Higgins, sean@systura.com
http://www.systura.com - "Where information becomes knowledge."
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-28 21:06     ` Sean Higgins
@ 2005-07-29  1:37       ` River Yan
  2005-08-04 18:14         ` Sean Higgins
  2005-08-05 13:49       ` Andreas Fredriksson
  1 sibling, 1 reply; 12+ messages in thread
From: River Yan @ 2005-07-29  1:37 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 15 bytes --]

try to use dd

[-- Attachment #2: Type: text/html, Size: 23 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-29  1:37       ` River Yan
@ 2005-08-04 18:14         ` Sean Higgins
  2005-08-06  9:30           ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Sean Higgins @ 2005-08-04 18:14 UTC (permalink / raw
  To: gentoo-user


On Thursday 28 July 2005 09:37 pm, River Yan wrote:
> try to use dd

Ryan,

dd would be a good choice if the partitions are the same size.  I do not think 
it works as well of you are changing the sizes of the partitions.

                            Sean

-- 
Sean Higgins, sean@systura.com
http://www.systura.com - "Where information becomes knowledge."
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-07-28 21:06     ` Sean Higgins
  2005-07-29  1:37       ` River Yan
@ 2005-08-05 13:49       ` Andreas Fredriksson
  2005-08-06 13:36         ` River Yan
  1 sibling, 1 reply; 12+ messages in thread
From: Andreas Fredriksson @ 2005-08-05 13:49 UTC (permalink / raw
  To: gentoo-user

On 7/28/05, Sean Higgins <sean@systura.com> wrote:
> > > tar cvf - * | tar xf -C ../new/
> >
> > * doesn't match hidden files, so the copy will be incomplete.
> 
> Neil,
> 
> Interesting.  I had not thought about that.  I did use the above to recreate
> my hard drive from one hard drive to another one.  It worked well, I guess I
> lucked out that I did not have any hidden files in the "old" directory.

A better option is to use . (dot) a the directory. Also adding -p to
preserve permissions is essential when backing up a whole system:

tar cfp - . | (cd /target/path && tar xvfp -)

Regards,
Andreas

-- 
And I hate redundancy, and having different functions for the same thing.
        - Linus Torvalds on linux-kernel

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-08-04 18:14         ` Sean Higgins
@ 2005-08-06  9:30           ` Neil Bothwick
  0 siblings, 0 replies; 12+ messages in thread
From: Neil Bothwick @ 2005-08-06  9:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

On Thu, 4 Aug 2005 14:14:47 -0400, Sean Higgins wrote:

> dd would be a good choice if the partitions are the same size.  I do
> not think it works as well of you are changing the sizes of the
> partitions.

dd is fine, if very slow, when the target partition is larger than the
source. You will need to resize the filesystem after copying, but that's
a trivial task with most filesystems.


-- 
Neil Bothwick

C Error #011: First C Program, huh?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
  2005-08-05 13:49       ` Andreas Fredriksson
@ 2005-08-06 13:36         ` River Yan
  0 siblings, 0 replies; 12+ messages in thread
From: River Yan @ 2005-08-06 13:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

On 8/5/05, Andreas Fredriksson <deplinenoise@gmail.com> wrote:
> 
> 
> A better option is to use . (dot) a the directory. Also adding -p to
> preserve permissions is essential when backing up a whole system:
> 
> tar cfp - . | (cd /target/path && tar xvfp -)


try to use "find" to get all files?




-- 
riverfor's showtime.
riverfor's game

[-- Attachment #2: Type: text/html, Size: 688 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-08-06 13:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-27 12:53 [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2 Richard Watson
2005-07-27 13:09 ` Jakub Krajcovic
2005-07-27 13:21   ` Dave Nebinger
2005-07-27 15:10     ` Neil Bothwick
2005-07-28  0:24 ` Sean Higgins
2005-07-28  8:12   ` Neil Bothwick
2005-07-28 21:06     ` Sean Higgins
2005-07-29  1:37       ` River Yan
2005-08-04 18:14         ` Sean Higgins
2005-08-06  9:30           ` Neil Bothwick
2005-08-05 13:49       ` Andreas Fredriksson
2005-08-06 13:36         ` River Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox