====== Use grml as a rescue system ====== ===== data/partition handling ===== ==== unsorted tools ==== * dd: convert and copy a file * ddrescue: copies data from one file or block device to another * partimage: Linux/UNIX utility to save partitions in a compressed image file * cfdisk: Partition a hard drive * nparted: Newt and GNU Parted based disk partition table manipulator * parted-bf: The GNU Parted disk partition resizing program, small version * testdisk: Partition scanner and disk recovery tool * gpart: Guess PC disk partition table, find lost partitions * autopsy:(frontend to the sleuth kit) finds deleted and existing data on alocated and unallocated space on virtually every filesystem. ==== ext2/ext3 ==== * e2fsprogs: ext2 file system utilities and libraries * e2tools: utilities for manipulating files in an ext2/ext3 filesystem * e2undel: Undelete utility for the ext2 file system * ext2resize: an ext2 filesystem resizer * recover: Undelete files on ext2 partitions ==== ReiserFS/Reiser4 ==== * reiser4progs: administration utilities for the Reiser4 filesystem * reiserfsprogs: User-level tools for ReiserFS filesystems ==== XFS ==== * xfsdump: Administrative utilities for the XFS filesystem * xfsprogs: Utilities for managing the XFS filesystem ==== JFS ==== * jfsutils: utilities for managing the JFS filesystem ==== NTFS ==== * ntfsprogs: tools for doing neat things in NTFS partitions from Linux * salvage-ntfs: free NTFS data recovery tools * scrounge-ntfs: data recovery program for NTFS file systems * ntfsresize: resize ntfs partitions * chntpw: list users (-l), reset password of a given user (-u), etc ===== Example Boot GRML Rescue System on HP Proliant Servers ===== __Preliminaries__ * Access to the server via ILO (ssh) * Access to a webserver (optional; for remote grml image) __Configure ILO VSP to COM1__ * Ssh to ilo * Power on server or reset server hpiLO-> power on # or hpiLO-> power reset * Start VSP hpiLO-> vsp * Press [ESC] [9] to start RBSU (Bios) rbsu> SET CONFIG Embedded Serial Port COM 2; IRQ3; IO: 2F8h-2FFh rbsu> SET CONFIG Virtual Serial Port COM 1; IRQ4; IO: 3F8h-3FFh rbsu> SET CONFIG BIOS Serial Console Port COM 1; IRQ4; IO: 3F8h-3FFh rbsu> SET IPL CD 1 rbsu> EXIT __Insert remote GRML CD image on webserver__ * Apache grml image webserver mkdir /tmp/iloimg cat > iloimg-httpd.conf < * ILO Settings hpiLO-> vm cdrom get hpiLO-> vm cdrom insert http://xxx.xxx.xxx.xxx:5555/grml_2009.05.iso hpiLO-> vm cdrom set boot_always hpiLO-> power warm * Or if the server has an cdrom drive, simply insert grml cd __Start GRML with serial console__ * GRML 2009.05: Just type "serial" at grml boot loader prompt * GRML 2009.10: Press [ESC] to show up grml boot loader prompt on vsp and than "serial" * GRML 2017.05 on a host with a "real" serial port * open grml.iso with a hex editor such as dhex on linux * search for the string "vesamenu bootsplash" to find the isolinux.cfg inside the image * remove the # in front of "serial 0 9600" * replace "vesamenu.cfg" with "console.cfg" * If you can't see a prompt on the serial console after booting, you might have attached too late. Hit [TAB] to redisplay the prompt.