> Did you have any problem using -hn0 ? If so, please tell me the error > messages.
The message made me think it wasn't going to work, so I aborted. I just now tried it, and found it has 2 problems: 1) it doesn't know to look in /WINNT 1.1) cz didn't abort when it had problems 2) it tries to modify all of my NTFS partitions, not just the one that I just created. I was able to use ocs-chnthn to set it, see 2nd section below. [EMAIL PROTECTED]:/media# clonezilla Clonezilla mode is device-image ocsroot device is local_dev Preparing the mount point /home/partimag... If you want to use USB device as Clonezilla image repository, please insert USB device into this machine *now*. Wait for about 5 secs then press Enter key so that the OS can detect the USB device and later we can mount it as /home/partimag. Press "Enter" to continue...... Mounting local dev as /home/partimag... No cciss related disk was detected. Skip cciss related actions... Excluding busy partition or disk... Getting /dev/hda1 info... Getting /dev/hdb1 info... Getting /dev/hdb2 info... Getting /dev/hdb3 info... Getting /dev/sda1 info... /dev/hdb3 filesystem: ntfs Warning! Mounting NTFS partition by ntfs-3g is experimental! It might cause file system crash in that NTFS partition (Although the possibility is very low)! Are you sure you want to continue ? ? [y/N] y OK, let's do it! ntfs-3g /dev/hdb3 /home/partimag The file system disk space usage *****************************************************. Filesystem Size Used Avail Use% Mounted on aufs 443M 37M 407M 9% / tmpfs 443M 0 443M 0% /lib/init/rw udev 10M 64K 10M 1% /dev tmpfs 443M 4.0K 443M 1% /dev/shm 192.168.1.7:/var/lib/tftpboot/util/cz/clonezilla/ 86M 86M 0 100% /live/image tmpfs 443M 37M 407M 9% /live/cow tmpfs 443M 0 443M 0% /live tmpfs 443M 0 443M 0% /tmp /dev/hdb3 28G 24G 4.6G 84% /home/partimag *****************************************************. Press "Enter" to continue...... done! Setting the TERM as xterm Choose the mode for ocs-sr Shutting down the Logical Volume Manager No volume groups found No volume groups found Finished Shutting down the Logical Volume Manager clonezilla image dir: /home/partimag *****************************************************. Do NOT restore the MBR in the client! *****************************************************. No cciss related disk was detected. Skip cciss related actions... Excluding busy partition or disk... PS. Next time you can run this command directly: /opt/drbl/sbin/ocs-sr -hn0 PC -c -t -p choose restoredisk "e18_w2ks_m2m" "hda" This command is also saved as this file name for later use if necessary: /tmp/ocs-e18_w2ks_m2m-2008-10-06-17-03 Press "Enter" to continue... Target disk hda does not exist in the image saved from disk(s) "sda". Creating a tmp Clonezilla image "e18_w2ks_m2m-tmp-cnvted" based on the image "e18_w2ks_m2m" so that we can restore the image e18_w2ks_m2m (was saved from sda) to hda... ///NOTE/// If the restored OS is GNU/Linux, you might have to modify /etc/fstab and grub config file in the restored GNU/Linux to affect these changes so that it can boot successfully! Press "Enter" to continue...... Setting the TERM as xterm clonezilla image dir: /tmp Change sda to hda in /tmp/e18_w2ks_m2m-tmp-cnvted/disk... done! Change sda to hda in /tmp/e18_w2ks_m2m-tmp-cnvted/parts... done! Change sda to hda in /tmp/e18_w2ks_m2m-tmp-cnvted/sda-pt.sf... done! Change sda to hda in /tmp/e18_w2ks_m2m-tmp-cnvted/sda-pt.parted... done! No cciss related disk was detected. Skip cciss related actions... ******************************************* Try to turn on the harddisk "/dev/hda" DMA... ******************************************* Activating the partition info in /proc... done! No cciss related disk was detected. Skip cciss related actions... No cciss related disk was detected. Skip cciss related actions... Getting /dev/hda1 info... *****************************************************. The following step is to restore image to the harddisk/partition(s) in this machine: "/tmp/e18_w2ks_m2m-tmp-cnvted" -> "hda hda1" WARNING!!! WARNING!!! WARNING!!! WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: *****************************************************. hda (82.0GB_Maxtor_6Y080P0_Y2G5Y03E) hda1 (60.0GB_ntfs(In_Maxtor_6Y080P0)) *****************************************************. Are you sure you want to continue ? ? [y/N] y OK, let's do it!! This program is not started by clonezilla server. No cciss related disk was detected. Skip cciss related actions... Getting /dev/hda1 info... The following step is to restore image to the harddisk/partition(s) in this machine: "/tmp/e18_w2ks_m2m-tmp-cnvted" -> "hda (hda1)" WARNING!!! WARNING!!! WARNING!!! WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: *****************************************************. hda (82.0GB_Maxtor_6Y080P0_Y2G5Y03E) hda1 (60.0GB_ntfs(In_Maxtor_6Y080P0)) *****************************************************. Let me ask you again, Are you sure you want to continue ? ? [y/N] y OK, let's do it!! Shutting down the Logical Volume Manager No volume groups found No volume groups found Finished Shutting down the Logical Volume Manager Creating partition in /dev/hda... *****************************************************. Mon Oct 6 17:07:31 UTC 2008 Writing the partition table... Running sfdisk --force /dev/hda < /tmp/e18_w2ks_m2m-tmp-cnvted/hda-pt.sf Checking that no-one is using this disk right now ... OK Warning: The partition table looks like it was made for C/H/S=*/255/63 (instead of 158816/16/63). For this listing I'll assume that geometry. Warning: partition 1 does not end at a cylinder boundary Disk /dev/hda: 158816 cylinders, 16 heads, 63 sectors/track Old situation: Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/hda1 * 0+ 7296 7297- 58613121 7 HPFS/NTFS /dev/hda2 0 - 0 0 0 Empty /dev/hda3 0 - 0 0 0 Empty /dev/hda4 0 - 0 0 0 Empty New situation: Units = sectors of 512 bytes, counting from 0 Device Boot Start End #sectors Id System /dev/hda1 * 63 117226304 117226242 7 HPFS/NTFS /dev/hda2 0 - 0 0 Empty /dev/hda3 0 - 0 0 Empty /dev/hda4 0 - 0 0 Empty Successfully wrote the new partition table Re-reading the partition table ... If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 (See fdisk(8).) This is done by sfdisk --force /dev/hda < /tmp/e18_w2ks_m2m-tmp-cnvted/hda-pt.sf Checking the integrity of partition table in the disk /dev/hda... Restoring partition /dev/hda1... No cciss related disk was detected. Skip cciss related actions... *****************************************************. Clean filesystem header in device /dev/hda1... *****************************************************. *****************************************************. Starting unicast restoring image e18_w2ks_m2m-tmp-cnvted to /dev/hda1... If this action fails or hangs, check: * Is the saved image /tmp/e18_w2ks_m2m-tmp-cnvted/hda1.ntfs-img* corrupted ? *****************************************************. ntfsclone v2.0.0 (libntfs 10:0:0) Ntfsclone image version: 10.0 Cluster size : 4096 bytes Image volume size : 60019834880 bytes (60020 MB) Image device size : 60019835904 bytes Space in use : 3001 MB (5.0%) Offset to image data : 56 (0x38) bytes Restoring NTFS from image ... 100.00 percent completed Syncing ... lzop: <stdin>: warning: ignoring trailing garbage in lzop file >>> Time elapsed: 153.55 secs (~ 2.559 mins), average speed: 1170.0 MB/min Finished unicast restoring image e18_w2ks_m2m-tmp-cnvted to /dev/hda1. *****************************************************. ***************************************************** Changing the hostname of M$ windows based on IP address... checking drbl-chntpw... yes checking ntfs-3g... yes checking ntfsmount... yes Use ntfsmount. check fuse module... yes check ntfs module... yes ** ** DRBL chnthn tool. It will change M$ windows' hostname ** ** Search your possible hard-disk in local system [/dev/hda] ====================================================== /dev/hda 1 32.3kB 60.0GB 60.0GB primary ntfs boot ====================================================== umount if necessary... done [/dev/hdb] ====================================================== /dev/hdb 3 11.3GB 41.0GB 29.7GB primary ntfs ====================================================== [/dev/sda] ====================================================== /dev/sda 1 32.3kB 500GB 500GB primary ntfs ====================================================== ** Please select partition : [1]: /dev/hda1 [ntfs] [WINDOWS][2]: /dev/hdb3 [ntfs] [WINDOWS][3]: /dev/sda1[ntfs] [WINDOWS]====================================================== ** Device assigned: [1]: /dev/hda1 [ntfs] [WINDOWS] [2]: /dev/hdb3 [ntfs] [WINDOWS] [3]: /dev/sda1 [ntfs] [WINDOWS] ** Setup hostname prefix and variable: ** Use hostname => PC-001-091 ** Process: /dev/hda1 Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 453200 16 453184 1% /tmp Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 58613120 2930260 55682860 5% /tmp/ocs-chnthn-mnt.fT5828 Filesystem write error : /tmp/ocs-chnthn-mnt.fT5828/WINDOWS/system32/config/system or /tmp/ocs-chnthn-mnt.fT5828/WINDOWS/system32/config/software ** Process: /dev/hdb3 Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 453200 16 453184 1% /tmp Filesystem 1K-blocks Used Available Use% Mounted on /dev/hdb3 29005356 24278644 4726712 84% /tmp/ocs-chnthn-mnt.fT5828 Filesystem write error : /tmp/ocs-chnthn-mnt.fT5828/WINDOWS/system32/config/system or /tmp/ocs-chnthn-mnt.fT5828/WINDOWS/system32/config/software ** Process: /dev/sda1 Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 453200 16 453184 1% /tmp Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 488384000 28362284 460021716 6% /tmp/ocs-chnthn-mnt.fT5828 Filesystem write error : /tmp/ocs-chnthn-mnt.fT5828/WINDOWS/system32/config/system or /tmp/ocs-chnthn-mnt.fT5828/WINDOWS/system32/config/software ********************************************************* * NCHC Free Software Labs, NCHC, Taiwan * License: GPL * Author: Ceasar Sun and Steven Shiau ********************************************************* Bye !! ***************************************************** This program is not started by Clonezilla server, so skip notifying it the job is done. Finished! Now syncing - flush filesystem buffers... Now you can choose to: (0) Poweroff (1) Reboot (2) Enter command line prompt [2] checking drbl-chntpw... yes checking ntfs-3g... yes checking ntfsmount... yes Use ntfsmount. check fuse module... yes check ntfs module... yes ** ** DRBL chnthn tool. It will change M$ windows' hostname ** ** Search your possible hard-disk in local system [/dev/hda] ====================================================== /dev/hda 1 32.3kB 60.0GB 60.0GB primary ntfs boot ====================================================== [/dev/hdb] ====================================================== /dev/hdb 3 11.3GB 41.0GB 29.7GB primary ntfs ====================================================== [/dev/sda] ====================================================== /dev/sda 1 32.3kB 500GB 500GB primary ntfs ====================================================== ** Please select partition : [1]: /dev/hda1 [ntfs] [winNT][2]: /dev/hdb3 [ntfs] [winNT][3]: /dev/sda1 [ntfs] [winNT]====================================================== 1 ..[n] to select, [Ctrl+C] to exit ... [1] ** Device assigned: [1]: /dev/hda1 [ntfs] [winNT] ** Setup hostname prefix and variable: Select hostname variable: [ip] ,[mac] or [fix] ? [0]: IP , as:PC-001-014 [1]: MAC address , as:PC-DA2199 [2]: Manual [0] Input hostname prefix , no space: [PC] Use hostname format: PC-$IP ** Use hostname => PC-001-091 ** Process: /dev/hda1 Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 453200 16 453184 1% /tmp Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda1 58613120 2930260 55682860 5% /tmp/ocs-chnthn-mnt.Me6081 Execute command: drbl-chntpw -f /tmp/ocs-chnthn-winregscript.OB6082 /tmp/ocs-chnthn-mnt.Me6081/winNT/system32/config/system /tmp/ocs-chnthn-mnt.Me6081/winNT/system32/config/software ** Check with drbl-winRoll configuration:No drbl-winRoll config file, skip... ** Success !! ********************************************************* * NCHC Free Software Labs, NCHC, Taiwan * License: GPL * Author: Ceasar Sun and Steven Shiau ********************************************************* Bye !! [EMAIL PROTECTED]:/opt/drbl/sbin# Carl K Steven Shiau wrote: > Carl, > In your case, since you are using NTFS and ntfs-3g was installed, then I > think it should work. > Did you have any problem using -hn0 ? If so, please tell me the error > messages. > > Steven. > > Carl Karsten wrote: >> I don't quite understand how it should work - what do I need to do so -hn0 >> will >> work? >> >> Carl K >> >> Steven Shiau wrote: >> >>> Carl, >>> Good. Thanks. Now I know this prompt is especially for -hn0 or -hn1. >>> Actually it's not only with ntfs-3g, but also other prompts. I think >>> it's better to keep it. >>> >>> Regards, >>> Steven. >>> >>> Carl Karsten wrote: >>> >>>> using live/vmlinuz1 kernel from clonezilla-live-20080914-intrepid.iso (see >>>> below for pxe configs) >>>> >>>> >>>> pxe boot box1, make image of drive (win2000 install) >>>> pxe boot box2, sudo -s; passwd; /etc/init.d/ssh start; >>>> ssh in so I can cut/paste: >>>> >>>> [EMAIL PROTECTED]:~$ ssh [EMAIL PROTECTED] >>>> [EMAIL PROTECTED]'s password: >>>> Last login: Fri Oct 3 15:33:49 2008 from 192.168.1.48 >>>> [EMAIL PROTECTED]:~# clonezilla >>>> device-image disk/partition to/from image >>>> │ nfs_server Use NFS server >>>> │ >>>> enter server IP (forgot to cut/paste...) >>>> Mount NFS server: │ >>>> /mnt/sdc1/__________________________________________________________________ >>>> │ >>>> mount -t nfs 192.168.1.91:/mnt/sdc1/ /home/partimag >>>> 192.168.1.91:/mnt/sdc1/ >>>> 466G 28G 439G 6% /home/partimag >>>> Press "Enter" to continue...... >>>> │ restoredisk Restore_an_image_to_local_disk >>>> │ >>>> Clonezilla advanced extra parameters >>>> │ [*] -hn0 PC Change MS Win hostname (based on IP address) after clone >>>> <Ok> >>>> Clonezilla advanced extra parameters >>>> │ <Ok> >>>> >>>> >>>> ┌───────────────────┤ You use using -hn0 or -hn1 ├───────────────────┐ >>>> │ │ >>>> │ You use using -hn0 or -hn1 to change the hostname of MS Win │ >>>> │ image directly under GNU/Linux. You have to make sure your │ >>>> │ GNU/Linux can write or modify files in the image MS Win. For FAT │ >>>> │ filesystem, it will be fine. If it is NTFS, you have to install │ >>>> │ some packages (such as ntfs-3g or ntfsmount from │ >>>> │ http://www.linux-ntfs.org) in this server and run drblpush again │ >>>> │ so that in client environment, Clonezilla can modify files in │ >>>> │ NTFS filesystem. │ >>>> │ WARNING! ***DO NOT USE THIS OPTION WITH ENCRYPTED FILE SYSTEM │ >>>> │ │ >>>> │ <Ok> │ >>>> │ │ >>>> └────────────────────────────────────────────────────────────────────┘ >>>> >>>> >>>> good steps? >>>> >>>> pxe server setup: >>>> mount iso: >>>> /var/lib/tftpboot/linux/clonezilla-live-20080914-intrepid.iso on >>>> /var/lib/tftpboot/linux/clonezilla type iso9660 (rw,loop=/dev/loop5) >>>> >>>> nfs export: >>>> [EMAIL PROTECTED]:# cat /etc/exports >>>> /var/lib/tftpboot/linux/clonezilla >>>> 192.168.1.0/255.255.255.0(async,no_root_squash,no_subtree_check,ro) >>>> >>>> pxe boot: >>>> [EMAIL PROTECTED]:/var/lib/tftpboot/pxelinux.cfg # grep clonez default >>>> label clonezilla >>>> kernel linux/clonezilla/live/vmlinuz1 >>>> append initrd=linux/clonezilla/live/initrd1.img boot=live union=aufs >>>> hostname=intrepid ocs_live_run="ocs-live-general" ocs_live_extra_param="" >>>> ocs_live_batch="no" ocs_lang="" ocs_live_keymap="NONE" ip=frommedia >>>> nolocales >>>> netboot=nfs nfsroot=192.168.1.7:/var/lib/tftpboot/linux/clonezilla/ >>>> >>>> >>>> Carl K >>>> >>>> >>>> >>>> Steven Shiau wrote: >>>> >>>> >>>>> Weird, >>>>> This should be shown in Clonezilla SE, not in Clonezilla live. >>>>> Please tell me more, especially the steps where you see it so that I can >>>>> fix it. >>>>> Thanks. >>>>> >>>>> Steven. >>>>> >>>>> Carl Karsten wrote: >>>>> >>>>> >>>>>> Steven Shiau wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Carl, >>>>>>> >>>>>>> Carl Karsten wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> cz says: >>>>>>>> >>>>>>>> │ ... If it is NTFS, you have to install │ >>>>>>>> │ some packages (such as ntfs-3g or ntfsmount from >>>>>>>> │ >>>>>>>> │ http://www.linux-ntfs.org) in this server and run drblpush >>>>>>>> again │ >>>>>>>> │ so that in client environment, Clonezilla can modify files in >>>>>>>> │ >>>>>>>> │ NTFS filesystem. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Where did you find this ? >>>>>>> Thanks. >>>>>>> >>>>>>> >>>>>>> >>>>>> um... I cut/pasted that from the screen. I think it is a result of "set >>>>>> windows >>>>>> host name from IP" >>>>>> >>>>>> is that enough, or should I get more details? >>>>>> >>>>>> Carl K >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Steven. >>>>>>> >>>>>>> >>>>>>> >>>>>>>> but those are already installed: >>>>>>>> >>>>>>>> [EMAIL PROTECTED]:~# which ntfsmount ntfs-3g >>>>>>>> /usr/bin/ntfsmount >>>>>>>> /bin/ntfs-3g >>>>>>>> >>>>>>>> [EMAIL PROTECTED]:~# sudo apt-get install ntfsprogs >>>>>>>> Reading package lists... Done >>>>>>>> Building dependency tree >>>>>>>> Reading state information... Done >>>>>>>> ntfsprogs is already the newest version. >>>>>>>> >>>>>>>> Carl K >>>>>>>> >>>>>>>> ------------------------------------------------------------------------- >>>>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>>>>> challenge >>>>>>>> Build the coolest Linux based applications with Moblin SDK & win great >>>>>>>> prizes >>>>>>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>>>>>> world >>>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>>>> _______________________________________________ >>>>>>>> Clonezilla-live mailing list >>>>>>>> Clonezilla-live@lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>>>> challenge >>>>>> Build the coolest Linux based applications with Moblin SDK & win great >>>>>> prizes >>>>>> Grand prize is a trip for two to an Open Source event anywhere in the >>>>>> world >>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>>>> _______________________________________________ >>>>>> Clonezilla-live mailing list >>>>>> Clonezilla-live@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------- >>>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>>> challenge >>>> Build the coolest Linux based applications with Moblin SDK & win great >>>> prizes >>>> Grand prize is a trip for two to an Open Source event anywhere in the world >>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>>> _______________________________________________ >>>> Clonezilla-live mailing list >>>> Clonezilla-live@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >>>> >>>> >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Clonezilla-live mailing list >> Clonezilla-live@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/clonezilla-live >> > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Clonezilla-live mailing list Clonezilla-live@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clonezilla-live