Last active
August 29, 2015 13:57
-
-
Save tobert/9755107 to your computer and use it in GitHub Desktop.
efiboot setup session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@sysresccd /]# ls /boot | |
EFI initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux | |
[root@sysresccd /]# mv /boot /boot.bak | |
[root@sysresccd /]# mkdir /boot | |
[root@sysresccd /]# mkfs.vfat -n EFI -F32 /dev/mapper/efiboot | |
mkfs.fat 3.0.26 (2014-03-07) | |
unable to get drive geometry, using default 255/63 | |
[root@sysresccd /]# mount /dev/mapper/efiboot /boot | |
[root@sysresccd /]# mount -t vfat | |
/dev/mapper/efiboot on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro) | |
[root@sysresccd /]# rsync -a /boot.bak/ /boot | |
[root@sysresccd /]# ls /boot | |
EFI initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux | |
[root@sysresccd /]# umount /boot | |
[root@sysresccd /]# mount /dev/sdd1 /boot | |
mount: /dev/sdd1 is already mounted or /boot busy | |
[root@sysresccd /]# dmsetup remove /dev/mapper/efiboot | |
[root@sysresccd /]# mount /dev/sdd1 /boot | |
[root@sysresccd /]# ls /boot | |
EFI initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux | |
[root@sysresccd /]# umount /boot | |
[root@sysresccd /]# mount /dev/sde1 /boot | |
[root@sysresccd /]# ls /boot | |
EFI initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux | |
[root@sysresccd /]# umount /boot | |
[root@sysresccd /]# bash /root/dmirror.sh | |
+ echo '0 4194304 mirror core 1 1024 2 /dev/disk/by-id/wwn-0x5000c50026c51411-part1 0 /dev/disk/by-id/wwn-0x5000c50026c5694e-part1 0 1 handle_errors' | |
+ dmsetup create efiboot | |
[root@sysresccd /]# mount /dev/mapper/efiboot /boot | |
[root@sysresccd /]# ls /boot | |
EFI initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux | |
[root@sysresccd /]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment