You are not logged in.

#1 2011-03-14 10:33:02

sundar_ima
Member
Registered: 2011-03-14
Posts: 45

How to backup/restore complete archlinux on other system/drive

Hi,
I installed Archlinux in one of my partition. I must say that i am extremely happy with Archlinux. Initially i wanted to test the distro and installed it on a partition which had less space. Now i am planing to install/move it on a partition with more space.

My question is that how do i completely restore my Archlinux installation in to new partition? Is it possible to copy entire root files in to new partition (Ext4), Make the drive bootable and edit grub.cfg so as to boot from new partition.

Offline

#2 2011-03-14 10:36:33

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: How to backup/restore complete archlinux on other system/drive

Yep. Plus don't forget your fstab.

I usually use cp -a for moving that kind of stuff.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#3 2011-03-14 10:57:33

sundar_ima
Member
Registered: 2011-03-14
Posts: 45

Re: How to backup/restore complete archlinux on other system/drive

toad wrote:

Yep. Plus don't forget your fstab.

I usually use cp -a for moving that kind of stuff.

what changes to be done in fstab?

Offline

#4 2011-03-14 11:00:20

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: How to backup/restore complete archlinux on other system/drive

Ask the wiki smile

https://wiki.archlinux.org/index.php/Fstab

In case you get stuck ask for more info here - we'll need output of fdisk -l, blkid and a copy of your fstab. But the whole thing is quite straight forward - just make sure your pointers are all correct...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#5 2011-03-14 14:05:52

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: How to backup/restore complete archlinux on other system/drive

Why not simply use GParted to increase the size of the partition by encroaching some from the neighboring partition??


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2011-03-14 14:27:06

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: How to backup/restore complete archlinux on other system/drive

You can copy all the file and make a usuable arch installation; but pay attention to the following point:

conserve all file attribute and hard links. I think cp -a do this; you can also use rsync with --archive --hard-links --sparse --delete --numeric-ids, see the man page for details. I use this command to make backup. It is usefull because rsync is clever enougfh to only transfer the files that are changed since the last backup.

If you restore to a new partition; you will have to:

1) reinstall grub

2) If you use UUID, edit /boot/grub/menu.lst and /etc/fstab to use the new UUID of the partition.

Offline

#7 2011-03-15 16:10:22

sundar_ima
Member
Registered: 2011-03-14
Posts: 45

Re: How to backup/restore complete archlinux on other system/drive

I got it done with simply copying all the files in to new partition. However i got few errors that "special files can not be copied" and went ahead to update grub from linux mint(from other drive). When i rebooted the system very thing worked fine till kde log in menu, thereafter it simply refuced to login. So i added new user account, updated the system and rebooted. Finally i could boot in to kde with out no issues.

I could have extended the partition with gparted but the archlinux drive was sandwitched between two importent drives with full of data (no space).

Posted this entry so that it will be helpful to other newbies trying this trick...

Last edited by sundar_ima (2011-03-15 16:11:30)

Offline

Board footer

Powered by FluxBB