]> git.parisson.com Git - tools.git/commitdiff
fix flashback env
authoryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Tue, 7 Dec 2010 13:45:09 +0000 (13:45 +0000)
committeryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Tue, 7 Dec 2010 13:45:09 +0000 (13:45 +0000)
git-svn-id: http://svn.parisson.org/svn/tools/trunk@132 457c0346-1240-4656-8a5a-9edca8063506

telecaster/flashback_ghost.sh

index a207545a2be7b615da1d334923955d096a7a6c52..21ed7b9eee7ad1ff7f417a3f08345e6da20bb8fd 100644 (file)
@@ -1,31 +1,42 @@
 #!/bin/sh
 
+# Live Install ISO on USB Disk /dev/sdb BOOT
+# Ghost on USB Disk /dev/sdc
+# Destination SSD /dev/sda
+
 su
+
 if [ ! -d /mnt/root/ ]; then mkdir /mnt/root; fi
+if [ ! -d /mnt/ghost_root ]; then mkdir /mnt/ghost_root; fi
+if [ ! -d /mnt/ghost_home ]; then mkdir /mnt/ghost_home; 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
+# 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