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

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Actions)
(General Setup)
 
(47 intermediate revisions by one user not shown)
Line 56: Line 56:
  
 
Wait .......and at the end select your Start over/Poweroff option.
 
Wait .......and at the end select your Start over/Poweroff option.
=Making a USB version of Clonezilla in order to install Pardus on a Netbook=
+
=Making a USB version of Clonezilla/Gparted in order to install Pardus on a Netbook=
{{UnderConstruction}}
+
 
==Introduction==
 
==Introduction==
 
For this we need a USB stick with a mimimum of 2GB.
 
For this we need a USB stick with a mimimum of 2GB.
==Actions==
 
Create a FAT16 125MB partition with Gparted on the USB stick.
 
  
Set the Boot flag of the FAT16 125MB partition.
+
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.
  
Make a note of the /dev/sd?? value. In this case "/dev/sdb1"
+
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.
  
Create on remaining free space of the USB stick a FAT32 partition.
+
==General Setup==
 +
Open GParted and remove all existing partitions from the USB stick.
  
Close Gparted.
+
Create a new 125MB FAT16 partition on the USB stick.
  
On the Desktop in System mount the 131M Removable Media and note the mounting point. In this case "/media/sdb1"
+
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:
 
Open a terminal and make a new directory:
  mkdir clonezilla
+
  mkdir netbook-usb
Cd into clonezilla:
+
Cd into netbook-usb:
  cd clonezilla
+
  cd netbook-usb
 
To be able to boot from the LiveUSB, a boot loader for Linux operating from a FAT filesystem is required.
 
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.  
 
The Open Source project SYSLINUX will do this job.  
  
Download the latest syslinux-??.zip file to the above created clonezilla directory from URL: http://www.kernel.org/pub/linux/utils/boot/syslinux/.
+
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.72.zip (4.4MB)
+
At this moment syslinux-3.73.zip (4.4MB)
  
 
Unpack syslinux:
 
Unpack syslinux:
  unzip syslinux-3.72.zip
+
  unzip syslinux-3.73.zip
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 clonezilla directory.
+
Install/check the syslinux package from the repository:
 +
sudo pisi it syslinux
 +
Get the ID of the USB device:
 +
ls -la /dev/disk/by-id/usb-*
 +
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 125MB FAT16 partition:
 +
sudo ./linux/syslinux -s /dev/sd?1  (replace ? with your USB drive letter)
  
At this moment clonezilla-live-1.2.1-23.zip (91.9MB)
+
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)
  
Unpack this file to the FAT16 125MB patition:
+
Download the latest gparted-live-???.zip file to the above created netbook-usb directory from URL: http://gparted.sourceforge.net/download.php.
  unzip clonezilla-live-1.2.1-23.zip -d /media/sdb1"
+
At this moment gparted-live-0.4.1-2.zip
Write the MBR of the USB:
+
 
cat /usr/lib/syslinux/mbr.bin > /dev/sdb
+
==Clonezilla or GParted==
Write the boot file
+
If present remove all files and directories except '''ldlinux.sys''' from the 125MB FAT16 partition.
  ./linux/syslinux -s /dev/sdb1
+
 
 +
Unpack the wanted.zip to the 125MB 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.
 
Close the terminal.
  
On the Desktop in System unmount the 131M Removable Media.
+
On the Desktop in System unmount the 125M Removable Media.

Latest revision as of 09:35, 13 July 2010

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

Install/check the syslinux package from the repository:

sudo pisi it syslinux

Get the ID of the USB device:

ls -la /dev/disk/by-id/usb-*

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 125MB 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 from the 125MB FAT16 partition.

Unpack the wanted.zip to the 125MB 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 125M Removable Media.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox