public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Copying HDD to another HDD
@ 2011-11-06 10:37 Mike Brown
  2011-11-06 14:20 ` LMH
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Brown @ 2011-11-06 10:37 UTC (permalink / raw)
  To: cygwin mail list

I'm in a situation where a new mobo refuses to boot the SATA boot HDD, but it
will boot an IDE drive.

So, I'm trying to copy all of the files from the SATA drive to the IDE drive,
but I'm hitting a roadblock where there are files with 10-digit user/group
IDs and file persmissions of 700, which means I can't copy the files because
the Windblows IDs are different.  It is XP Pro - 32 bit.

What can I do that will allow me to do this:

    cd h:
    (cd g:/ ; tar cf -)|tar xvpf-

and get all of the files copied from the SATA drive (g:) to the IDE drive (h:)?

Thanks.

Oh, and yes, the normal Windblows copy fails as well.  Even though I am the
only user on the system and should have 100% administrative permission, there
are file that I can't copy.

MB
-- 
e-mail: vidiot@vidiot.com | vidiot@vidiot.net            /~\ The ASCII
[I've been to Earth.  I know where it is.         ]      \ / Ribbon Campaign
[And I'm gonna take us there.    Starbuck  3/25/07]       X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/     / \ HTML Email

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Copying HDD to another HDD
  2011-11-06 10:37 Copying HDD to another HDD Mike Brown
@ 2011-11-06 14:20 ` LMH
  2011-11-06 14:36   ` Mike Brown
  0 siblings, 1 reply; 7+ messages in thread
From: LMH @ 2011-11-06 14:20 UTC (permalink / raw)
  To: cygwin

I think you want to use a disk clone to do this, something like the 
clonezilla live CD. As long as the drives are the same size, or the 
target drive is larger, clonezilla will just copy one drive to the 
other. It does a bit by bit clone, so it doesn't care about files and 
permissions and such.

Even if you could copy with cp, you need the boot sector and such to get 
the OS up, so that wouldn't work.

LMH



Mike Brown wrote:
> I'm in a situation where a new mobo refuses to boot the SATA boot HDD, but it
> will boot an IDE drive.
>
> So, I'm trying to copy all of the files from the SATA drive to the IDE drive,
> but I'm hitting a roadblock where there are files with 10-digit user/group
> IDs and file persmissions of 700, which means I can't copy the files because
> the Windblows IDs are different.  It is XP Pro - 32 bit.
>
> What can I do that will allow me to do this:
>
>      cd h:
>      (cd g:/ ; tar cf -)|tar xvpf-
>
> and get all of the files copied from the SATA drive (g:) to the IDE drive (h:)?
>
> Thanks.
>
> Oh, and yes, the normal Windblows copy fails as well.  Even though I am the
> only user on the system and should have 100% administrative permission, there
> are file that I can't copy.
>
> MB

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Copying HDD to another HDD
  2011-11-06 14:20 ` LMH
@ 2011-11-06 14:36   ` Mike Brown
  2011-11-06 15:44     ` KHMan
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Brown @ 2011-11-06 14:36 UTC (permalink / raw)
  To: cygwin

On Sun, Nov 06, 2011 at 09:19:52AM -0500, LMH wrote:
> I think you want to use a disk clone to do this, something like the 
> clonezilla live CD. As long as the drives are the same size, or the target 
> drive is larger, clonezilla will just copy one drive to the other. It does 
> a bit by bit clone, so it doesn't care about files and permissions and 
> such.

Unfortunately the original is larger.

> Even if you could copy with cp, you need the boot sector and such to get 
> the OS up, so that wouldn't work.

Actually it would.  There are two ways to do that.  First, which is what I
did in order to find out if the new mobo would boot anything, is to install
XP on the IDE drive.  That created the MBR.  I just erased everything that
was installed on the disk.  The other way is to copy the files over and run
the XP boot disk repair console and run the fixmbr program, which will drop
a new MBR on the drive.

So, I'm stuck with two drives of different sizes, which adds to the problem.

An interesting thought just came to mind.  If I can get all of the XP stuff
copied over and get it to boot and finish the XP upgrade, I can then copy
over the remainder of the files for all of the other stuff, as I'll now have
the permissions I need.

