How to make an image(backup) of a disk/partition to a remote PardusPC

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Introduction)
(General Setup)
Line 68: Line 68:
 
Open GParted and remove all existing partitions from the USB stick.
 
Open GParted and remove all existing partitions from the USB stick.
  
Create a new 500MB FAT16 partition on the USB stick.
+
Create a new 125MB FAT16 partition on the USB stick.
  
Set the Boot flag of the 500MB FAT16 partition ('''don't forget this one''').
+
Set the Boot flag of the 125MB FAT16 partition ('''don't forget this one''').
  
 
Make a note of the /dev/sd?1 USB drive letter value. In this case it is "b" (/dev/sdb1)
 
Make a note of the /dev/sd?1 USB drive letter value. In this case it is "b" (/dev/sdb1)
Line 100: Line 100:
 
At this moment clonezilla-live-1.2.1-39.zip (94.9MB)
 
At this moment clonezilla-live-1.2.1-39.zip (94.9MB)
  
Copy this file to the 500MB FAT16 patition:
 
cp clonezilla-live-1.2.1-39.zip /media/sd?1  (replace ? with your USB drive letter)
 
 
Download the latest gparted-live-???.zip file to the above created netbook-usb directory from URL: http://gparted.sourceforge.net/download.php.
 
Download the latest gparted-live-???.zip file to the above created netbook-usb directory from URL: http://gparted.sourceforge.net/download.php.
 
At this moment gparted-live-0.4.1-2.zip
 
At this moment gparted-live-0.4.1-2.zip
Copy this file to the 500MB FAT16 patition:
 
cp gparted-live-0.4.1-2.zip /media/sd?1  (replace ? with your USB drive letter)
 
  
 
==Clonezilla or GParted==
 
==Clonezilla or GParted==

Revision as of 10:33, 2 February 2009

Contents

How to make an image(backup) of a disk/partition to a remote PardusPC

Introduction

When you want to do a new installation(dual boot) of Pardus on a computer (WinPC) which already has another OS (Windows), it is highly recommended to make an image(backup) of the disk/partition.

The problem is where to put this image?

This is a manual about making and writing the image to a remote computer with an active Pardus 2008.1 (PardusPC).

Hardware and software requirements

To make the image use a Live CD with clonezilla-live-1.2.1-xx.iso which can be downloaded from http://www.clonezilla.org/download/sourceforge/

A second computer with an active Pardus 2008 OS is used to store the image.

The two computers are connected with a (Sitecom WL-535) router.

The PardusPC must have an active samba setup as described in http://en.pardus-wiki.org/HOWTO:SambaNetwork

"Making /home/samba (share) writable" is important.

The administrator password and IP address of the remote PardusPC must be available.

To show the IP address select the Network-applet in the system tray.

Menu item activation in Clonezilla.

To activate a menu item in Clonezilla do:

Menu items with [ ]:go to the item with the arrow keys, hit the spacebar ([ ]>[*]) and activate with the [Enter] key.

Menu items without [ ]:go to the item with the arrow keys and activate with the [Enter] key.

Making the backup to the remote PardusPC

Boot the WinPC with the Clonezilla liveCD.

Here is a list of the menu items with my input/selection between ().

  1. Select your language.
  2. Configuring console-data ... (Don't touch keymap).
  3. Start_Clonezilla
  4. Choose the mode: ... (device-image)
  5. Mount image directory ... (samba_server)
  6. Mode to setup the network ... (dhcp)
  7. IP address ... (modify = IP address of the PardusPC)
  8. Domain in the samba server ... (leave empty)
  9. Account in server ... (accept default=administrator)
  10. The directory where.... (modify = /share)
  11. Now you have to enter the password for ... (modify = administrator password of the PardusPC)
  12. Choose the mode: ... (saveparts)
  13. Input a name to save the image ... (modify = whatever you want, this will be the name of the directory of the image)
  14. Choose the source partition ... (select the partition you want to image)
  15. Which clone program(s) ... (accept default)
  16. Set advanced parameters ... (accept default)
  17. Choose the compression ... (accept default=-z1)
  18. The size (MB) to split ... (accept default=2000)
  19. The action when client ... (accept default)
  20. Are you sure you want ... (y)

Wait .......and at the end select your Start over/Poweroff option.

Making a USB version of Clonezilla/Gparted in order to install Pardus on a Netbook

Introduction

For this we need a USB stick with a mimimum of 2GB.

We will create two partitions, a 125MB FAT16 partition for Clonezilla/Gparted and the remaining space for a FAT32 partition to save the Pardus image file ~1.4GB.

Clonezilla-USB is used to restore the Pardus image file to the hard disk of the Netbook. Once Pardus on the netbook is active we can use the GParted-USB for resizing the user (/home) partition on the netbook.

General Setup

Open GParted and remove all existing partitions from the USB stick.

Create a new 125MB FAT16 partition on the USB stick.

Set the Boot flag of the 125MB FAT16 partition (don't forget this one).

Make a note of the /dev/sd?1 USB drive letter value. In this case it is "b" (/dev/sdb1)

Create on the remaining free space of the USB stick a FAT32 partition.

Close GParted.

On the Desktop in System mount the 526M Removable Media and note the mounting point /media/sd?1. In this case "/media/sdb1"

Open a terminal and make a new directory:

mkdir netbook-usb

Cd into netbook-usb:

cd netbook-usb

To be able to boot from the LiveUSB, a boot loader for Linux operating from a FAT filesystem is required. The Open Source project SYSLINUX will do this job.

Download the latest syslinux-??.zip file to the above created netbook-usb directory from URL: http://www.kernel.org/pub/linux/utils/boot/syslinux/. At this moment syslinux-3.73.zip (4.4MB)

Unpack syslinux:

unzip syslinux-3.73.zip

Write the MBR of the USB:

cat /usr/lib/syslinux/mbr.bin > /dev/sd?  (replace ? with your USB drive letter)

Write the boot file to the 500MB FAT16 partition:

sudo ./linux/syslinux -s /dev/sd?1  (replace ? with your USB drive letter)

Download the latest "Clonezilla live zip file for USB flash drive or USB hard drive > Stable branch from http://www.clonezilla.org/download/sourceforge/ to the above created netbook-usb directory. At this moment clonezilla-live-1.2.1-39.zip (94.9MB)

Download the latest gparted-live-???.zip file to the above created netbook-usb directory from URL: http://gparted.sourceforge.net/download.php. At this moment gparted-live-0.4.1-2.zip

Clonezilla or GParted

If present remove all files and directories except ldlinux.sys and *.zip from the 500MB FAT16 patition.

Unpack the wanted.zip to the 500MB FAT16 patition:

unzip clonezilla-live-1.2.1-39.zip -d /media/sd?1  (replace ? with your USB drive letter)

or

unzip gparted-live-0.4.1-2.zip -d /media/sd?1  (replace ? with your USB drive letter)

Close the terminal.

On the Desktop in System unmount the 526M Removable Media.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox