GRUBはどこにインストールしますか?

GRUBはどこにインストールしますか?

リモートサーバーでUbuntu 14.04を実行しています。これはインストールされた唯一のオペレーティングシステムです。サーバーへのKVMアクセスが難しいため、システムを再起動する前に非常に注意する必要があります。

GRUB の更新中に、GRUB をインストールする場所を尋ねるメッセージが表示されます。ディスクにRaid1があります。どこに行くのか分からない。

マウントテーブルは次のとおりです。

# mount

/dev/md2 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/md1 on /boot type ext3 (rw)
/dev/md126 on /home type ext4 (rw,noexec,nosuid,nodev)
/dev/md127 on /backup type ext4 (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)

そしてこれはfdisk出力です:

# fdisk -l

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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
Disk identifier: 0x000b5404

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048    33556480    16777216+  fd  Linux raid autodetect
/dev/sdb2        33558528    34607104      524288+  fd  Linux raid autodetect
/dev/sdb3        34607105  1094607934   530000415   fd  Linux raid autodetect
/dev/sdb4      1094607935  3907029167  1406210616+   5  Extended
/dev/sdb5      1094607998  2154608764   530000383+  fd  Linux raid autodetect
/dev/sdb6      2154608828  3907029167   876210170   fd  Linux raid autodetect

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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
Disk identifier: 0x00044ee7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    33556480    16777216+  fd  Linux raid autodetect
/dev/sda2        33558528    34607104      524288+  fd  Linux raid autodetect
/dev/sda3        34607105  1094607934   530000415   fd  Linux raid autodetect
/dev/sda4      1094607935  3907029167  1406210616+   5  Extended
/dev/sda5      1094607998  2154608764   530000383+  fd  Linux raid autodetect
/dev/sda6      2154608828  3907029167   876210170   fd  Linux raid autodetect

Disk /dev/md127: 897.1 GB, 897104996352 bytes
2 heads, 4 sectors/track, 219019774 cylinders, total 1752158196 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
Disk identifier: 0x00000000

Disk /dev/md127 doesn't contain a valid partition table

Disk /dev/md0: 17.2 GB, 17171349504 bytes
2 heads, 4 sectors/track, 4192224 cylinders, total 33537792 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
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 536 MB, 536543232 bytes
2 heads, 4 sectors/track, 130992 cylinders, total 1047936 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
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 542.6 GB, 542586207232 bytes
2 heads, 4 sectors/track, 132467335 cylinders, total 1059738686 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
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md126: 542.6 GB, 542586174976 bytes
2 heads, 4 sectors/track, 132467327 cylinders, total 1059738623 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
Disk identifier: 0x00000000

Disk /dev/md126 doesn't contain a valid partition table

ベストアンサー1

VPSは通常GRUBをインストールしません。 GRUBはカーネルをロードします(何よりも)。 OpenVZなどの環境を使用している場合は、カーネルをロードする必要はありません。カーネルはコンテナ間で共有されます。カーネルも更新しません。実際には更新から書き込み禁止されています。

KVMベースのVPSでは話が異なります。このような場合はカーネルをロードします。契約書を確認するか、結果を見ると、どのタイプのVPSがあるかを確認できますuname -a。 OpenVZ カーネルは、多くの場合、2.6.26-1-openvz-amd64 などの特定の文字列をカーネルバージョンに追加します。

また、見ることができますhttps://stackoverflow.com/questions/1603351/should-i-choose-kvm-or-openvz-for-my-vps2つの方法を比較してください(もっと多くはありますが、あまり一般的ではありません)。

PS:この回答はVPSのGRUBの場所に関する元の質問に関連しています。関連データはこの回答のコメントにあります。

おすすめ記事