- Assume the disk contains the efi partition, say /dev/sda2, and windows partition, say /dev/sda3
- Use Ubuntu live USB to boot up the computer
ATTENTION: Boot the usb drive (e.g, My 64GB Jetflash)
MUST! MUST! select the
UEFI: JetFlashTranscend 64GB 1100, Partition 3
to boot
Otherwise, the efi will not work!
(Chiao, 2020-4-25) - Using vmware to install ubuntu for uefi bios, make sure this
- Resize windows partition /dev/sda3:
- get 100GB space for /dev/sda4, format sda4 as ext4, mount /dev/sda4 to /mnt/4,
- get 1GB for /dev/sda5, format sda5 as Linux SWAP
- Untar (or rsync) the required ubuntu system completely to /mnt/4
- cd /mnt/4
sudo mount -B /dev dev
sudo mount -B /dev/pts dev/pts
sudo mount -B /proc proc
sudo mount -B /sys sys
sudo mount -B /run runcd /sudo chroot /mnt/4vim /etc/hosts, add this line:140.110.240.80 tw.archive.ubuntu.commount /dev/sda2 /boot/efiapt purge grub-pcapt updateapt install grub-efi(Yes! Do not use aptitude to install grub-efi*. )
update-grub
grub-install - If grub-install failed, try purge all grub2:
apt purge grub2*
then install again:
apt install grub-efi - Also, try this:
grub-install --target=x86_64-efi --efi-directory=/boot/efi - Edit /etc/fstab for root, swap, and /boot/efi
Use blkid for efi:/dev/sda2, root:/dev/sda5, swap:/dev/sda6
Then replace the blkids' in /etc/fstab - umount /boot/efi
- exit
- sudo umount /mnt/4/dev/pts
sudo umount /mnt/4/dev
sudo umount /mnt/4/proc
sudo umount /mnt/4/sys
sudo umount /mnt/4/run - (20210623)In case of bios not being able to change boot order for ubuntu, try this inside Windows cmd shell (administrator mode):
Enter into asus uefi bios setting. The 'ubuntu' is still not at the first order. However, when at startup, the ubuntu will show up instead of Windows. Damn good! Oh My!bcdedit /set {bootmgr} path \EFI\ubuntu\
grubx64.efi
(cf: https://askubuntu.com/questions/485261/change-boot-order-using-efibootmgr) - (20220504) If the error message:
mount: /var/lib/grub/esp: special device /dev/disk/by-id/nvme-ADATA_SX8200PNP_2J5220164962-part1 does not exist.
comes out at step "apt purge grub-pc", then
sudo ln -s /dev/disk/by-id/ata-VMware_Virtual_SATA_CDRW_Drive_01000000000000000001 /dev/disk/by-id/nvme-ADATA_SX8200PNP_2J5220164962-part1 - However, after following the above steps, there may not be back to the exact same PC as before because no grub boot menu is shown when reboot. As a last resort, it needs to create a new partition and install a new ubuntu on it. I think the installation process will safely and totally find the windows partition and list in the grub menu. (20221216)
- YES! boot order in bios must be changed for ubuntu being the first one.
- (20240903) In case of using static IP in old server, make sure to change it to dhcp after reboot the clone server.
- Under vmware, two important things,
Select Ubuntu 64bit for guest OS.
Change to UEFI in Options->Advanced
Before starting to create Ubuntu guest OS (2024-10-12)
2021年1月13日 星期三
Add ubuntu to preinstalled windows 10 in efi gpt disk
訂閱:
張貼留言 (Atom)
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://forums.raspberrypi.com/viewtopic.php?t=278033 For linux: First run the command: route -n It will show the metrics of the i...
-
cf: https://askubuntu.com/questions/1276111/error-upgrading-grub-efi-amd64-signed-special-device-old-ssd-does-not-exist sudo mv /var/cache...
網誌存檔
-
▼
2021
(59)
-
▼
1月
(17)
- LyX + Mathematica souce code for math
- LyX + Mathematica on Raspberry rasbian
- Clone raspberry raspian
- Find my MAC address
- Backspace key cannot keep pressing keyboard
- ThinkCentre MAC address
- kpci7 MAC address
- Warning message from ' initramfs-tools configurati...
- Empty Ubuntu Unity Dash no application icons
- warning: 不可能內嵌。GRUB 在本設置中僅能藉由區塊清單來安裝
- Remove duplicated octave icon in unity dash
- Update drupal 9
- Ubuntu cannot boot hang stuck at UBUNTU logo
- Add ubuntu to preinstalled windows 10 in efi gpt ...
- Remove pdf link border
- Edit firefox bookmark
- drupal custom module (Incompatible modules )
-
▼
1月
(17)
沒有留言:
張貼留言