VirtualTam's bookmarks
5 bookmarks found
Page 1 of 1
-
- https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
/tmp
- Directory for temporary files. Often not preserved between system reboots and may be severely size-restricted./var/tmp
- Temporary files to be preserved between reboots.
-
Here are the steps I used to migrate a CentOS 7 VM from (presumably?) an ESXi server, to a local VirtualBox environment.
The LVM volumes were not detected at boot, and after the boot timeout, the OS fell back to the Dracut emergency shell.
- get a CentOS minimal installation CD
- check the VM's resources and peripherals:
- ensure there are no floppy drives (!)
- setup CPU and RAM resources
- check virtual drives
- add an SCSI optical drive if needed
- optional: convert the virtual drive images from VMDK to VDI
- mount the CentOS installation disc
- boot on the installation disc:
- select "Troubleshooting", then "Rescue"
- let the rescue utility detect filesystems and mountpoints
$ chroot
to the detected environment- backup files:
/etc/fstab
/boot/grub/grub.cfg
- under /boot, backup the initrd and initramfs for the current configuration (these will be overwritten)
- compare the current
/etc/fstab
with the output of$ lsblk
and$ blkid
- if needed, manually edit /etc/fstab to use the appropriate block device UUIDs, identifiers and mountpoints
- regenerate GRUB configuration:
$ grub2-mkconfig -o /boot/grub2/grub.cfg
- if needed, reinstall GRUB:
$ grub-install /dev/sda
- rebuild initrd:
$ mkinitrd --force /boot/<initrd_image> <kernel_version>
- rebuild initramfs:
$ dracut --force <kernel_version>
- exit the chroot
- unmount the installation disc
- reboot
- optional but highly recommended: cross your fingers
- ...
- profit!
-
Windows - Locate & fix the MBR
2018-01-05 - https://superuser.com/questions/510485/how-to-tell-which-physical-disks-have-bootable-mbr
- https://neosmart.net/wiki/fix-mbr/
- https://neosmart.net/wiki/reboot-and-select-proper-boot-device/
- https://askubuntu.com/questions/859685/how-to-delete-the-bootable-flag-of-a-partition
- https://superuser.com/questions/596919/how-to-set-boot-disk-flag-with-diskpart
-
Page 1 of 1