差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| tips:linux:arch:0-install [2025/09/01 05:56] – [ArchISO ブート] asaasa | tips:linux:arch:0-install [2025/09/02 19:35] (現在) – [ArchISO ブート] asaasa | ||
|---|---|---|---|
| 行 176: | 行 176: | ||
| archiso# df | archiso# df | ||
| ディスクの状況を確認する。 | ディスクの状況を確認する。 | ||
| - | </ | ||
| - | |||
| - | == 暗号化する:共通実施 == | ||
| - | <code bash> | ||
| - | archiso# cryptsetup -v --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random --verify-passphrase luksFormat /dev/sda2 | ||
| - | WARNING! | ||
| - | ======== | ||
| - | This will overwrite data on /dev/sda2 irrevocably. | ||
| - | |||
| - | Are you sure? (Type ' | ||
| - | ( *** YES と「大文字で」入力 *** ) | ||
| - | Enter passphrase for /dev/sda2: | ||
| - | Verify passphrase: | ||
| - | Key slot 0 created. | ||
| - | Command successful. | ||
| - | |||
| - | archiso# cryptsetup open --type luks /dev/sda2 cryptroot | ||
| - | cryptsetup open --type luks /dev/sda2 cryptroot | ||
| - | Enter passphrase for / | ||
| </ | </ | ||
| 行 308: | 行 289: | ||
| === ブートローダの登録 === | === ブートローダの登録 === | ||
| GRUB例。systemdのやり方もあるけど面倒なのでここでは省略。 | GRUB例。systemdのやり方もあるけど面倒なのでここでは省略。 | ||
| - | BIOS系 # grub-install --target=i386-pc --recheck /dev/sda | ||
| - | EFI 系 # grub-install --target=x86_64-efi --efi-directory=/ | ||
| - | 共通実施 | + | <code bash> |
| + | BIOS系 | ||
| + | chroot# grub-install | ||
| - | rEFInd の場合のみ | + | EFI 系 |
| - | rEFInd系 # pacman -S refind; refind-install | + | chroot# grub-install |
| + | 共通実施 | ||
| + | chroot# grub-mkconfig -o / | ||
| + | </ | ||
| + | |||
| + | rEFInd の場合のみ | ||
| + | <code bash> | ||
| + | rEFInd系 | ||
| + | chroot# pacman -S refind; refind-install | ||
| + | </ | ||
| === ユーザーを登録 === | === ユーザーを登録 === | ||