is it possible to recover images via pxe booting :?:

Messages about how to use partimage across a network (with the partimaged server, samba, nfs, ...)

Moderator: feffer

aymanouch
Posts: 1
Joined: Tue Sep 26, 2006 9:46 am

is it possible to recover images via pxe booting :?:

Postby aymanouch » Tue Sep 26, 2006 10:01 am

i would like to restore an image on my client via PXE "network boot"
because the disk is empty now

thx

steven
Posts: 20
Joined: Fri Apr 09, 2004 3:27 pm
Location: Taiwan
Contact:

Re: is it possible to recover images via pxe booting :?:

Postby steven » Mon Oct 09, 2006 3:03 am

aymanouch wrote:i would like to restore an image on my client via PXE "network boot"
because the disk is empty now

thx

Yes, check this one:
http://clonezilla.sf.net
It's based on partimage, DRBL, ntfsclone and udpcast. You can restore image via PXE network boot, and do multicast clone.

yurka
Posts: 3
Joined: Mon Aug 20, 2007 10:01 am

Re: is it possible to recover images via pxe booting :?:

Postby yurka » Tue Aug 21, 2007 11:12 am

aymanouch wrote:i would like to restore an image on my client via PXE "network boot"
because the disk is empty now

thx

yes for sure. i've did that.
you'll need:
on the server
[*] NFS server
[*] partmaged
[*] tftpd-hpa (other tftp server)
[*] dhcpd

for client:
[*] make ram disk (my ram disk is about 66MB, but i can be smaller)
[*] install aprtimage client into ramdisk
[*] dhcp client
[*] portmap
[*] nfs client

when booted via PXE ,the process is the following:
save to image:
[*] save (dd) first 512 bytes from you hard disk to the nfs server
[*] save the partition table with sfdisk to nfs
make

Code: Select all

for PART in `sfdisk -l /dev/hda (for exmaple) | grep ^/dev/hda | grep -E -e "(NTFS|Linux)"$ | sed s/[^0-9]//g`; do
 call the partimage against /dev/hda$PART
done


to restore from image:
to the above but vice versa:
[*] restore the partition table with sfdisk to nfs
[*] restore (dd) first 512 bytes to you hard disk from nfs server

Code: Select all

for PART in `sfdisk -l ${DISK} (for exmaple) | grep ^${DISK} | grep -E -e "(NTFS|Linux)"$ | sed s/[^0-9]//g`; do
 call the partimage against /dev/hda$PART with --nombr flag
done

where the DISK variable is /dev/hda , /dev/sdc, etc

that's all. easy and cruel :)
PS: that saves original partitions' size. if you restore to larger HDD you'll get free (unpartiitioned) space after the last "restored" partition (in case you are restoring **ALL** HDD's partitions).

[/code]


Return to “Usage across network”

Who is online

Users browsing this forum: No registered users and 3 guests