[ltp] Re: Cloning a hard disk?

Jaime Iniesta linux-thinkpad@linux-thinkpad.org
Fri, 19 Aug 2005 02:48:56 -0400


------=_Part_3879_22073175.1124434136959
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

It looks like my test didn't work. After 11 hours I aborted the process:

root@0[dev]# dd if=3D/dev/hda of=3D/dev/uba bs=3D10M
1895+0 records in
1895+0 records out
19870515200 bytes transferred in 40062.003484 seconds (495994 bytes/sec)

Jaime


2005/8/18, Jaime Iniesta <capitanplaneta@gmail.com>:
>=20
> Well, the cloning is in process. What I did is boot up from the
> Knoppix CD, then open a shell, become root with su and...
>=20
> dd if=3D/dev/hda of=3D/dev/uba bs=3D10M
>=20
> It is taking quite a lot of time, 15 minutes now but I can expect
> several hours maybe... This PC has an old and slow USB connector.
> Anyway I want to try what happens with that.
>=20
> AlBundy, thanks for the tip on the HD adapter. I have seen it costs 43
> euros on Lenovo, seems like a good idea, this way I could have both
> drives always connected, and maybe use the second hard drive as
> additional storage on Linux, mounting it from there. Do you know if I
> can decide which drive to boot from, on BIOS?
>=20
> Jaime
>=20
> On 8/18/05, Jaime Iniesta <capitanplaneta@gmail.com> wrote:
> > Thanks everybody for the help. Hey AlBundy! I am also on Madrid!!!
> > Hope you are too on the Linux Madrid mailing list.
> >
> > I am right now on Knoppix making some tests with my PC, its hard drive
> > and the external USB one. Lets see if I can get it to work with dd.
> >
> > Jaime!
> >
> > On 8/18/05, Javier (a.k.a AlBundy) <buzonazo@gmail.com> wrote:
> > > On 8/18/05, Jaime Iniesta <capitanplaneta@gmail.com> wrote:
> > > > Hi everybody!
> > >
> > > [...]
> > > > I don't want to make partitions on the hard disk, because I have
> > another
> > > 40
> > > > Gb Samsung hard disk. I'm thinking about installing Linux on that
> > Samsung
> > > > hard drive, and leave the IBM hard drive intact, with Windows, so I=
=20
> can
> > > swap
> > > > disks whenever I need to use Windows.
> > >
> > > Hola Jaime:
> > >
> > > 1) To make many connections in hard disk connector is NOT a good idea=
.
> > > All connectors have a finite lifetime, and if you damage internal
> > > connector, it can need a very very expensive repair.
> > >
> > > If you really want 2 hard drives, you should get an second hard disk
> > > drive adapter, that fits in Ultrabay bay.
> > >
> > >
> > >
> > >
> > > 2) Knoppix CD has both "dd" and "partimage".
> > >
> > >
> > >
> > > 3) If you finally choose the "dd" option, you should add a bigger
> > > "bs=3D" parameter, to get a faster backup, like this:
> > > dd if=3D/dev/hda bs=3D10M
> > >
> > > The default block size is 512bytes. If your hard disk is 40GB, you
> > > would need, approx:
> > > 40 x 1024 x 1024 x 1024 / 512 =3D 83-millions read/write operations
> > >
> > > with a block size of 10M:
> > > (40 x 1024 x 1024 x 1024) / (10 x 1024 x 1024)=3D 4096 read/write
> > > operations
> > >
> > >
> > > ------------
> > > AlBundy
> > > Madrid (Espa=F1a)
> > > --
> > > The linux-thinkpad mailing list home page is at:
> > > http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
> > >
> >
> >
> > --
> >
> > Jaime Iniesta AKA Capit=E1n planeta
> > email: capitanplaneta ARROBA gmail PUNTO com
> > jabber: capitanplaneta ARROBA jabberes PUNTO org
> > webs: http://capitanplaneta.blogspot.com/
> >
>=20
>=20
> --
>=20
> Jaime Iniesta AKA Capit=E1n planeta
> email: capitanplaneta ARROBA gmail PUNTO com
> jabber: capitanplaneta ARROBA jabberes PUNTO org
> webs: http://capitanplaneta.blogspot.com/
>=20



--=20

Jaime Iniesta AKA Capit=E1n planeta
email: capitanplaneta ARROBA gmail PUNTO com
jabber: capitanplaneta ARROBA jabberes PUNTO org
webs: http://capitanplaneta.blogspot.com/

------=_Part_3879_22073175.1124434136959
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

