とにかくGRUBをインストールできません

とにかくGRUBをインストールできません

私のコンピュータにはWindows 7とMint 16(Cinnamon)がインストールされています。 Mintをインストールした後、GRUBの動作が停止し、GRUBメニューの代わりにGRUB Rescue Consoleが表示されました。時間がかかったので、Windowsインストールディスクを起動し、一連のbootexecコマンドを実行して少なくとも復元しました。

後でドライブにMint Live CDがある場合は、ディスクの起動メニューからGRUBコンソールに切り替えてMintのインストールを開始できることに気づきました。その後、次のように入力しました。

set root=(hd1,msdos6)
set prefix=/boot/grub
linux /vmlinuz root=/dev/sda6 ro
initrd /initrd.img
boot

ミントをつけて走りました。情報スクリプトの起動、次の結果を得る。

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Windows is installed in the MBR of /dev/sda.
 => Windows is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 16 Petra
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:      

(実際、このファイルにはより多くの内容がありますが、次の内容は質問とは関係がないと思います。)

これが私の注目を集めました:

 => Windows is installed in the MBR of /dev/sda.

だからこうすれば、すべてがsudo grub-install /dev/sda大丈夫でしょうか?

まあ…いいえ。grub-install苦情はありません。後でブート情報スクリプトを実行すると、同じ結果が出ました。再起動すると、GRUBメニューを表示せずにWindowsがロードされます。

それでは、私がここで何を見逃しているのでしょうか?

ベストアンサー1

タスク オペレーティングシステムでもライブセッションでもターミナルコマンドを使用して、最新バージョンの Mint のブートリカバリをインストールして実行できます。

*以下のコメントはさんのコメントです。ここしかし、MintはUbuntuと同じリポジトリを使用するので動作します。

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)  

コマンドの説明:

  1. 起動回復用のストレージの追加
  2. 起動回復ソースのリストに追加
  3. apt-get 変更の更新 (ストレージとソース)
  4. ブート回復のインストールと実行

新しいオペレーティングシステムをインストールした後にGRUBレコード/メニューを更新するには、update-grub操作も実行する必要があります(GRUBを使用している場合)。

おすすめ記事