--
MikeGore
Recovery Is Possible Linux rescue system (RIP)
- Home Page: http://www.tux.org/pub/people/kent-robotti/looplinux/rip/
- Note - it now appears that the RIP project is no longer being maintained - we will replace this with a cramfs based ram live boot image of Ubuntu shortly
- We have local copies of 13.7 on asimov
- Local resources:
- asimov:/images/rawiso/linux_utils/RIP - ISO images of RIP
- ASIMOV Vlan 420 PXE boot option
- NOTE: if you don't have network access to asimov the GUI will come up very slowly!
Booting
using GUI tools
When using gui tools (eg: Ghost or Avast), choose one of the "Boot to X!" options, eg: "Boot Linux system to X! (skip keymap prompt)"
Local modifications
* We created a tool to repackage RIP with extra tools found useful. These include:
Avast antivirus
Ghost
ubuntu-scripts
reg
-
- reg - a script to assist restoring registry settings from Windows restore points
- ) Mount the windows partitions - hint use fdisk -l to view the partitions
- Note: the registry files are located in \WINDOWS\system32\config
- ) cd "System Volume Information"
- ) cd _restore*
- ) look at the dates of the RPnn files where nn is a number
- ) example: we want to think things were ok on the dat listed by say RP2
- cd RP2
- make sure there is a snapshot directory otherwise pick another RP directory
- cd snapshot
- ) run the reg command: ./reg
- This will create a backup of the current WINDOWS\system32\config registry files
- It will copy/rename the restore point registry files to the WINDOWS\system32\config directory
RAID
MDADM
- ) References: http://ubuntuforums.org/showthread.php?t=408461
- ) Assemble a raid array: mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
-
-
- Note: the disks actually have the metadata required to know how they work together - hence not required on the mdadm command line.
- ) stop array: *mdadm --stop"
LVM LVM2
Original Credits from: http://linux-sxs.org/storage/fedora2ubuntu.html This works with Ubuntu and Fedora - tested with RIP 13.7
- Load the necessary module(s):
- Scan for LVM volumes, identify the group you want (ex: VolGroup00):
- vgscan
- Activate the volume:
- Find the logical volume with root in it (ex: vg_root ):
- Create a mount point for that volume:
- Mount it:
- mount /dev/VolGroup00/vg_root /mnt/root
Updating a new *RIP ISO or PXE image
-
- Location: /images/rawiso/linux_utils/RIP
- File: add_ghost
- On ASIMOV run as root the following commands:
- cd /images/rawiso/linux_utils/RIP
- ./add_ghost version [grub|grub2|syslinux|pxe| - or -
- ./add_ghost pxeall
- * version is just a number such as 13.4 the corresponds to the directory /images/rawiso/linux_utils/RIP/RIP13.4
- grub, grub2 or syslinux options rebuild an ISO image of RIP with the additions and the corresponding boot loader. The new ISO images have a -new added to their names in the original directory: Example: /images/rawiso/linux_utils/RIP/RIP13.4/RIPLinuX-13.4-new.iso
- pxe option rebuilds the PXE boot image on ASIMOV. It creates a PXE menu file /tftpboot/pxes/pxelinux.cfg/rip_menu this file is currently be included in the primary PXE boot menu for ASIMOV /tftpboot/pxes/pxelinux.cfg/default
- pxeall rebuilds ALL pxe images, creates a master rip_menu to include all of them automatically by ASIMOV
Making a USB KEY with ALL of the ASIMOV PXE boot environment
- USB version of PXE boot code
- PXEUsbKey documents how to put all of this on a USB key that you can boot
Example Recover of a Linux System
- ) Boot RIP CD - login in root no password
- ) View partitions on all disks - hint use fdisk.
- Example: fdisk -l /dev/sda
- ) Say we see that partition 5 in Linux - then mount /dev/sda5 /mnt/sda5
- ) Now you can access the files under /mnt/sda5 or Optional chroot /mnt/sda5 - then access the files relative to /
Recovery alternate method using mntpart
- ) Boot RIP CD - login in root no password
- ) View partitions on all disks - hint use fdisk.
- Example: fdisk -l /dev/sda
- ) Say we see that partition 5 in Linux - then mount /dev/sda5 /mnt/sda5
- ) ./mntpart /dev/sda5 - this will copy over the /dev/sda entries for the disk,chroot to it and mount sys,proc and devpts
Recovery repair GRUB2
- ) Boot RIP CD - login in root no password
- ) dhcpcd - start network
- ) View partitions on all disks - hint use fdisk.
- Example: fdisk -l /dev/sda
- ) Say we see that partition 5 in Linux - then mount /dev/sda5 /mnt/sda5
- ) ./mntpart /dev/sda5 - this will copy over the /dev/sda entries for the disk,chroot to it and mount sys,proc and devpts
- ) *./grub-fix
Reset Windows passwords
Modify Grub while booting to change the options such as the partition and drive beings used
- Boot System
- Hit Escape when you see Grub appear on the screen
- Cursor down to the kernal you want and press "e" - no quotes
- You can cursor right or left - use delete or insert - finish with hitting ENTER
Example changes:
/boot/vmlinuz-2.6.27-14-generic root=UUID=333e4b18-6a7b-41c5-9af7-06483a9848a3 ro quiet splash
/boot/vmlinuz-2.6.27-14-generic root=/dev/sda5 single
- Note: this will boot the kernel but will mount the root fs as /dev/sda5 in single user mode