It looks like my test didn't work. After 11 hours I aborted the process:<br=
>
<br>
root@0[dev]# dd if=3D/dev/hda of=3D/dev/uba bs=3D10M<br>
1895+0 records in<br>
1895+0 records out<br>
19870515200 bytes transferred in 40062.003484 seconds (495994 bytes/sec)<br=
>
<br>
Jaime<br>
<br><br><div><span class=3D"gmail_quote">2005/8/18, Jaime Iniesta &lt;<a hr=
ef=3D"mailto:capitanplaneta@gmail.com">capitanplaneta@gmail.com</a>&gt;:</s=
pan><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(2=
04, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well, the cloning is in process. What I did is boot up from the<br>Knoppix =
CD, then open a shell, become root with su and...<br><br>dd if=3D/dev/hda o=
f=3D/dev/uba bs=3D10M<br><br>It is taking quite a lot of time, 15 minutes n=
ow but I can expect
<br>several hours maybe... This PC has an old and slow USB connector.<br>An=
yway I want to try what happens with that.<br><br>AlBundy, thanks for the t=
ip on the HD adapter. I have seen it costs 43<br>euros on Lenovo, seems lik=
e a good idea, this way I could have both
<br>drives always connected, and maybe use the second hard drive as<br>addi=
tional storage on Linux, mounting it from there. Do you know if I<br>can de=
cide which drive to boot from, on BIOS?<br><br>Jaime<br><br>On 8/18/05, Jai=
me Iniesta &lt;
<a href=3D"mailto:capitanplaneta@gmail.com">capitanplaneta@gmail.com</a>&gt=
; wrote:<br>&gt; Thanks everybody for the help. Hey AlBundy! I am also on M=
adrid!!!<br>&gt; Hope you are too on the Linux Madrid mailing list.<br>&gt;
<br>&gt; I am right now on Knoppix making some tests with my PC, its hard d=
rive<br>&gt; and the external USB one. Lets see if I can get it to work wit=
h dd.<br>&gt;<br>&gt; Jaime!<br>&gt;<br>&gt; On 8/18/05, Javier (a.k.a AlBu=
ndy) &lt;
<a href=3D"mailto:buzonazo@gmail.com">buzonazo@gmail.com</a>&gt; wrote:<br>=
&gt; &gt; On 8/18/05, Jaime Iniesta &lt;<a href=3D"mailto:capitanplaneta@gm=
ail.com">capitanplaneta@gmail.com</a>&gt; wrote:<br>&gt; &gt; &gt; Hi every=
body!
<br>&gt; &gt;<br>&gt; &gt; [...]<br>&gt; &gt; &gt;&nbsp;&nbsp;I don't want =
to make partitions on the hard disk, because I have<br>&gt; another<br>&gt;=
 &gt; 40<br>&gt; &gt; &gt; Gb Samsung hard disk. I'm thinking about install=
ing Linux on that
<br>&gt; Samsung<br>&gt; &gt; &gt; hard drive, and leave the IBM hard drive=
 intact, with Windows, so I can<br>&gt; &gt; swap<br>&gt; &gt; &gt; disks w=
henever I need to use Windows.<br>&gt; &gt;<br>&gt; &gt; Hola Jaime:<br>
&gt; &gt;<br>&gt; &gt; 1) To make many connections in hard disk connector i=
s NOT a good idea.<br>&gt; &gt; All connectors have a finite lifetime, and =
if you damage internal<br>&gt; &gt; connector, it can need a very very expe=
nsive repair.
<br>&gt; &gt;<br>&gt; &gt; If you really want 2 hard drives, you should get=
 an second hard disk<br>&gt; &gt; drive adapter, that fits in Ultrabay bay.=
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 2) Knoppi=
x CD has both &quot;dd&quot; and &quot;partimage&quot;.
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 3) If you finally choo=
se the &quot;dd&quot; option, you should add a bigger<br>&gt; &gt; &quot;bs=
=3D&quot; parameter, to get a faster backup, like this:<br>&gt; &gt;&nbsp;&=
nbsp;&nbsp;&nbsp; dd if=3D/dev/hda bs=3D10M
<br>&gt; &gt;<br>&gt; &gt; The default block size is 512bytes. If your hard=
 disk is 40GB, you<br>&gt; &gt; would need, approx:<br>&gt; &gt;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;40 x 1024 x 1024 x 1024 / 512 =3D 83-millions read=
/write operations<br>&gt; &gt;
<br>&gt; &gt; with a block size of 10M:<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;(40 x 1024 x 1024 x 1024) / (10 x 1024 x 1024)=3D 4096 read/wr=
ite<br>&gt; &gt; operations<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --------=
----<br>&gt; &gt; AlBundy<br>
&gt; &gt; Madrid (Espa=F1a)<br>&gt; &gt; --<br>&gt; &gt; The linux-thinkpad=
 mailing list home page is at:<br>&gt; &gt; <a href=3D"http://mailman.linux=
-thinkpad.org/mailman/listinfo/linux-thinkpad">http://mailman.linux-thinkpa=
d.org/mailman/listinfo/linux-thinkpad
</a><br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt;<br>&gt; Jaime Iniesta =
AKA Capit=E1n planeta<br>&gt; email: capitanplaneta ARROBA gmail PUNTO com<=
br>&gt; jabber: capitanplaneta ARROBA jabberes PUNTO org<br>&gt; webs: <a h=
ref=3D"http://capitanplaneta.blogspot.com/">
http://capitanplaneta.blogspot.com/</a><br>&gt;<br><br><br>--<br><br>Jaime =
Iniesta AKA Capit=E1n planeta<br>email: capitanplaneta ARROBA gmail PUNTO c=
om<br>jabber: capitanplaneta ARROBA jabberes PUNTO org<br>webs: <a href=3D"=
http://capitanplaneta.blogspot.com/">
http://capitanplaneta.blogspot.com/</a><br></blockquote></div><br><br><br>-=
- <br><br>Jaime Iniesta AKA Capit=E1n planeta<br>email: capitanplaneta ARRO=
BA gmail PUNTO com<br>jabber: capitanplaneta ARROBA jabberes PUNTO org<br>
webs: <a href=3D"http://capitanplaneta.blogspot.com/">http://capitanplaneta=
.blogspot.com/</a>

------=_Part_3879_22073175.1124434136959--