2019-03 - Guidedog having smartd/sectors. Cloned a new disk to replace the current guidedog boot disk. Used GA-B75 motherboard in hilo (same as guidedog) and a new disk. Make a backup of bigdog (use this to restore since bigdog has a good disk): Bigdog is: /dev/sda1 40G 6.2G 32G 17% /r1 (old 6.3 x64 install) /dev/sda2 40G 7.8G 30G 21% / (boot disk, 6.6) /dev/sda3 40G 48M 38G 1% /r3 (empty) /dev/sda4 341G 3.9G 320G 2% /aux (empty, so old junk) Guidedog was similar /dev/sda2 was the boot disk. Both running CentOS6.6 2.6.32-504.12.2.el6.i68 1. make bigdog back in /irtf.backup: 190325.root.zdump And do rsync_etc.sh on bigdog, guidedog 2. Using tdtest IP in hilo. On tdtest, boot from DVD (CentOS 6.9 i386) into rescue mode. NOTE: DVD boot doesn't alway work, but USB works well. cntl+alt+f2 for shell (alt+cntl+f6 to return to GUI) dd if=/dev/zero of=/dev/sda bs=4096 count=4096 # to wipe an old disk use fdisk to create the partitions: /sda1 40GB /sda2 40GB /sda3 40GB /sda4 remainder Format the partitions mkfs.ext4 -v -m 2 /dev/sda1 mkfs.ext4 -v -m 2 /dev/sda2 mkfs.ext4 -v -m 2 /dev/sda3 mkfs.ext4 -v -m 1 /dev/sda4 3. Restore a backup to /dev/sda2 mount hnas1:/irtf.backup /irtf.backup # access denied by server! # so I sftp 190325.root.zdump to /aux/bigdog/ (on /dev/sda4). mount /dev/sda2 /r2 cd /r2 restore -rf /aux/bigdog/190325.root.zdump 4. change configure to tdtest /etc/hosts /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 (query current ifcig-eth0 for info). /etc/fstab /boot/grub/menu.lst - replace uuid with /dev/sdaX 5. reinstall grub # grub grub> root (hd0,1) <- sda2 is hd0,1 grub> find /boot/grub/stage1 grub> setup (hd0) grub> quit 6. after booting into harddisk: copy over stuff from /irtf.backup/guidedog to /aux/guidedog/ copy over the guidedog ifcfg-eth0 & ifcfg-eth0:1 for the summit. switch network configuration to guidedog before shutting down disk: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1