MB
-- 
e-mail: vidiot@vidiot.com | vidiot@vidiot.net            /~\ The ASCII
[I've been to Earth.  I know where it is.         ]      \ / Ribbon Campaign
[And I'm gonna take us there.    Starbuck  3/25/07]       X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/     / \ HTML Email

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Copying HDD to another HDD
  2011-11-06 14:36   ` Mike Brown
@ 2011-11-06 15:44     ` KHMan
  2011-11-06 17:03       ` Mike Brown
  2011-11-07 10:26       ` Mike Brown
  0 siblings, 2 replies; 7+ messages in thread
From: KHMan @ 2011-11-06 15:44 UTC (permalink / raw)
  To: cygwin

On 11/6/2011 10:35 PM, Mike Brown wrote:
> On Sun, Nov 06, 2011 at 09:19:52AM -0500, LMH wrote:
>> I think you want to use a disk clone to do this, something like the
>> clonezilla live CD. As long as the drives are the same size, or the target
>> drive is larger, clonezilla will just copy one drive to the other. It does
>> a bit by bit clone, so it doesn't care about files and permissions and
>> such.
>
> Unfortunately the original is larger.
>
>> Even if you could copy with cp, you need the boot sector and such to get
>> the OS up, so that wouldn't work.
>[snip snip]
> An interesting thought just came to mind.  If I can get all of the XP stuff
> copied over and get it to boot and finish the XP upgrade, I can then copy
> over the remainder of the files for all of the other stuff, as I'll now have
> the permissions I need.

Some random notes. fsarchiver also allows for flexibility on size. 
But I have mostly used partimage from systemrescuecd in practice 
for the bootable partition, for: (a) moving from IDE to SATA, (b) 
moving from SATA to a larger SATA, and (c) restoring older 
partition image due to flakey 780G support in new ATI drivers.

Restoring using partimage onto a larger partition area gives a 
partition of the old size, which can then be expanded using 
gparted. gparted can shrink NTFS too, I think, but I have never 
used it since I size boot partitions rather small.

IIRC, I moved cygwin folders by cutting-and-pasting folders while 
both drives are installed. Since I use the traditional simple 
security scheme, I cannot say for sure whether any of the above 
will work in all cases.

-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Copying HDD to another HDD
  2011-11-06 15:44     ` KHMan
@ 2011-11-06 17:03       ` Mike Brown
  2011-11-06 17:16         ` LMH
  2011-11-07 10:26       ` Mike Brown
  1 sibling, 1 reply; 7+ messages in thread
From: Mike Brown @ 2011-11-06 17:03 UTC (permalink / raw)
  To: cygwin

On Sun, Nov 06, 2011 at 11:44:06PM +0800, KHMan wrote:
> Some random notes. fsarchiver also allows for flexibility on size.

I'm downloading the iso for SystemRescueCD, which contains fsarchiver.

I just might be able to use fsarchiver to do the trick.

Thanks for the tip.

MB
-- 
e-mail: vidiot@vidiot.com | vidiot@vidiot.net            /~\ The ASCII
[I've been to Earth.  I know where it is.         ]      \ / Ribbon Campaign
[And I'm gonna take us there.    Starbuck  3/25/07]       X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/     / \ HTML Email

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Copying HDD to another HDD
  2011-11-06 17:03       ` Mike Brown
@ 2011-11-06 17:16         ` LMH
  0 siblings, 0 replies; 7+ messages in thread
From: LMH @ 2011-11-06 17:16 UTC (permalink / raw)
  To: cygwin

I don't know if this is what you are going to try, but if you change the 
of the partition on the src drive to something small enough to fit on 
the new drive, you can use clonezilla to clone the partition instead of 
the whole drive. Just make the partition on the new drive the same size 
or a bit larger.

Just to be safe, I would copy off all the data files from the old drive 
that you can to a backup somewhere. You should be able to do the with a 
gparted CD.

LMH



Mike Brown wrote:
> On Sun, Nov 06, 2011 at 11:44:06PM +0800, KHMan wrote:
>> Some random notes. fsarchiver also allows for flexibility on size.
>
> I'm downloading the iso for SystemRescueCD, which contains fsarchiver.
>
> I just might be able to use fsarchiver to do the trick.
>
> Thanks for the tip.
>
> MB

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Copying HDD to another HDD
  2011-11-06 15:44     ` KHMan
  2011-11-06 17:03       ` Mike Brown
@ 2011-11-07 10:26       ` Mike Brown
  1 sibling, 0 replies; 7+ messages in thread
From: Mike Brown @ 2011-11-07 10:26 UTC (permalink / raw)
  To: cygwin

On Sun, Nov 06, 2011 at 11:44:06PM +0800, KHMan wrote:
> Some random notes. fsarchiver also allows for flexibility on size. But I 
> have mostly used partimage from systemrescuecd in practice for the bootable 
> partition, for: (a) moving from IDE to SATA, (b) moving from SATA to a 
> larger SATA, and (c) restoring older partition image due to flakey 780G 
> support in new ATI drivers.

Bingo, fsarchiver did the trick.  It took a while, but a perfect copy was
made and deposited on the IDE drive and windblows was able to finish doing
its update thing.

All of my settings were left intact and, except for the video driver,
everything came back for the hardware I have installed.

I love Linux tools like this.  Even though the ntfs-3g program is still
supposed to be shaky, it worked perfectly.

Thanks for the suggestion.  It saved my ass.

MB
-- 
e-mail: vidiot@vidiot.com | vidiot@vidiot.net            /~\ The ASCII
[I've been to Earth.  I know where it is.         ]      \ / Ribbon Campaign
[And I'm gonna take us there.    Starbuck  3/25/07]       X  Against
Visit - URL: http://vidiot.com/ | http://vidiot.net/     / \ HTML Email

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2011-11-07 10:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-06 10:37 Copying HDD to another HDD Mike Brown
2011-11-06 14:20 ` LMH
2011-11-06 14:36   ` Mike Brown
2011-11-06 15:44     ` KHMan
2011-11-06 17:03       ` Mike Brown
2011-11-06 17:16         ` LMH
2011-11-07 10:26       ` Mike Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).