You are not logged in.

#1 2009-01-12 20:31:07

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Backup "/" partition for reinstall

Hi there,

I am considering migrating my current "/" partition (XFS) to ext4 when it reaches core. I wanted some opinion as to the easiest, or best way to backup and transfer my existing XFS / partition data to the reformatted ext4 "/" partition. [I have a seperate /home partition as ext3 which I will deal with later]

Is it possible to use a live-cd to copy current "/" data to my external harddrive, format the parition to ext4, and then simply copy back my system data from the external HD? EDIT: I just realized my current /home parition would be large enough to house all / data, so can I use same method only using /home partition instead of external HD
Any better ideas?

Any input is appreciated.

Last edited by proxima_centauri (2009-01-12 20:33:12)


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#2 2009-01-12 20:36:48

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Backup "/" partition for reinstall

I've juggled around logical volumes using "cp -a" without any problems, so I think your plan would work. Just remember to edit /etc/fstab to reflect the changes (xfs->ext4 and maybe a new UUID if you're using UUIDs in fstab).

Last edited by Xyne (2009-01-12 20:37:03)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2009-01-12 21:09:44

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: Backup "/" partition for reinstall

OK, thanks for the reply,
I would have forgot about the UUID's and filesystem change in fstab. Hopefully all goes well smile


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#4 2009-01-12 21:41:15

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Backup "/" partition for reinstall

proxima_centauri wrote:

I would have forgot about the UUID's and filesystem change in fstab

don't forget /boot/grub/menu.lst too.

Offline

#5 2009-01-12 21:47:36

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: Backup "/" partition for reinstall

Yup, would have forgot that too, friggin' UUID's. thanks for the reminder.

BTW, Is there any advantages to using UUID over the regular /dev/sda1 format? Seems like it just makes things more complicated.


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#6 2009-01-12 21:54:16

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Backup "/" partition for reinstall

proxima_centauri wrote:

Is there any advantages to using UUID over the regular /dev/sda1 format? Seems like it just makes things more complicated.

i use UUID's because i have more than one sata drive, so depending on how udev loads them my / could be sda or sdb or even sdc.  using LABELs would give you the same advantage but also be human readable.

Offline

#7 2009-01-13 02:36:25

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Backup "/" partition for reinstall

proxima_centauri wrote:

Yup, would have forgot that too, friggin' UUID's. thanks for the reminder.

BTW, Is there any advantages to using UUID over the regular /dev/sda1 format? Seems like it just makes things more complicated.

I really prefer using BY-LABEL, since I have the power to maintan my labels, thru e2label.

Moving whatever to another partition ? Just swap the labels.

User Brain0 has made a very good Wiki entry about "Persistent block device naming":

http://wiki.archlinux.org/index.php/Per … ice_naming

Example in my menu.lst:

kernel /boot/vmlinuz26 root=/dev/disk/by-label/archabit ro vga=773

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#8 2009-01-16 06:45:27

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: Backup "/" partition for reinstall

I reformatted my partition with mke2fs -T ext4 /dev/sda2
then I tryed mounting it to cp my backup with mount -t ext4 /dev/sda2. It said it couldn't mount ext4.
Im not quite sure how to install on to ext4 either since when you select your mount points you can't choose ext4....
I think I'll just wait till the arch iso supports format and install with ext4 and do a complete reinstall. sad


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#9 2009-01-16 07:36:38

rscholer
Member
From: Gelsenkirchen, Germany
Registered: 2008-07-03
Posts: 48

Re: Backup "/" partition for reinstall

proxima_centauri wrote:

Im not quite sure how to install on to ext4 either since when you select your mount points you can't choose ext4....

Afaik you just need to mount your ext3 partition as ext4.

Offline

Board footer

Powered by FluxBB