メモです。あと途中で説明諦めてるし、最初からやり直すとかでてくるので参考にしないで下さい。 いつかきっと奇麗にします。その時つくるためのメモのつもりです。
fdisk /dev/sda http://www.gentoo.org/doc/ja/gentoo-x86-install.xml livecd ~ # net-setup enp0s8 2 mynetwork is wired 2 Specify an IP address manually IP address 192.168.56.100 Broadcast address 192.168.56.255 Gateway 192.168.56.1 DNS server(ホストオンリーアダプタの設定なので特に必要ない?) 192.168.56.1 ここでちょっと止まって/user/sbin/net-setup::Unknown hostってでる DNS serverないよっていうエラーっぽい ここでcontrol + cで止める ifconfigで見てみるとipがenp0s8に振られている livecd ~ # ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::26ba:b394:22e7:1cb0 prefixlen 64 scopeid 0x20<link> inet6 fe80::a00:27ff:fea3:e245 prefixlen 64 scopeid 0x20<link> ether 08:00:27:a3:e2:45 txqueuelen 1000 (Ethernet) RX packets 22 bytes 3650 (3.5 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 105 bytes 8040 (7.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.56.100 netmask 255.255.255.0 broadcast 192.168.56.255 inet6 fe80::3fb2:90d4:ecd4:4b1f prefixlen 64 scopeid 0x20<link> inet6 fe80::a00:27ff:fee7:6ee0 prefixlen 64 scopeid 0x20<link> ether 08:00:27:e7:6e:e0 txqueuelen 1000 (Ethernet) RX packets 468 bytes 51306 (50.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 302 bytes 35250 (34.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 47 bytes 950 (950.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 47 bytes 950 (950.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 livecd ~ # passwd New password: Retype new password: passwd: password updated successfully livecd ~ # /etc/init.d/sshd start ssh-keygen: generating new host keys : RSA1 RSA DSA ED25519 * Starting sshd ... これでホストPC(mac)からrootでsshできるようになる パーティション切り livecd ~ # fdisk /dev/sda Welcome to fdisk (util-linux 2.24.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x9366d829. Command (m for help): p Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x9366d829 Command (m for help): pで確認できる。 Command (m for help): d Partition number (1-4): 1 パーティション削除が予定されました。ただ予定されただけ削除はされていません。 もし操作を間違ってしまい、変更を取り消したいときは、すぐにqと入力してエンターキーを押してください。 nで新しいパーティションを作成し、pでプライマリパーティションを指定してください。 さらに1と入力して1番目のプライマリパーティションを作成します。 先頭のシリンダ番号を聞かれたら、そのままエンターキーを押します。 最終のシリンダ番号を聞かれたら、+32Mと入力し、32MBのパーティションを作成します。 livecd ~ # fdisk /dev/sda Welcome to fdisk (util-linux 2.24.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xf7666987. Command (m for help): p Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf7666987 Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-16777215, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-16777215, default 16777215): +32M Created a new partition 1 of type 'Linux' and of size 32 MiB. Command (m for help): 確認するとできているのが分かる。 Command (m for help): p Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf7666987 Device Boot Start End Blocks Id System /dev/sda1 2048 67583 32768 83 Linux Command (m for help): 次にスワップパーティションを作成します。 nで新しいパーティションを作成し、pでプライマリパーティションを指定してください。 さらに2と入力して2番目のプライマリパーティションを作成します。 この場合は/dev/hda2となります。 先頭のシリンダ番号を聞かれたら、そのままエンターキーを押します。 最終のシリンダ番号を聞かれたら、+512Mと入力し、512MBのパーティションを作成します。 さらに、パーティションタイプを設定するためにtと入力し、 今作ったばかりの2番目のパーティションの2と入力し、 "Linux Swap"パーティションタイプの82を入力してください。 その後、pでパーティションテーブルを見ると次のようになるでしょう。 Command (m for help): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): p Partition number (2-4, default 2): 2 First sector (67584-16777215, default 67584): Last sector, +sectors or +size{K,M,G,T,P} (67584-16777215, default 16777215): +512M Created a new partition 2 of type 'Linux' and of size 512 MiB. Command (m for help): t Partition number (1,2, default 2): 2 Hex code (type L to list all codes): L (ここでLと入力することで一覧を確認できる) 0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris 1 FAT12 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT- 2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT- 3 XENIX usr 3c PartitionMagic 84 OS/2 hidden C: c6 DRDOS/sec (FAT- 4 FAT16 <32M 40 Venix 80286 85 Linux extended c7 Syrinx 5 Extended 41 PPC PReP Boot 86 NTFS volume set da Non-FS data 6 FAT16 42 SFS 87 NTFS volume set db CP/M / CTOS / . 7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux plaintext de Dell Utility 8 AIX 4e QNX4.x 2nd part 8e Linux LVM df BootIt 9 AIX bootable 4f QNX4.x 3rd part 93 Amoeba e1 DOS access a OS/2 Boot Manag 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O b W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor c W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad hi eb BeOS fs e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD ee GPT f W95 Ext'd (LBA) 54 OnTrackDM6 a6 OpenBSD ef EFI (FAT-12/16/ 10 OPUS 55 EZ-Drive a7 NeXTSTEP f0 Linux/PA-RISC b 11 Hidden FAT12 56 Golden Bow a8 Darwin UFS f1 SpeedStor 12 Compaq diagnost 5c Priam Edisk a9 NetBSD f4 SpeedStor 14 Hidden FAT16 <3 61 SpeedStor ab Darwin boot f2 DOS secondary 16 Hidden FAT16 63 GNU HURD or Sys af HFS / HFS+ fb VMware VMFS 17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE 18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto 1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep 1c Hidden W95 FAT3 75 PC/IX be Solaris boot ff BBT 1e Hidden W95 FAT1 80 Old Minix Hex code (type L to list all codes): 82 Changed type of partition 'Linux' to 'Linux swap / Solaris'. Command (m for help): p Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf7666987 Device Boot Start End Blocks Id System /dev/sda1 2048 67583 32768 83 Linux /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris Command (m for help): 最後にルートパーティションを作成します。 nで新しいパーティションを作成し、pでプライマリパーティションを指定してください。 さらに3と入力して3番目のプライマリパーティションを作成します。 この場合は/dev/hda3となります。 先頭のシリンダ番号を聞かれたら、そのままエンターキーを押します。 最終のシリンダ番号を聞かれたら、そのままエンターキーを押すことでディスクの最後を指定します。 Command (m for help): n Partition type: p primary (2 primary, 0 extended, 2 free) e extended Select (default p): p Partition number (3,4, default 3): 3 First sector (1116160-16777215, default 1116160): Last sector, +sectors or +size{K,M,G,T,P} (1116160-16777215, default 16777215): Created a new partition 3 of type 'Linux' and of size 7.5 GiB. Command (m for help): p Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf7666987 Device Boot Start End Blocks Id System /dev/sda1 2048 67583 32768 83 Linux /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris /dev/sda3 1116160 16777215 7830528 83 Linux Command (m for help): 最後に、ブートパーティションに"ブート可能"フラグを設定し、これまで設定してきたパーティションテーブルをディスクに書きこみます。 /dev/hda1を"ブート可能"にするには、aと入力した後、ルートパーティションのパーティション番号1を入力します。 ここでpでパーティションテーブルを確認すると、/dev/hda1パーティションの"Boot"フィールドに*がついていることがわかるでしょう。 Command (m for help): a Partition number (1-3, default 3): 1 The bootable flag on partition 1 is enabled now. Command (m for help): p Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf7666987 Device Boot Start End Blocks Id System /dev/sda1 * 2048 67583 32768 83 Linux /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris /dev/sda3 1116160 16777215 7830528 83 Linux Command (m for help): デフォルトは3なんだ… さて、いよいよディスクにパーティションテーブルを書き込みます。 そのためには、wと入力し、エンターキーを押します。 これで、Gentoo Linuxをインストールするための正しいパーティション設定ができました。 Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. livecd ~ # パーティションの初期化(参考例) ブートパーティションの/dev/hda1はext2を選択しました。 堅牢なファイルシステムであるとともに、メジャーなブートローダがサポートしているからです。 スワップパーティションの/dev/hda2を初期化するにはmkswapを使います。 これは明白ですね。 そして、メインのルートパーティションである/dev/hda3にはReiserFSを選びました。 頑丈なファイルシステムであり、素晴らしいパフォーマンスをもたらします。 それではパーティションを初期化しましょう。 livecd ~ # mke2fs /dev/sda1 mke2fs 1.42.10 (18-May-2014) Creating filesystem with 32768 1k blocks and 8192 inodes Filesystem UUID: 58fcaba8-7f55-407a-ac9b-4acd645d5f77 Superblock backups stored on blocks: 8193, 24577 Allocating group tables: done Writing inode tables: done Writing superblocks and filesystem accounting information: done livecd ~ # mkswap /dev/sda2 Setting up swapspace version 1, size = 524284 KiB no label, UUID=f1debb34-e753-46b7-a429-03ac9f1a6816 livecd ~ # mkreiserfs /dev/sda3 mkreiserfs 3.6.24 Guessing about desired format.. Kernel 3.16.5-gentoo is running. Format 3.6 with standard journal Count of blocks on the device: 1957632 Number of blocks consumed by mkreiserfs formatting process: 8271 Blocksize: 4096 Hash function used to sort names: "r5" Journal Size 8193 blocks (first block 18) Journal Max transaction length 1024 inode generation number: 0 UUID: b970a154-967c-483e-b632-c9c8db6aeb31 ATTENTION: YOU SHOULD REBOOT AFTER FDISK! ALL DATA WILL BE LOST ON '/dev/sda3'! Continue (y/n):y Initializing journal - 0%....20%....40%....60%....80%....100% Syncing..ok ReiserFS is successfully created on /dev/sda3. 別サイトには書いてあった livecd ~ # swapon /dev/sda2 も叩く。 確認する。 livecd ~ # swapon -s Filename Type Size Used Priority /dev/sda2 partition 524284 0 -1 マウント livecd ~ # mount /dev/sda3 /mnt/gentoo livecd ~ # mkdir /mnt/gentoo/boot livecd ~ # mount /dev/sda1 /mnt/gentoo/boot Gentooインストールファイルをインストールする livecd ~ # cd /mnt/gentoo linksコマンドで書いてあるがわかりにくいため下記からwgetで取ってくる http://ftp.iij.ad.jp/pub/linux/gentoo/ stage3-i686-20141209.tar.bz2 と portage-latest.tar.bz2 url的には下記2つ http://ftp.iij.ad.jp/pub/linux/gentoo/releases/x86/current-iso/stage3-i686-20141209.tar.bz2 http://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.bz2 livecd gentoo # wget http://ftp.iij.ad.jp/pub/linux/gentoo/releases/x86/current-iso/stage3-i686-20141209.tar.bz2 --2015-01-08 06:43:38-- http://ftp.iij.ad.jp/pub/linux/gentoo/releases/x86/current-iso/stage3-i686-20141209.tar.bz2 Resolving ftp.iij.ad.jp... 202.232.140.170, 2001:240:bb8f:200::1:170 Connecting to ftp.iij.ad.jp|202.232.140.170|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 195643340 (187M) [application/x-bzip2] Saving to: 'stage3-i686-20141209.tar.bz2' stage3-i686-20141209.tar.bz2 100%[===============================================================================================>] 186.58M 1.76MB/s in 2m 14s 2015-01-08 06:46:00 (1.39 MB/s) - 'stage3-i686-20141209.tar.bz2' saved [195643340/195643340] livecd gentoo # wget http://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.bz2 --2015-01-08 06:46:43-- http://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.bz2 Resolving ftp.iij.ad.jp... 202.232.140.170, 2001:240:bb8f:200::1:170 Connecting to ftp.iij.ad.jp|202.232.140.170|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 71766860 (68M) [application/x-bzip2] Saving to: 'portage-latest.tar.bz2' portage-latest.tar.bz2 100%[===============================================================================================>] 68.44M 1.58MB/s in 49s s 2015-01-08 06:47:41 (1.39 MB/s) - 'portage-latest.tar.bz2' saved [71766860/71766860] ずらずらでます livecd gentoo # tar xvjf stage3-i686-20141209.tar.bz2 livecd gentoo # tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr Gentooベースシステムのインストール livecd gentoo # mirrorselect -i -o >> /mnt/gentoo/etc/make.conf * Using url: https://api.gentoo.org/mirrors/distfiles.xml * Downloading a list of mirrors... 青い画面に出てくる どこでもよさそうだけどjapanを選んだ(スペースでチェックはいります /mnt/gentoo/etc/make.conf に GENTOO_MIRRORS="rsync://ftp.iij.ad.jp/pub/linux/gentoo/" が書かれている。これでいいんだろうか? livecd ~ # cp -L /etc/resolv.conf /mnt/gentoo/etc/ chroot マウントする livecd ~ # mount -t proc none /mnt/gentoo/proc livecd ~ # mount -o bind /dev /mnt/gentoo/dev chrootする livecd ~ # chroot /mnt/gentoo /bin/bash livecd / # env-update !!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf' >>> Regenerating /etc/ld.so.cache... livecd / # source /etc/profile livecd / # export PS1="(chroot) $PS1" (chroot) livecd / # emerge (chroot) livecd / # emerge --sync !!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf' >>> Synchronization of repository 'gentoo' located in '/usr/portage'... >>> Starting rsync with rsync://176.28.50.119/gentoo-portage... >>> Checking server timestamp ... Welcome to quetzal.gentoo.org / rsync.gentoo.org Server Address : 176.28.50.119, 2a01:488:67:1000:b01c:3277:0:1 Contact Name : mirror-admin@gentoo.org Hardware : 4 x Intel(R) Xeon(R) CPU E5649 @ 2.53GHz, 16075MB RAM Sponsor : Host Europe, Cologne, Germany, EU Please note: common gentoo-netiquette says you should not sync more than once a day. Users who abuse the rsync.gentoo.org rotation may be added to a temporary ban list. MOTD autogenerated by update-rsync-motd on Thu Jul 24 06:32:56 UTC 2014 receiving incremental file list timestamp.chk Number of files: 1 Number of files transferred: 1 Total file size: 32 bytes Total transferred file size: 32 bytes Literal data: 32 bytes Matched data: 0 bytes File list size: 27 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 98 Total bytes received: 660 sent 98 bytes received 660 bytes 116.62 bytes/sec total size is 32 speedup is 0.04 Welcome to quetzal.gentoo.org / rsync.gentoo.org Server Address : 176.28.50.119, 2a01:488:67:1000:b01c:3277:0:1 Contact Name : mirror-admin@gentoo.org Hardware : 4 x Intel(R) Xeon(R) CPU E5649 @ 2.53GHz, 16075MB RAM Sponsor : Host Europe, Cologne, Germany, EU Please note: common gentoo-netiquette says you should not sync more than once a day. Users who abuse the rsync.gentoo.org rotation may be added to a temporary ban list. MOTD autogenerated by update-rsync-motd on Thu Jul 24 06:32:56 UTC 2014 receiving incremental file list app-emacs/slime/ChangeLog app-emacs/slime/Manifest app-emacs/slime/slime-2.12.ebuild --略-- metadata/md5-cache/media-plugins/gimp-gmic-1.6.0.3 metadata/news/timestamp.chk profiles/use.local.desc Number of files: 180946 Number of files transferred: 37 Total file size: 333.35M bytes Total transferred file size: 760.64K bytes Literal data: 760.64K bytes Matched data: 0 bytes File list size: 4.29M File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 27.07K Total bytes received: 5.16M sent 27.07K bytes received 5.16M bytes 53.24K bytes/sec total size is 333.35M speedup is 64.22 !!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf' !!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf' Performing Global Updates: (Could take a couple of minutes if you have a lot of binary packages.) .='update pass' *='binary update' #='/var/db update' @='/var/db move' s='/var/db SLOT move' %='binary move' S='binary SLOT move' p='update /etc/portage/package.*' /usr/portage/profiles/updates/4Q-2014............. !!! Found 2 make.conf files, using both '/etc/make.conf' and '/etc/portage/make.conf' * An update to portage is available. It is _highly_ recommended * that you update portage now, before any other packages are updated. * To update portage, run 'emerge --oneshot portage' now. * IMPORTANT: 8 news items need reading for repository 'gentoo'. * Use eselect news to read news items. やっぱりさっきのはだめだったっぽい 戻る (chroot) livecd / # mirrorselect -i -o >> /mnt/gentoo/etc/make.conf bash: /mnt/gentoo/etc/make.conf: No such file or directory chroot のエラーをちゃんと見るべきだった 最初から作り直す fdisk /dev/sda mke2fs /dev/sda1 mkswap /dev/sda2 swapon /dev/sda2 mkreiserfs /dev/sda3 mount /dev/sda3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/sda1 /mnt/gentoo/boot cd /mnt/gentoo wget http://ftp.iij.ad.jp/pub/linux/gentoo/releases/x86/current-iso/stage3-i686-20141209.tar.bz2 wget http://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/portage-latest.tar.bz2 tar xvjf stage3-i686-20141209.tar.bz2 tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf cp -L /etc/resolv.conf /mnt/gentoo/etc/ mount -t proc proc /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev chroot /mnt/gentoo /bin/bash source /etc/profile export PS1="(chroot) $PS1" emerge-webrsync emerge --sync eselect news list eselect news read emerge vim echo "Asia/Tokyo" > /etc/timezone emerge --config sys-libs/timezone-data vi /etc/locale.gen en_US ISO-8859-1 en_US.UTF-8 UTF-8 ja_JP UTF-8 ja_JP.UTF-8 UTF-8 locale-gen eselect locale list コード表示 5.5: ロケールを設定 eselect locale set 9 #vi /etc/env.d/02locale 追記 #LC_COLLATE="C" #env-update && source /etc/profile && export PS1="(chroot) $PS1" emerge gentoo-sources ls -l /usr/src/linux cd /usr/src/linux make menuconfig make && make modules_install make install https://www.gentoo.org/doc/ja/handbook/handbook-x86.xml?part=1&chap=8 vi /etc/fstab /dev/sda1 /boot ext2 noauto,noatime 1 2 /dev/sda3 / ext3 noatime 0 1 /dev/sda2 none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 /dev/fd0 /mnt/floppy auto noauto 0 0 /etc/conf.d/hostname ホスト名変更できるっぽい emerge --noreplace netifrc vi /etc/conf.d/net (新しいファイル) config_enp0s3="10.0.2.15 netmask 255.255.255.0 brd 10.0.2.255" routes_enp0s3="default via 10.0.2.2" config_enp0s8="192.168.56.102 netmask 255.255.255.0 brd 192.168.56.255" routes_enp0s8="default via 10.0.2.2" cd /etc/init.d ln -s net.lo net.enp0s3 ln -s net.lo net.enp0s8 rc-update add net.enp0s3 default rc-update add net.enp0s8 default passwd システムツール emerge syslog-ng rc-update add syslog-ng default emerge cronie rc-update add cronie default emerge mlocate rc-update add sshd default ぶーとろーだ https://www.gentoo.org/doc/ja/handbook/handbook-x86.xml?part=1&chap=10 emerge sys-boot/grub grub2-install /dev/sda sda1ではない感じであってるんだろうか?sda1だとエラーだからいいのかな (chroot) livecd init.d # grub2-install /dev/sda1 Installing for i386-pc platform. grub2-install: warning: File system `ext2' doesn't support embedding. grub2-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. grub2-install: エラー: will not proceed with blocklists. grub2-mkconfig -o /boot/grub/grub.cfg (chroot) livecd init.d # cd /boot/ (chroot) livecd boot # ls System.map-3.17.7-gentoo config-3.17.7-gentoo grub lost+found vmlinuz-3.17.7-gentoo exit umount -l /mnt/gentoo/dev{/shm,/pts,} umount /mnt/gentoo{/boot,/sys,/proc,} これはいいのかな livecd gentoo # umount /mnt/gentoo{/boot,/sys,/proc,} umount: /mnt/gentoo/sys: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) umount: /mnt/gentoo: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).)
shutdownしてbootをhddにして起動する。
終わり