--- trunk/www/onepage.html 2010/06/01 13:23:50 75 +++ trunk/www/onepage.html 2010/06/17 22:25:06 77 @@ -73,7 +73,7 @@

Wellcome

25/05/2010 - v 3.1.0

-

Last update: 01/06/2010

+

Last update: 18/06/2010

@@ -350,8 +350,92 @@ Incorrect use of any raw disk writing tool could cause your
operating system (GNU/Linux / Windows) not to boot.

Confirm the command before you run it.

So, from any linux box, assuming Clonezilla-SysRescCD iso file is in your home directory, and your USB device name is sdc4, you just execute the commands:

umount /dev/sdc4
-dd if=~/clonezilla-sysresccd-full-mod-3.1.0.iso of=/dev/sdc4 bs=512

+dd if=~/clonezilla-sysresccd-full-mod-3.1.0.iso of=/dev/sdc bs=512

And that's it. Your usb device is ready to boot!!!

+

Using the extra space [^]

+

+If your usb device is more than 400MB in size, the above command will leave the remaining space unused. To verify it, execute the command: +

+

fdisk -l /dev/sdc

+

You should get something similar to this:

+

+Disk /dev/sdc: 1048 MB, 1048576000 bytes
+64 heads, 32 sectors/track, 1000 cylinders, total 2048000 sectors
+Units = sectors of 1 * 512 = 512 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk identifier: 0x77a5188f
+
+   Device Boot  Start  End  Blocks  Id  System +/dev/sdc1    *      1  384  393216  17  Hidden HPFS/NTFS +

+

+As you can see, we are currently using 348 out of 1000 cylinders of the disk. The remaining disk space (~600MB) can still be used, executing the following commands: +

+

+fdisk /dev/sdc
+command (m for help): n (create new partition)
+command action
+ e extended
+ p primary partition (1-4)
+p
+partition number (1-4): 4 (create partition sdc4)
+first cylinder (385-1000, default 385):
+using default value 385
+last cylinder, +cylinders or +size{k,m,g} (385-1000, default 1000):
+using default value 1000
+
+command (m for help): p (display partition table)
+
+disk /dev/sdc: 1048 mb, 1048576000 bytes
+64 heads, 32 sectors/track, 1000 cylinders
+units = cylinders of 2048 * 512 = 1048576 bytes
+sector size (logical/physical): 512 bytes / 512 bytes
+i/o size (minimum/optimal): 512 bytes / 512 bytes
+disk identifier: 0x77a5188f
+
+   device boot  start   end  blocks   id  system
+/dev/sdc1   *       1   384  393216   17  hidden hpfs/ntfs
+/dev/sdc4         385  1000  630784   83  linux
+
+
+command (m for help): t (change partition type)
+partition number (1-4): 4
+hex code (type l to list codes): b
+changed system type of partition 4 to b (w95 fat32)
+
+command (m for help): p (display partition table)
+
+disk /dev/sdc: 1048 mb, 1048576000 bytes
+64 heads, 32 sectors/track, 1000 cylinders
+units = cylinders of 2048 * 512 = 1048576 bytes
+sector size (logical/physical): 512 bytes / 512 bytes
+i/o size (minimum/optimal): 512 bytes / 512 bytes
+disk identifier: 0x77a5188f
+
+   device boot  start   end  blocks   id  system
+/dev/sdc1   *       1   384  393216   17  hidden hpfs/ntfs
+/dev/sdc4         385  1000  630784    b  w95 fat32
+
+command (m for help): w (write partition table to disk and exit)
+The partition table has been altered!
+
+Calling ioctl() to re-read partition table.
+
+WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
+The kernel still uses the old table. The new table will be used at
+the next reboot or after you run partprobe(8) or kpartx(8)
+Syncing disks. +

+

+At this point you should disconnect and reconnect your usb device. When it's recognised, you can format the partition you've just created +

+

+mkdosfs -F 32 /dev/sdc4 +

+

+The partition is now ready for use!!! +

Installing the "hard" way [^]

If the "easy" way does not work there is an alternative; you will use the Clonezilla-SysRescCD ISO file (or CD) to copy and modify a couple of files on the USB disk, and finally make it bootable, using syslinux and its configuration file syslinux.cfg.

@@ -433,16 +517,14 @@ If you are on linux, check that the partition on the USB disk is active (bootable), executing:

fdisk -l /dev/sdc

You should get something similar to this:

- - - - - - - - - -
Disk /dev/sdc: 1031 MB, 1031798272 bytes
64 heads, 32 sectors/track, 983 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
 
Device     Boot     Start     End     Blocks     Id     System     
/dev/sdc4     *     1     983     1006576     6     FAT16     
+

+Disk /dev/sdc: 1031 MB, 1031798272 bytes
+64 heads, 32 sectors/track, 983 cylinders
+Units = cylinders of 2048 * 512 = 1048576 bytes
+
+   Device  Boot  Start  End   Blocks  Id  System
+/dev/sdc4     *      1  983  1006576   6  FAT16
+


If the partition is not active (no astrisk), execute:

fdisk /dev/sdc

