1 |
> why backup mbr? installing grub takes less time then the backup and restore |
2 |
> of |
3 |
> the mbr. |
4 |
> |
5 |
> And dd for backups? Why wasting space? Why suffering from problems when the |
6 |
> new |
7 |
> harddisk has a different size? |
8 |
> Just tar up everything. |
9 |
> |
10 |
> Ok, so is this correct? |
11 |
|
12 |
Backup with tar; |
13 |
1. boot from cd |
14 |
2. mount /dev/sda1 /mnt/boot |
15 |
3. cd /mnt/boot |
16 |
4. tar czf /otherdisk/boot.tar.gz * |
17 |
5. mount /dev/sda3 /mnt/root |
18 |
6. cd /mnt/root |
19 |
7. tar czf /otherdisk/root.tar.gz * |
20 |
|
21 |
Restore; |
22 |
1. Boot from cd |
23 |
2. fdisk /dev/sda |
24 |
3. mkfs.ext /dev/sda1 |
25 |
4. mkswap /dev/sda2 |
26 |
5. mkreiserfs /dev/sda3 |
27 |
6. mount /dev/sda1 /mnt/boot |
28 |
7. cd /mnt/boot |
29 |
8. tar xzf /otherdisk/boot.tar.gz |
30 |
9. mount /dev/sda3 /mnt/root |
31 |
10. cd /mnt/root |
32 |
11. tar xzf /otherdisk/root.tar.gz (should i exclude anything? /proc /sys?) |
33 |
12. chroot /mnt/boot |
34 |
13. grub-install --no-floppy /dev/sda |
35 |
14. reboot |