grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* Can GRUB do the equivalent of 'dd'?
@ 2011-11-29  7:09 Loving, Kent
  2011-11-29  8:43 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Loving, Kent @ 2011-11-29  7:09 UTC (permalink / raw)
  To: 'grub-devel'

I was wondering if GRUB can ‘install’ an image using dd before it is booted.

The image will be in file, previously created by the dd command, and stored in a partition that is not the first partition. GRUB would have to execute an equivalent of ‘dd’ to dump the image from the file to the first partition and then boot it. To keep this from being too easy, the image is windows XP, and the image file is on an NTFS partition.

The goal is to allow a ‘snapshot’ of a working OS to be saved and then allow a return to that snapshot later.


Kent Loving

Kent Loving, 425-315-3043

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

* Re: Can GRUB do the equivalent of 'dd'?
  2011-11-29  7:09 Can GRUB do the equivalent of 'dd'? Loving, Kent
@ 2011-11-29  8:43 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-11-29  8:43 UTC (permalink / raw)
  To: The development of GNU GRUB

On 29.11.2011 08:09, Loving, Kent wrote:
> I was wondering if GRUB can ‘install’ an image using dd before it is booted.
>
> The image will be in file, previously created by the dd command, and stored in a partition that is not the first partition. GRUB would have to execute an equivalent of ‘dd’ to dump the image from the file to the first partition and then boot it. To keep this from being too easy, the image is windows XP, and the image file is on an NTFS partition.
>
> The goal is to allow a ‘snapshot’ of a working OS to be saved and then allow a return to that snapshot later.
This is currently not implemented other than in my local experiments. In 
your case you're better off booting a small GNU/Linux to do the 
operations. GRUB is not designed to handle writing a whole partition. 
While it is able to do so (otherwise it would be a bug), it doesn't use 
some of available acceleration so GNU/Linux is faster on writing data. 
The overhead of booting GNU/Linux is small compared to the time needed 
to copy over the image.
Note: I haven't done any benchmarks so this isn't confirmed. but 
probably is the case
>
> Kent Loving
>
> Kent Loving, 425-315-3043
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



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

end of thread, other threads:[~2011-11-29  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29  7:09 Can GRUB do the equivalent of 'dd'? Loving, Kent
2011-11-29  8:43 ` Vladimir 'φ-coder/phcoder' Serbinenko

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 NNTP newsgroup(s).