I suggest creating a backup or restoring by booting-up with the Live CD...
BACKUP
Boot up with the Live CD. Then open a terminal and type the following...
Code:
$ sudo mkdir /mnt/backup
$ sudo mkdir /mnt/installation
$ sudo mount -tvfat /dev/sda4 /mnt/backup
$ sudo mount -text3 /dev/sda6 /mnt/installation
$ cd /mnt/installation
$ sudo tar -cvpzf /mnt/backup/Backup-Kubuntu-2008-01-26.tgz .
RESTORE
Boot up with the Live CD. Then open a terminal and type the following...
Code:
$ sudo mkdir /mnt/backup
$ sudo mkdir /mnt/installation
$ sudo mount -tvfat /dev/sda4 /mnt/backup
$ sudo mount -text3 /dev/sda6 /mnt/installation
$ sudo rm -r /mnt/installation/*
$ cd /mnt/installation
$ sudo tar -xvpzf /mnt/backup/Backup-Kubuntu-2008-01-26.tgz .
Notes
- Replace sda4 with the partition or disk where you will keep your backups.
- Replace sda6 with the partition where you've installed Kubuntu or Ubuntu.
- If the partition or disk where you keep your backups is a Windows FAT file system, use mount -tvfat, as shown above.
- If the partition or disk where you keep your backups is a Linux ext3 file system, be sure to use mount -text3 instead of mount -tvfat.
- Replace Backup-Kubuntu-2008-01-26.tgz with the name of your backup archive.
- Don't miss the "space" + "dot" at the end of the tar commands above.
There are a few benefits to this approach:
- You don't have to unmount any file systems before you tar your Kubuntu or Ubuntu installation.
- Mounted file systems are not archived, making your backup archive smaller.
- You don't have to exclude any directories, especially if you've just setup your system exactly the way you want it.
- The contents of directories that do not need to be archived are automatically empty (/sys, /proc).
- The /media directory has the correct mount points and permissions after a restore.
- The tar command becomes shorter and simpler.
- During the restore process, you can completely wipe out your old installation, so you don't have to worry about unwanted files hanging around.
- No tar errors.
Bookmarks