"-g /dev/sda1" means
/dev/sda1 is the partition where /boot/grub exists.
It does not mean the MBR.
In you case, try not to use "-g /dev/sda1", i.e.
/opt/drbl/sbin/ocs-sr -e1 auto -e2 -c -r -j2 -k -p true -t
restoreparts 2012-04-05-13-img sda1

Steven.

On 2012/4/11 下午 05:16, Mark Ellerby wrote:
> Hi,
>
> I am using clonezilla-live to backup a linux OS to an image, then
> restore it to another hard disk. (Testing in preparation for, hopefully,
> a network installation onto many PCs)
>
> I install Ubuntu 10.04 LTS to the disk at /dev/sda. sda1 is root and
> sda2 is swap. Grub goes on /dev/sda1, NOT the MBR. (I have good reasons
> for doing this). Then I boot Clonezilla Live via PXE. I am able then to
> image sda1 to a temporary hard disk.
>
> Then I swap out the source hard disk for a blank one, and partition it
> similarly to the source one (sda1 root, sda2 swap). Following that I
> boot Clonezilla Live and enter the command shell. I mount the disk with
> the image with it onto /home/partimag.
>
> I run this command next:
>
> /opt/drbl/sbin/ocs-sr -e1 auto -e2 -c -r -j2 -k -p true -g /dev/sda1 -t
> restoreparts 2012-04-05-13-img sda1
>
> In theory grub should be installed to /dev/sda1. However, I get the
> following message:
>
> The boot loader on /dev/sda is not grub. Skip running grub-install!
>
> I am unable to find out why this is so. Nothing in /var/log has anything
> grub-related in there, so far as I can tell.
>
> I can manually install grub to the root partition by doing this:
>
> mkdir /a
> mount /dev/sda1 /a
> mount --bind /dev /a/dev
> mount --bind /dev/pts /a/dev/pts
> mount --bind /proc /a/proc
> mount --bind /sys /a/sys
> chroot /a bin/bash
> [chroot] grub-install --force /dev/sda1
>
> It's not ideal, because I'd like to be able to boot Clonezilla and
> restore images automatically. Is there any way I can get the ocs-sr
> command do what I want?
>
> Many thanks,
> Mark
>

-- 
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to