How to make an image(backup) of a disk/partition to a remote PardusPC
(→Actions) |
(→General Setup) |
||
| (29 intermediate revisions by one user not shown) | |||
| Line 57: | Line 57: | ||
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/Gparted in order to install Pardus on a Netbook= | =Making a USB version of Clonezilla/Gparted in order to install Pardus on a Netbook= | ||
| − | |||
==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. | ||
| + | |||
| + | 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== | ==General Setup== | ||
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 | + | Create a new 125MB FAT16 partition on the USB stick. |
| − | Set the Boot flag of the | + | 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 73: | Line 78: | ||
Close GParted. | Close GParted. | ||
| − | On the Desktop in System mount the | + | 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 | + | mkdir netbook-usb |
| − | Cd into | + | Cd into netbook-usb: |
| − | cd | + | 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 | + | 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. | + | At this moment syslinux-3.73.zip (4.4MB) |
Unpack syslinux: | Unpack syslinux: | ||
| − | unzip syslinux-3. | + | 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: | Write the MBR of the USB: | ||
cat /usr/lib/syslinux/mbr.bin > /dev/sd? (replace ? with your USB drive letter) | cat /usr/lib/syslinux/mbr.bin > /dev/sd? (replace ? with your USB drive letter) | ||
| − | Write the boot file to the | + | Write the boot file to the 125MB FAT16 partition: |
sudo ./linux/syslinux -s /dev/sd?1 (replace ? with your USB drive letter) | 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. | |
| − | Download the latest gparted-live-???.zip file to the above created | + | |
At this moment gparted-live-0.4.1-2.zip | At this moment gparted-live-0.4.1-2.zip | ||
| − | Unpack | + | ==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) | 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 | + | 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 ().
- Select your language.
- Configuring console-data ... (Don't touch keymap).
- Start_Clonezilla
- Choose the mode: ... (device-image)
- Mount image directory ... (samba_server)
- Mode to setup the network ... (dhcp)
- IP address ... (modify = IP address of the PardusPC)
- Domain in the samba server ... (leave empty)
- Account in server ... (accept default=administrator)
- The directory where.... (modify = /share)
- Now you have to enter the password for ... (modify = administrator password of the PardusPC)
- Choose the mode: ... (saveparts)
- Input a name to save the image ... (modify = whatever you want, this will be the name of the directory of the image)
- Choose the source partition ... (select the partition you want to image)
- Which clone program(s) ... (accept default)
- Set advanced parameters ... (accept default)
- Choose the compression ... (accept default=-z1)
- The size (MB) to split ... (accept default=2000)
- The action when client ... (accept default)
- 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.