]> git.parisson.com Git - yomguy-tools.git/commitdiff
add manual ghost
authoryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Tue, 7 Dec 2010 15:18:13 +0000 (15:18 +0000)
committeryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Tue, 7 Dec 2010 15:18:13 +0000 (15:18 +0000)
git-svn-id: http://svn.parisson.org/svn/tools/trunk@133 457c0346-1240-4656-8a5a-9edca8063506

telecaster/flashback_ghost.sh [deleted file]
telecaster/flashback_ghost_auto.sh [new file with mode: 0644]
telecaster/flashback_ghost_manual_reboot.sh [new file with mode: 0755]
telecaster/flashback_ghost_manual_sync.sh [new file with mode: 0755]

diff --git a/telecaster/flashback_ghost.sh b/telecaster/flashback_ghost.sh
deleted file mode 100644 (file)
index 21ed7b9..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/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
-
-umount /mnt/root/home 
-umount /mnt/root
-
-reboot
diff --git a/telecaster/flashback_ghost_auto.sh b/telecaster/flashback_ghost_auto.sh
new file mode 100644 (file)
index 0000000..aa1eadc
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# Live Install ISO on USB Disk /dev/sdb BOOT
+# Ghost on USB Disk /dev/sdc
+# Destination SSD /dev/sda
+
+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/sda3 /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
diff --git a/telecaster/flashback_ghost_manual_reboot.sh b/telecaster/flashback_ghost_manual_reboot.sh
new file mode 100755 (executable)
index 0000000..3491455
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Live Install ISO on USB Disk /dev/sdb BOOT
+# Ghost on USB Disk /dev/sdc
+# Destination SSD /dev/sda
+
+umount /mnt/root/proc
+umount /mnt/root/dev
+
+umount /mnt/root/home 
+umount /mnt/root
+
+reboot
diff --git a/telecaster/flashback_ghost_manual_sync.sh b/telecaster/flashback_ghost_manual_sync.sh
new file mode 100755 (executable)
index 0000000..93879bd
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# Live Install ISO on USB Disk /dev/sdb BOOT
+# Ghost on USB Disk /dev/sdc
+# Destination SSD /dev/sda
+
+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/sda3 /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
+