i’m trying to debug the problem that imaging of single disk, multiple partition don’t work.
so i started a debug upload.
the screen say to me to type fog to start image upload.
here images uploaded to server:
administrator@fog:/images/labciro$ ls -la
totale 6890908
drwxrwxrwx 2 root root 4096 gen 21 08:54 .
drwxrwxrwx 4 root root 4096 gen 21 08:54 …
-rwxrwxrwx 1 root root 512 gen 21 08:35 d1.mbr
-rwxrwxrwx 1 root root 7056262600 gen 21 08:54 d1p1.img
-rwxrwxrwx 1 root root 20 gen 21 08:54 d1p2.img
-rwxrwxrwx 1 root root 20 gen 21 08:54 d1p3.img
administrator@fog:/images/labciro$
gunzipping d1p2.img and d1p3.img the result is empty file. so seems that the image upload is not started…
partitions on pc are:
sda1 30GB ntfs winxp
sda2 15GB ext4 xubuntu
sda3 1GB linux-swap
so sda2 and sda3 is not imaged (only 20byte is copied).
here the value of variables:
##########
osid=1
osname=Windows XP
mbrfile=/usr/share/fog/mbr/xp.mbr
type=up
storage=192.168.0.3:/images/dev/
img=labciro
hd=/dev/sda
part=/dev/sda1
##########
i think that in these variables the info that also sda2 and sda3 is to be done is missing. do you confirm? how i can force to do image of: sda1,sda2,sda3 and not sda1 only??
where i can find the fog script on the server? in what directory is stored? (to debug)
i tryed to run fogpartinfo script and detects 3 partitions (right) so i must understand why only first 20byte is saved on server of 2nd and 3th partitions…
now i’m running fog script by hand, after that i’ll check the log on the client:
the problem with second and third partition is from :
ntfsclone-ng.c: no ntfs partition, ntfs mount error 22
i think that partclone is launched with bad options…
i think that we must modify fogpartinfo script to detect list of partitions and also the partition type (fdisk -l output is enough) so we can start the differents partclone commands in right way.
here contenents of client log:
administrator@fog:~/test_fog$ more fdisk-after
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 5648 14647296 83 Linux
/dev/sda3 5648 5773 1000448 82 Linux swap
administrator@fog:~/test_fog$
administrator@fog:~/test_fog$ more fdisk-before
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 5648 14647296 83 Linux
/dev/sda3 5648 5773 1000448 82 Linux swap
administrator@fog:~/test_fog$
administrator@fog:~/test_fog$ more partclone.log
Partclone v0.2.69 [url]http://partclone.org[/url]
Starting to clone device (/dev/sda3) to image (/tmp/pigz1)
Reading Super Block
ntfsclone-ng.c: NOT NTFS partition, ntfs mount error 22
administrator@fog:~/test_fog$
we must do modify fog script to check the partition/fs type and adapt the partclone command in various situations.