GRUBïŒGRand Unified BootloaderïŒã¯ããªãã¬ãŒãã£ã³ã°ã·ã¹ãã çšã®ããŒãããŒããŒã§ãã
GRUBã¯ãäºææ§ã®ãããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãããŒãã§ããŸãã ãã®äžã«ã¯ãLinuxãFreeBSDãSolarisããã®ä»å€æ°ããããŸãã ããã«ãGRUBã¯å¥ã®ããŒãããŒããŒã«å¶åŸ¡ã移ãããšãã§ããŸããããã«ãããWindowsïŒNTLDRããŒãããŒããŒãä»ããŠïŒãMS-DOSãOS / 2ãããã³ä»ã®ã·ã¹ãã ãèµ·åã§ããŸãã
ããã§ãçè«ãå°ãç解ããŸããïŒããã§ååã ãšæããŸãïŒã次ã«ãåãã³ã³ãã¥ãŒã¿ãŒã«ãã¥ã¢ã«ããŒãWindowsãšLinuxãã€ã³ã¹ããŒã«ããå Žåã®èœãšãç©ŽãèŠãŠã¿ãŸãããã
å®éšã¯ã次ã®ç¹æ§ãæã€ã¯ãŒã¯ã¹ããŒã·ã§ã³ã§å®è¡ãããŸããã
ããŒã¹ããŒãæ å ±
- ã¡ãŒã«ãŒïŒAcer
- 補ååïŒAspire XC600
èšæ¶è£ 眮
- ãµã€ãºïŒ4096 MB
- ã¿ã€ãïŒDDR3
- é床ïŒ1333 MHz
- ã¡ãŒã«ãŒïŒãã³ã°ã¹ãã³
- ã©ã³ã¯ïŒ2
HDD
- 補åïŒST500DM002-1BD14
- ãã³ããŒïŒSeagate
- ç©çIDïŒ0.0.0
- ãã¹æ å ±ïŒscsi @ 0ïŒ0.0.0
- è«çåïŒ/ dev / sda
- ãµã€ãºïŒ465GiBïŒ500GBïŒ
- æ©èœïŒgpt-1.00ããŒãã£ã·ã§ã³ããŒãã£ã·ã§ã³ïŒgpt
Debian 8.6 JessieãWindows 10ã«ã€ã³ã¹ããŒã«ããéã«åé¡ãèŠã€ãããªãã£ãããšã蚌æãããŠããŸãã Debianã¯èµ·åæã«æ£ããç»é²ãããGRUBã¯ãšã©ãŒãªãã§èµ·åãã2ã€ã®OSãæ£åžžã«åäœããŸãã
ããããå®è·µã瀺ããŠããããã«ãããã¯ãã¹ãŠã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ã§çºçããããã§ã¯ãããŸããã Debianã®ä»£ããã«Ubuntu 16.04.1ãã€ã³ã¹ããŒã«ãããšãæåã®èœãšãç©Žãåãã¯ãŒã¯ã¹ããŒã·ã§ã³ã§çºçããŸãã-GRUBãèµ·åãããWindows 10ãèªåçã«èµ·åããŸããã
3ã4é±éåŸã«åé¡ã®è§£æ±ºçãèŠã€ãããŸããïŒãã®åé¡ã解決ããã®ã«ã©ãã ãã®æéãè²»ãããããèæ ®ããã®ã«ããããããŠããŸããïŒã äºæ³å€ã®çµæã§ããããåæã«ã·ã¹ãã å šäœãæ©èœããŸããã ãããã£ãŠãåãåé¡ãçºçããå Žåã¯ã次ã®æé ã圹ç«ã¡ãæéãå€§å¹ ã«ç¯çŽã§ããŸãã
éèŠïŒ æ瀺ã®å®è¡ãéå§ããåã«ãLinux Mintãã£ã¹ããªãã¥ãŒã·ã§ã³ã§LiveCDãæºåããå¿ èŠããããŸã-ãã¹ãŠã®æäœãå®è¡ããŸãïŒãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãéžæããã®ã¯ãMidnight Commanderãã€ã³ã¹ããŒã«ããããããã§ããLiveCDã§Ubuntuãå®è¡ããã®ã¯é£ããã®ã§ãæäœã®ããã®ã¹ããŒã¹ïŒã ãŸãã update-grubã³ã³ãœãŒã«ã®äžããã®ã³ãã³ãã¯ãGRUBãèµ·åããå Žåã®ããã«èšèšãããŠããŸãããLinux以å€ã®ä»ã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã¯è¡šç€ºãããªãããã圹ã«ç«ã¡ãŸããã ãŸããããããªå€æŽã§ããã¡ã€ã«/ãã£ã¬ã¯ããªã®ããã¯ã¢ããã³ããŒãäœæããããšããå§ãããŸãã
- rootæš©éã䜿çšããŠãã¿ãŒããã«ãã/ mntãã©ã«ããŒã«EFIããŒãã£ã·ã§ã³ãããŠã³ãããŸãã ç§ã®å Žåã mount / dev / sda2 / mntã³ãã³ãã§ããã
- sudo -sã³ãã³ããå
¥åããåŸç¶ã®æäœã®ããã«ãã¹ã¯ãŒãïŒããã©ã«ãã§ã¯ç©ºã§ãïŒã確èªããŸãïŒãããè¡ããªãããšããå§ãããŸããã sudoãšã³ãã³ããå®è¡ããŸã-ãã®æèŠãæ¯æããŸãããæ瀺ã¯ãããç解ããŠããçµéšè±å¯ãªLinuxãŠãŒã¶ãŒåãã§ãããªãèªèº«ã®å±éºãšãªã¹ã¯ã§ãã¹ãŠãè¡ãïŒã
- mcã³ãã³ãã§Midnight Commanderãèµ·åããŸãã
- ãã¡ã€ã«ã·ã¹ãã ã§æ¬¡ã®ãã£ã¬ã¯ããªãèŠã€ããŸãã/ mntãã©ã«ããŒã§EFIã
- Microsoftãã£ã¬ã¯ããªã®ååããMicrosoft2ãªã©ã®å¥ã®ååã«å€æŽããŸãã
- Microsoftãšããååã®æ°ãããã£ã¬ã¯ããªãäœæããŸãã
- æ°ããäœæãããMicrosoftãã£ã¬ã¯ããªã«ç§»åãããã®ãã©ã«ããŒéå±€å
ã«ãå€ãMicrosoftïŒååãå€æŽããããã®ïŒãšåæ§ã®éšåçã«äœæããŸãã ç§ã®å Žåããã®ãã©ã«ãæ§é ã¯/ boot /ã§ã次ã«å€æ°ã®ãã©ã«ããšãã®æšªã«bootmgfw.efiãã¡ã€ã«ããããŸããã ãã®ãã¡ã€ã«ã«æ£ç¢ºã«ãã©ã«ããŒæ§é ãåäœæããå¿
èŠããããŸãã ã€ãŸã ãã®æšªã«ãããã¹ãŠã®ãã®ã¯äžèŠã§ãããããã«æ¥ããã®ãã¹ãŠïŒã€ãŸãã芪ãã©ã«ããŒãé£æ¥ãããã©ã«ããŒãå¿
èŠãããŸããïŒã¯ãæ°ããMicrosoftãã©ã«ããŒã«åäœæãããŸãã ç§ã®å Žåã/ bootãã©ã«ããŒã®ã¿ãäœæããå¿
èŠããããæ°ãããã£ã¬ã¯ããªãžã®æçµãã¹ã¯æ¬¡ã®ããã«ãªããŸããïŒ/ EFI / Microsoft / bootã ãã¹ãŠã®ãã©ã«ããšãã¡ã€ã«ãåçŽã«ã³ããŒããããšãã§ããŸã-ãã§ãã¯ãããåäœãããã¹ãŠãæåã§äœæããããšã¯ã§ããŸããã
- ã¹ããã6ã®ãã£ã¬ã¯ããªã«ãLinuxãã£ã¹ããªãã¥ãŒã·ã§ã³ã®ååã®ãã©ã«ããŒããããŸãããã®å Žåã¯Ubuntuã§ãã ãã®ãã©ã«ããŒã®ãã¹ãŠã®ãã¡ã€ã«ããåã®æé ã§äœæããæçµãã£ã¬ã¯ããª/ EFI / Microsoft / bootã«ã³ããŒããŸãïŒå¿µã®ããå
ã®ãã¡ã€ã«ãšubuntuãã©ã«ããŒãæ®ããŸãïŒã
- çµæã®ãã¡ã€ã«ã·ã¹ãã ã§ã¯ãgrubx.efiãŸãã¯grubx64.efiãã¡ã€ã«ãèŠã€ãããŸãïŒã€ã³ã¹ããŒã«ãããŠããLinuxã®é·ãã«å¿ããŠããã®ãã¡ã®1ã€ã®ã¿ãååšããŸãïŒã ååãbootmgfw.efiã«å€æŽããŸãã
- ãã¡ã€ã«/boot/grub/grub.cfgã¯ãã€ã³ã¹ããŒã«ãããŠããLinuxã®ãã¡ã€ã«ã·ã¹ãã ã«ãããŸãã ç·šéçšã«éããŸãã ãã®äžã«ããchainloaderãã§å§ãŸãè¡ã®ã³ã³ããã¹ãã§ãMicrosoftããšããåèªãèŠã€ãããã®åèªãMicrosoftã«ååãå€æŽãããã£ã¬ã¯ããªã®ååã«çœ®ãæããŸãïŒ1åã ãåºçŸããè¡ã«ãchainloaderãããããããééããªãããã«ããŸãïŒã€ãŸãããã®äŸã§ã¯Microsoft2ã䜿çšããŠããŸãïŒã ãã¡ã€ã«ãžã®å€æŽãä¿åããŸãã
ãŸãããã®ãã¡ã€ã«ã§ã¯ãGRUBã衚瀺ãããªã¹ãå ã®ååãå€æŽã§ããŸãã ããšãã°ãã³ãŒãéšåã®openSUSE Leap 42.2 27.01ã®ä»£ããã«ïŒ
menuentry 'openSUSE Leap 42.2 27.01' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-996b3ed5-150f-4de3-a40c-6d385e27d6de' { load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 996b3ed5-150f-4de3-a40c-6d385e27d6de else search --no-floppy --fs-uuid --set=root 996b3ed5-150f-4de3-a40c-6d385e27d6de fi echo ' Linux 4.4.36-8-default âŠ' linuxefi /boot/vmlinuz-4.4.36-8-default root=UUID=996b3ed5-150f-4de3-a40c-6d385e27d6de ro resume=/dev/sda7 splash=silent quiet showopts echo ' âŠ' initrdefi /boot/initrd-4.4.36-8-default }
openSUSEãæžãã®ãæè¯ã®éžæã§ãïŒ:) ïŒ
menuentry 'openSUSE The best choice!:)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-996b3ed5-150f-4de3-a40c-6d385e27d6de' { load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 set root='hd0,gpt6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 996b3ed5-150f-4de3-a40c-6d385e27d6de else search --no-floppy --fs-uuid --set=root 996b3ed5-150f-4de3-a40c-6d385e27d6de fi echo ' Linux 4.4.36-8-default âŠ' linuxefi /boot/vmlinuz-4.4.36-8-default root=UUID=996b3ed5-150f-4de3-a40c-6d385e27d6de ro resume=/dev/sda7 splash=silent quiet showopts echo ' âŠ' initrdefi /boot/initrd-4.4.36-8-default }
äºçŽ°ãªããšã§ãããçŽ æŽãããïŒ ã³ãŒãã®æ®ãã®éšåã«è§Šããªãããšããå§ãããŸãã
Midnight Commanderã®ç®¡çãç解ããã®ãé£ããå ŽåïŒå¿é ããå¿ èŠã¯ãããŸãããåããŠãã®ããã°ã©ã ã«åé¡ãçºçããŸããïŒããã¹ãŠã®æäœã¯Nautilusãã¡ã€ã«ãããŒãžã£ãŒã§ïŒãŸãã¯å¥ã®åé¡ã§ã¯ãããŸããïŒå®è¡ã§ããŸãããæåã¯rootãŠãŒã¶ãŒãšããŠã
ãã®åŸãåèµ·åããŠçµæã楜ãã¿ãŸãã ããããçµå±ã®ãšãããOpenSUSE Leap 42.2ãã£ã¹ããªãã¥ãŒã·ã§ã³ã«ã¯ãã®ãããªåé¡ããããŸãã å®è·µã瀺ããŠããããã«ãWindows 10ãæèŒããOpenSUSEé åžããããã³ã³ãã¥ãŒã¿ãŒã«ã€ã³ã¹ããŒã«ãããŠããå Žåãäžèšã®æ瀺ã¯åœ¹ã«ç«ã¡ãŸããã ããæ£ç¢ºã«ã¯ãããã¯å©ãã«ãªããŸãããããã ããè£ãå¿ èŠããããŸãã äž»èŠéšåãå®äºãããã次ã®æé ãå®è¡ããŸãã
- ãã¹ãŠã®æäœãå®äºãããã/ EFI / opensuse / x86_64-efi /ãã©ã«ããŒã«ç§»åããŸãïŒæçµçãªx86_64-efiãã©ã«ããŒã®ååã¯ãPCã¢ãŒããã¯ãã£ã«ãã£ãŠç°ãªãå ŽåããããŸãïŒ
- grub.efiãã¡ã€ã«ãã³ããŒããŸãïŒã»ãã¥ã¢ããŒããªãã·ã§ã³ãæå¹ã«ããŠããå Žåã¯ãshim.efiãã¡ã€ã«ããããŸããããããäžç·ã«ã³ããŒããããšããå§ãããŸãïŒ
- / EFI / Bootãã©ã«ããŒã«ç§»åããããã«ãããã¹ãŠã®ãã¡ã€ã«ãåé€ããŸãïŒããŒãããŒããŒãæŽæ°ããããšããããã¯åã³è¡šç€ºãããŸãããå¿é ããå¿ èŠã¯ãããŸããïŒ
- ã³ããŒãããã¡ã€ã«ã貌ãä»ããŠãèœã¡çããŠåèµ·åããŸãã
ãããå šäœã®æ瀺ã§ãã 誰ãã䟿å©ã«ãªããšæããŸã...
PSãã¹ãŠãé 調ã§ããã°ãOpenSUSEã䜿çšããGRUBãèµ·åããŸãããWindowsã衚瀺ãããªãã®ã§åã¶-åé¡ã¯1ã€ã®ã³ãã³ãgrub2-mkconfig -o /boot/grub2/grub.cfgã§è§£æ±ºãããŸãã update-grub ã
ãã®ãããã¯ã«èå³ããã人ã¯ãèšäºãGRUB 2ããŒãããŒããŒ-å®å šãªã¬ã€ãããèªãããšããå§ãããŸã ã