Jump to content

Clonezilla - Automated Image Boot Options


Recommended Posts

Posted

Hi All,

This is my first post on hak5, loving it so far :) I'm hoping you guys can help me out on this irrating issue, and I seem to be going around in circles (or loosing the plot).

My Dir Structure is as follows (I have copied to my desktop as I need to take the drive else where):

Volume in drive C has no label.
 Volume Serial Number is 9088-FB2F

 Directory of C:\Documents and Settings\pauls\Desktop\USB

23/09/2009  12:55    <DIR>          .
23/09/2009  12:55    <DIR>          ..
23/09/2009  12:54    <DIR>          bootclone
23/09/2009  12:55                 0 dir.txt
31/03/2009  22:20           217,769 grldr
23/09/2009  12:36             1,007 menu.lst
               3 File(s)        218,776 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone

23/09/2009  12:54    <DIR>          .
23/09/2009  12:54    <DIR>          ..
23/09/2009  12:52    <DIR>          .disk
23/09/2009  12:53    <DIR>          boot.images
17/09/2009  13:51       108,003,328 clonezilla-live-1.2.2-26.iso
20/07/2009  09:38               107 Clonezilla-Live-Version
19/07/2009  08:50            17,982 COPYING
23/09/2009  12:53    <DIR>          isolinux
23/09/2009  12:53    <DIR>          live
23/09/2009  12:52    <DIR>          utils
               3 File(s)    108,021,417 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\.disk

23/09/2009  12:52    <DIR>          .
23/09/2009  12:52    <DIR>          ..
20/07/2009  09:35                83 info
               1 File(s)             83 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\boot.images

23/09/2009  12:53    <DIR>          .
23/09/2009  12:53    <DIR>          ..
23/09/2009  09:42             2,048 no_emul.00
               1 File(s)          2,048 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\isolinux

23/09/2009  12:53    <DIR>          .
23/09/2009  12:53    <DIR>          ..
20/07/2009  09:38             2,048 boot.cat
19/07/2009  08:50            13,604 chain.c32
19/07/2009  08:50            43,283 drblwp.png
19/07/2009  08:50            14,336 isolinux.bin
20/07/2009  09:38             5,658 isolinux.cfg
19/07/2009  08:50            19,584 memdisk
19/07/2009  08:50            57,140 menu.c32
19/07/2009  08:50            59,423 ocswp.png
19/07/2009  08:50           147,728 vesamenu.c32
               9 File(s)        362,804 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\live

23/09/2009  12:53    <DIR>          .
23/09/2009  12:53    <DIR>          ..
23/09/2009  11:56             1,514 6910pTest
15/05/2007  17:28            98,937 eb.zli
20/07/2009  09:35        92,643,328 filesystem.squashfs
24/09/2006  20:38         1,474,560 freedos.img
08/03/2009  20:25           211,246 gpxe.lkn
20/07/2009  09:35        10,182,395 initrd1.img
19/07/2009  08:50           116,508 memtest
20/07/2009  09:35            28,455 packages.txt
20/07/2009  09:35             2,556 parameters.txt
20/07/2009  09:35         1,969,552 vmlinuz1
              10 File(s)    106,729,051 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\utils

23/09/2009  12:52    <DIR>          .
23/09/2009  12:52    <DIR>          ..
23/09/2009  12:52    <DIR>          linux
23/09/2009  12:52    <DIR>          mbr
20/07/2009  09:38               109 README.txt
23/09/2009  12:52    <DIR>          win32
               1 File(s)            109 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\utils\linux

23/09/2009  12:52    <DIR>          .
23/09/2009  12:52    <DIR>          ..
19/07/2009  08:50             6,676 makeboot.sh
10/06/2009  01:21            25,128 syslinux
20/07/2009  09:38                23 VERSION.txt
               3 File(s)         31,827 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\utils\mbr

23/09/2009  12:52    <DIR>          .
23/09/2009  12:52    <DIR>          ..
10/06/2009  01:21               440 mbr.bin
               1 File(s)            440 bytes

 Directory of C:\Documents and Settings\pauls\Desktop\USB\bootclone\utils\win32

23/09/2009  12:52    <DIR>          .
23/09/2009  12:52    <DIR>          ..
19/07/2009  08:50             1,334 makeboot.bat
10/06/2009  01:21            27,648 syslinux.exe
20/07/2009  09:38                23 VERSION.txt
               3 File(s)         29,005 bytes

     Total Files Listed:
              35 File(s)    215,395,560 bytes
              29 Dir(s)  91,592,192,000 bytes free

My menu.lst is:

color blue/black yellow/blue
timeout 140

title Restore 6910p
root (hd0,0)
kernel /bootclone/live/vmlinuz1 boot=live union=aufs ip=frommedia live-media-path=/bootclone/live vga=791 toram bootfrom=/dev/sda5 noprompt noprompt ocs_live_run="/bootclone/live/6910pTest" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=791 nolocales 

initrd /boot/live/initrd1.img

boot

I am now able to boot 'Restore 6910p' and clonezilla will load and try to load the 6910ptest script. However it cannot find it. Where would I need to copy this to? Does grub simply load an image file, and then all files that are called are within that image?

Apologies for sounding a little daft, I am still new to this linux/booting side of things lol

Your help will be much appreciated :)

Thanks

Paul

Posted

Hi H@L0_00,

thanks for the tree for windows apps, I will use that in the future :)

As for clonezilla, I haven't tried mapping the ISO, I am guessing that will be done using Grub2?

The 'Restore 6910p' is just a menu entry in grub. When you select that, it boots clonezilla, and tells it to run 6910ptest script. Whenever you tell clonezilla to run a script, it looks in this /live/image/live directory.

Posted

Ok, what you need to do, then, is move your /bootclone/live directory to the root of the device, so it would be just /live unless you'd like to try and edit the scripts. I don't use CloneZilla, but you could get an idea of how to go about editing scripts by taking a look at my Ophcrack guide where I edited the scripts to look for the Ophcrack tables in a different directory. You'd have to figure out which script is the one that tells CloneZilla to look in /live/image/live and make it look in /bootclone/live/image/live in order for it to find the scripts you'd like to keep in that directory. Grep can come in handy (something like " grep -r -i '/live/image/live' * " after extracting the initrd file might come up with some results you could take a look at).

Posted

Thanks again :) It turns out that /live/image/live was actually mounting to /bootclone (a simple ls helped me find this lol, amazing what a nights sleep can do).

I have no created a nested menu that lets you automatically deploy clonezilla images :)

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...