You are not logged in.
I have a sufficiently large external hard drive to hold all the data on my Arch installation.
I would like to convert all of my partitions to ext4, from jfs and reiserfs so that I can take advantage of e4rat.
What is the most simple way to backup my data, reformat the partition, and then dump the data back in without breaking all my stuff?
Offline
#!/bin/bash/
# Takes an argument as the location of your backup drive's mount folder.
# Run as root.
# Eg. backup.sh /mnt/backup_drive/
pacman -Qet > $1/pacman_programs_list.txt
cp -R /etc $1
cp -R /home $1
cp -R /root $1
Then reinstall Arch.
After the install run:
#!/bin/bash/
# Run from your backup drive as root.
./pacman_programs_list.txt | awk '{print $1}' | pacman -Syyu
cp -R ./etc /etc
cp -R ./home /home
cp -R ./root /root
Please understand I didn't test these and you REALLY should test them and make sure they work BEFORE you reinstall. They are simply a guide to give you an idea of how I would change filesystems. Obviously there is a better way, I just don't know it.
Offline
I personally would use fsarchiver from a live CD (system rescue CD always has worked great for me). This way there's no reinstall -- and just one reboot. Just
1. Boot live CD
2. Save all your filesystems with fsarchiver to your external hard drive
3. Reformat your partitions as desired
4. Extract the fsarchiver archives back into your new filesystems
5. Edit grub/syslinux UUID's if necessary
6. I can't remember if you have to chroot and redo mkinitcpio....but it couldn't hurt!
Good luck!
Scott
Offline
#!/bin/bash/ # Takes an argument as the location of your backup drive's mount folder. # Run as root. # Eg. backup.sh /mnt/backup_drive/ pacman -Qet > $1/pacman_programs_list.txt cp -R /etc $1 cp -R /home $1 cp -R /root $1
Then reinstall Arch.
After the install run:
#!/bin/bash/ # Run from your backup drive as root. ./pacman_programs_list.txt | awk '{print $1}' | pacman -Syyu cp -R ./etc /etc cp -R ./home /home cp -R ./root /root
Please understand I didn't test these and you REALLY should test them and make sure they work BEFORE you reinstall. They are simply a guide to give you an idea of how I would change filesystems. Obviously there is a better way, I just don't know it.
Don't ever use cp to backup something!!! it messes with file permissions and it can wreack havoc on your install. Read this here http://ubuntuforums.org/showthread.php?t=35087
If it ain't broke, broke it then fix it.
Offline
Is 'cp -a' considered harmful too?
Offline