From: yomguy Date: Tue, 7 Dec 2010 13:38:49 +0000 (+0000) Subject: add back flashing script for TeleCaster ghosting X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c010c74199507decd15c02d2e25bce3905be4621;p=tools.git add back flashing script for TeleCaster ghosting git-svn-id: http://svn.parisson.org/svn/tools/trunk@131 457c0346-1240-4656-8a5a-9edca8063506 --- diff --git a/telecaster/flashback_ghost.sh b/telecaster/flashback_ghost.sh new file mode 100644 index 0000000..a207545 --- /dev/null +++ b/telecaster/flashback_ghost.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +su +if [ ! -d /mnt/root/ ]; then mkdir /mnt/root; fi +mount /dev/sda1 /mnt/root +mount /dev/sda2 /mnt/root/home +mount /dev/sdc1 /mnt/ghost_root +mount /dev/sdc2 /mnt/ghost_home +rsync -a /mnt/ghost_root/ /mnt/root/ +rsync -a /mnt/ghost_home/ /mnt/root/home/ +sync +umount /mnt/ghost_root/ +umount /mnt/ghost_home/ + +# chroot MANUALLY only to CHANGE boot / fstab options +# mount -o bind /dev /mnt/root/dev +# mount -t proc none /mnt/root/proc +# ls /dev/disk/by-uuid +# chroot /mnt/root/ +# nano /etc/fstab +# #(edit to get right UUID, save) +# #In the chroot : +# # grub install /dev/sda +# # update-grub +# # exit +# # umount /mnt/root/proc +# # umount /mnt/root/dev + +umount /mnt/root/home +umount /mnt/root +reboot