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

-- 
Mark Ellerby, Systems Administrator | Department of Computer Science
m.d.elle...@sheffield.ac.uk         | Regent Court, 211 Portobello
+44 (0)114 2221856                  | Sheffield, S1 4DP


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to