and issue "Command: " a (toggle a bootable flag) and "Partition number:" 4 (for /dev/sdc4).

@@ -1373,143 +1455,101 @@ umount -a
reboot

to reboot the system.

- - - - -

Restoring data [^]

- -

Image files are always created for one purpose: restoring the data they contain. Images can be, for example, a backup solution: as long as hardware works, the computer can be restored to the state it was when creating the image. Another usage scenario is changing the hard drive: files can be copy-pasted from the old drive to the new, but that method doesn't make the new drive bootable. Disk images do.

- -

This page contains a demonstration of the latter case. On the Getting backups page, a 500 MB virtual disk containing 160 megabytes of data was copied to a 2 GB virtual disk which was empty. Now the 500 MB disk is changed to an empty 2 GB disk (still virtual) and I'll restore the data to that disk.

- -

When creating a disk image, one needs to check that both the source and target partitions are error free. That's not required when the image is restored, because restoration process can't damage the disk image. Note, however, that restoring an image erases all the data in the target disk/partition.

- -

You also need to check the BIOS settings to be able to boot from Clonezilla-SysRescCD. Some BIOSes contain a boot menu, others require editing settings pernamently. Details can be found on the manual of the motherboard or laptop.

- -

Now let's boot.

- -
-Restore process erases all the data on the target disk/partition.

Before restoring make sure you have backup of all the data
on the target disk/partition, even if the filesystem is corrupted. -
-
-The following pressentation has been made using
Clonezilla Live v 1.2.3-27 -
- - -

Restoring data [^]

- -

Clonezilla-SysRescCD starting screen [^]

- -

If you're fine with US keymap and English language (available languages are English, Spanish, French, Italian, Japanese and Chinese [both simplified and traditional]) or don't mind editing the boot parameters, just select Clonezilla Live at the starting screen and press ENTER. When the system comes up, it will load the program that will preform the backup. After that continue from this step.

- -

If you need to change these settings, select one of the available Clonezilla Live menu entries, and press TAB. The current boot parameters will be displayed.

- -

The default parameters for booting Clonezilla Live on a 1024x768 screen, are the following:

- -

append initrd=/live/initrd1.img boot=live union=aufs
-  ocs_live_run="ocs-live-general" ocs_live_extra_param=""
-  ocs_prerun="/live/image/restorecd/prerun.normal" ocs_live_batch="no"
-  ocs_lang="en_US.UTF-8" ocs_live_keymap="NONE" vga=791 nolocales

- -

By deleting the words in red, you instruct Clonezilla Live to ask you the values of these parameters. When the appropriate changes have been done (as shown bellow), just press ENTER to boot.

- -

append initrd=/live/initrd1.img boot=live union=aufs
-  ocs_live_run="ocs-live-general" ocs_live_extra_param=""
-  ocs_prerun="/live/image/restorecd/prerun.normal" ocs_live_batch="no"
-  ocs_lang="" ocs_live_keymap="" vga=791 nolocales

-

- -

Screen "Choose Language" [^]

- + +

Restoring data [^]

+

Image files are always created for one purpose: restoring the data they contain. Images can be, for example, a backup solution: as long as hardware works, the computer can be restored to the state it was when creating the image. Another usage scenario is changing the hard drive: files can be copy-pasted from the old drive to the new, but that method doesn't make the new drive bootable. Disk images do.

+

This page contains a demonstration of the latter case. On the Getting backups page, a 500 MB virtual disk containing 160 megabytes of data was copied to a 2 GB virtual disk which was empty. Now the 500 MB disk is changed to an empty 2 GB disk (still virtual) and I'll restore the data to that disk.

+

When creating a disk image, one needs to check that both the source and target partitions are error free. That's not required when the image is restored, because restoration process can't damage the disk image. Note, however, that restoring an image erases all the data in the target disk/partition.

+

You also need to check the BIOS settings to be able to boot from Clonezilla-SysRescCD. Some BIOSes contain a boot menu, others require editing settings pernamently. Details can be found on the manual of the motherboard or laptop.

+

Now let's boot.

+
+Restore process erases all the data on the target disk/partition.

Before restoring make sure you have backup of all the data
on the target disk/partition, even if the filesystem is corrupted. +
+
+The following pressentation has been made using
Clonezilla Live v 1.2.5-17 +
+

Restoring data [^]

+

Clonezilla-SysRescCD starting screen [^]

+

If you're fine with US keymap and English language (available languages are English, Spanish, French, Italian, Japanese and Chinese [both simplified and traditional]) or don't mind editing the boot parameters, just select Clonezilla Live at the starting screen and press ENTER. When the system comes up, it will load the program that will preform the backup. After that continue from this step.

+

If you need to change these settings, select one of the available Clonezilla Live menu entries, and press TAB. The current boot parameters will be displayed.

+

The default parameters for booting Clonezilla Live on a 1024x768 screen, are the following:

+

append initrd=/live/initrd1.img boot=live union=aufs
+  ocs_live_run="ocs-live-general" ocs_live_extra_param=""
+  ocs_prerun="/live/image/restorecd/prerun.normal" ocs_live_batch="no"
+  ocs_lang="en_US.UTF-8" ocs_live_keymap="NONE" vga=791 nolocales

