日記/2024-05-20 の変更点


#author("2024-05-22T05:25:41+00:00","michiro","michiro")
#author("2024-05-27T02:08:47+00:00","michiro","michiro")
**UEFI システムでのsystemback リストア [#u4d68ccf]
https://gist.github.com/LeandroFranciscato/81ee3de8a7be9c1c7cf602f4fc0ec3ba

ちょっと面倒くさい

Note以下の部分を転記させていただきます。

Note

if you are using some UEFI bios/boot option, you might have to install the system without /boot/efi and do it after the installation using the Live optioon of Systemback.

To install grub on a EFI boot partition, do the follow:

remember to replace XXX and XX with your /dev/sd correct partition

Use Gparted to tag the /boot/efi partition with boot option

The EFI partition must be FAT32

sudo mount /dev/sdXXX /mnt

sudo mount /dev/sdXX /mnt/boot/efi

for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

sudo chroot /mnt

grub-install /dev/sdX

update-grub  

実際にインストールしてみた。

lenovo X1carbon windows10

[[古いバージョンのMacrium Reflect Free:https://macrium-reflect-free.jp.uptodown.com/windows/versions]]を使って、

(新しいバージョンは試用期間30日の制限あり)

256Gから500GのSDDに換装。

BIOS設定でsecure bootをdisabledにしてから、

Ubuntu24.04インストールUSBメモリーで型通りインストールすると


windows10、Ubuntuのダブルブートシステム完成。

systemnbackで作成したUSBメモリーでインストール。

Ubuntu24.04のpartitionを削除して適当な大きさの新規partitionを作成してここにインストール。

grub 2設定は無視してインストール。

インストール終了したらUSBメモリーをさしたまま再起動。

Boot live systemで起動。

端末(termina)lで
 $ sudo mount /dev/nvme0n1p5 /mnt

 $ sudo mount /dev/nvme0n1p1 /mnt/boot/efi

 $ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

 $ sudo chroot /mnt

 # grub-install /dev/nvme0n1

 # update-grub  
windows10とUbuntuのダブルブートマシン完成。

UEFIでubuntuだけをインストールする方法

sysembackで作成したUSBメモリーで、

Boot live systemを選択起動。

ディスクを起動

300M弱のFATpartitionを新規作成。

reboot

Boot system installerで起動して前述の通りインストールできる。


[[日記]]