This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
recovery [2018/08/31 20:18] ss_wiki_admin created |
recovery [2019/09/16 16:09] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| <code bash> | <code bash> | ||
| rpm -qa | grep kernel | grep -v headers | grep -v tools | sed ’s/ | rpm -qa | grep kernel | grep -v headers | grep -v tools | sed ’s/ | ||
| + | </ | ||
| + | |||
| + | == rsync directories or partitions in backup or restore == | ||
| + | <code bash> | ||
| + | rsync -avP --numeric-ids --exclude='/ | ||
| + | </ | ||
| + | |||
| + | == generate grub2 efi config for installed kernels == | ||
| + | <code bash> | ||
| + | grub2-mkconfig -o / | ||
| + | </ | ||
| + | |||
| + | == device file mounts in recovery mode == | ||
| + | <code bash> | ||
| + | mount --bind /dev /mnt/dev | ||
| + | mount --bind /dev/pts / | ||
| + | mount --bind /proc /mnt/proc | ||
| + | mount --bind /sys /mnt/sys | ||
| </ | </ | ||