All of lore.kernel.org
 help / color / mirror / Atom feed
* hd cloning
@ 2006-03-29 22:11 Giampaolo Bellini
  2006-03-29 22:25 ` Tomáš Ebenlendr
  2006-03-30  7:49 ` Marco Gerards
  0 siblings, 2 replies; 5+ messages in thread
From: Giampaolo Bellini @ 2006-03-29 22:11 UTC (permalink / raw)
  To: grub-devel



Hello...

is it possible to clone an entire HD to another one (with exactly the
same space/sectors/heads etc) without reinstalling grub ?

I'm doing:

        dd if=/dev/hda of=/dev/hdb 

        dd if=/dev/hda of=hda.mbr bs=512 count=1

        sfdisk -d /dev/hda > hda.sf

to clone the HD, save the MBR and partition table, and then:

        dd if=hda.mbr of=/dev/hdb

        sfdisk /dev/hdb < hda.sf

to restore the MBR and partition table on the target drive.

As this seems not to work (at least on i386), do I need to backup
something else ? Of course, the original HD start with a perfectly
working grub.

thanks in advance,

      Giampaolo




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

* Re: hd cloning
  2006-03-29 22:11 hd cloning Giampaolo Bellini
@ 2006-03-29 22:25 ` Tomáš Ebenlendr
  2006-03-29 22:45   ` Carl Karsten
  2006-03-30  7:49 ` Marco Gerards
  1 sibling, 1 reply; 5+ messages in thread
From: Tomáš Ebenlendr @ 2006-03-29 22:25 UTC (permalink / raw)
  To: The development of GRUB 2

On i386 are several things that may lead to fail...

First you should use same computer (only replace HD), if this does not
work (with unchanged bios setup), then it cannot work on other computer.
(I mention this, because you don't write that you use it on one computer.)

Second, bios must access HD with same parameters in bios, i.e. same mode
(LBA/CHS/LARGE) and same number of sectors/heads/cylinders (!This may be
different than how linux sees this numbers!).

I think that it should work under conditions mentioned above, but I'm not
sure. It will be better if you specify if you install grub in mbr or in some
partition (like hda1), and how it does not work. The text that it writes
on screen is useful to know if some part of grub was loaded, or your problem
is 'generic' (i.e. any boot loader will fail this way...).

Anyway, I'm responding to this, because I don't know where is the right
place for this question. This (development list of grub2) is not.

> is it possible to clone an entire HD to another one (with exactly the
> same space/sectors/heads etc) without reinstalling grub ?
>
> I'm doing:
>
>         dd if=/dev/hda of=/dev/hdb
>
>         dd if=/dev/hda of=hda.mbr bs=512 count=1
>
>         sfdisk -d /dev/hda > hda.sf
>
> to clone the HD, save the MBR and partition table, and then:
>
>         dd if=hda.mbr of=/dev/hdb
>
>         sfdisk /dev/hdb < hda.sf
>
> to restore the MBR and partition table on the target drive.
>
> As this seems not to work (at least on i386), do I need to backup
> something else ? Of course, the original HD start with a perfectly
> working grub.
>
> thanks in advance,
>
>       Giampaolo


-- 
                                            Tomas 'Ebi' Ebenlendr
                                            http://get.to/ebik




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

* Re: hd cloning
  2006-03-29 22:25 ` Tomáš Ebenlendr
@ 2006-03-29 22:45   ` Carl Karsten
  0 siblings, 0 replies; 5+ messages in thread
From: Carl Karsten @ 2006-03-29 22:45 UTC (permalink / raw)
  To: The development of GRUB 2

> partition (like hda1), and how it does not work. The text that it writes
> on screen is useful to know if some part of grub was loaded, or your problem
> is 'generic' (i.e. any boot loader will fail this way...).
> 
> Anyway, I'm responding to this, because I don't know where is the right
> place for this question. This (development list of grub2) is not.


Something close to grub dev that I am surprised doesn't exist yet, mainly to 
assist in grub(2) dev: some way to display what is installed on a HD.

Are there some signatures or such that can be looked for?  maybe in the new 
version of grub, the parameters could be stored somewhere for later retrieval, 
just for debugging both grub-dev and grub usage.  Human readable would be great, 
assuming there is room.

Carl K



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

* Re: hd cloning
  2006-03-29 22:11 hd cloning Giampaolo Bellini
  2006-03-29 22:25 ` Tomáš Ebenlendr
@ 2006-03-30  7:49 ` Marco Gerards
  1 sibling, 0 replies; 5+ messages in thread
From: Marco Gerards @ 2006-03-30  7:49 UTC (permalink / raw)
  To: The development of GRUB 2

Giampaolo Bellini <iw2lsi@ir2ip.net> writes:

Hi,

> is it possible to clone an entire HD to another one (with exactly the
> same space/sectors/heads etc) without reinstalling grub ?

How is this related to the development of GRUB 2?

I think such questions belong on bug-grub.  This list is about the
development of GRUB 2.  You are using GRUB Legacy.

--
Marco




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

* Re: hd cloning
@ 2006-03-30 12:18 Giampaolo Bellini
  0 siblings, 0 replies; 5+ messages in thread
From: Giampaolo Bellini @ 2006-03-30 12:18 UTC (permalink / raw)
  To: grub-devel

>How is this related to the development of GRUB 2?
>
>I think such questions belong on bug-grub.  This list is about the
>development of GRUB 2.  You are using GRUB Legacy.
>
>--
>Marco

you are right... sorry for the mistake

   Giampaolo





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

end of thread, other threads:[~2006-03-30 12:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29 22:11 hd cloning Giampaolo Bellini
2006-03-29 22:25 ` Tomáš Ebenlendr
2006-03-29 22:45   ` Carl Karsten
2006-03-30  7:49 ` Marco Gerards
  -- strict thread matches above, loose matches on Subject: below --
2006-03-30 12:18 Giampaolo Bellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.