+

By deleting the words in red, you instruct Clonezilla Live to ask you the values of these parameters. When the appropriate changes have been done (as shown bellow), just press ENTER to boot.

+

append initrd=/live/initrd1.img boot=live union=aufs
+  ocs_live_run="ocs-live-general" ocs_live_extra_param=""
+  ocs_prerun="/live/image/restorecd/prerun.normal" ocs_live_batch="no"
+  ocs_lang="" ocs_live_keymap="" vga=791 nolocales

+

+

Screen "Choose Language" [^]


-I select "en_US.UTF-8 English" and press ENTER.

- -

Screen "Configuring console-data" [^]

- +I select "en_US.UTF-8 English" and press ENTER.

+

Screen "Configuring console-data" [^]


-I select "Select keymap from full list" and press ENTER. If you're using US keymap, the default option "Don't touch keymap" is a better choice.

- -

Screen "Configuring console-data" [^]

- +I select "Select keymap from full list" and press ENTER. If you're using US keymap, the default option "Don't touch keymap" is a better choice.

+

Screen "Configuring console-data" [^]


-Because I haven't changed my keyboard, I select "pc / qwerty / Finnish / Standard / Standard". Because you most likely use a different keyboard, choose the one you use.

- -

Screen "Start Clonezilla" [^]

- +Because I haven't changed my keyboard, I select "pc / qwerty / Finnish / Standard / Standard". Because you most likely use a different keyboard, choose the one you use.

+

Screen "Start Clonezilla" [^]


-I select "Start Clonezilla" and press ENTER. -

- -

Screen "Clonezilla" [^]

- +I select "Start Clonezilla" and press ENTER. +

+

Screen "Clonezilla" [^]


-I select "device-image" and press ENTER.

-

- -

Screen "Mount clonezilla image directory" [^]

- -

In this screen I can select the way the image file directory has been saved. -Available options are local directory, remote directory through ssh, samba or nfs and skip, to use the previously used directory. More info about the image file can be found at section "About the Image file".
-
+I select "device-image" and press ENTER.

+

+

Screen "Mount clonezilla image directory" [^]

+

In this screen I can select the way the image file directory has been saved. +Available options are local directory, remote directory through ssh, samba or nfs and skip, to use the previously used directory. More info about the image file can be found at section "About the Image file".
+

-I select "local_dev" and press ENTER. -

- -

Next screen [^]

- -

This is where I choose the location of the image file.

+I select "local_dev" and press ENTER. +

+

Next screen [^]

+

This is where I choose the location of the image file.


-I select partition hda1 and press ENTER.
-
-
and then ENTER again.

- +I select partition sda1 and press ENTER.
+
+
and then ENTER again.


-This screen displays the mounting result.
-As we can see, /dev/hda1 has been successfully mounted under /tmp/local-dev.

- -

Next Screen [^]

- +This screen displays the mounting result.
+As we can see, /dev/sda1 has been successfully mounted under /tmp/local-dev.

+

Next Screen [^]


-I select Beginer mode to accept the default restore options. If you select Expert mode, you can choose the options yourself. More details can be found here.

- -

Screen "Select mode" [^]

- -

Here I can select the desired operation.
-
+I select Beginer mode to accept the default restore options. If you select Expert mode, you can choose the options yourself. More details can be found here.

+

Screen "Select mode" [^]

+

Here I can select the desired operation.
+

-I select "restoredisk" and press ENTER.

- -

Next Screen [^]

- +I select "restoredisk" and press ENTER.

+

Next Screen [^]


-In this screen I select the image folder. This partition contains only one image.

- -

Next Screen [^]

- +In this screen I select the image folder. This partition contains only one image.

+

Next Screen [^]


-Finally I am asked to select which partition the image will be restored to. After double-checking the disk doesn't contain anything important, I press ENTER.

- -

Starting the restoration [^]

- +Finally I am asked to select which partition the image will be restored to. After double-checking the disk doesn't contain anything important, I press ENTER.

+

Starting the restoration [^]


-Then the program will display the command that will be executed and will ask me to press ENTER.
+Then the program will display the command that will be executed and will ask me to press ENTER.
Then I will be asked to confirm the operation by pressing y and ENTER.

- -

-This is the last confirmation Clonezilla Live asks.
After this step there is no coming back.

-Then my confirmation is asked one last time. After checking one more time the disk doesn't contain any important data, I press y and ENTER.
-
+
+This is the last confirmation Clonezilla Live asks.
After this step there is no coming back.

+Then my confirmation is asked one last time. After checking one more time the disk doesn't contain any important data, I press y and ENTER.
+

-After that, the restore process begins -
-
-
-and when it's successfully completed, I will be able to reboot the system by pressing 1 and ENTER. -

- - +After that, the restore process begins +
+
+
+and when it's successfully completed, I press ENTER to get to the shell. Then, I execute the commands:

+

sudo su -
+cd
+umount -a
+reboot

+

to reboot the system.

Creating a Restore DVD - Part 1 [^]