起動順序の変更

起動順序の変更

sda12つのパーティションXPとCENTOSがありますsda2grubを再インストールしましたが、再起動/dev/sdaすると、次のメッセージが表示されます。error : 22 no such paritionCentosでは、Windowsは正常に起動します。

fdisk -l起動時に与えられた場合は、回復モードになっているので、オンにsda1変更できますか?sda2shell

答え1

sda2に置き換えてもいいですか?

fdiskユーティリティ自体には、ブートパーティションを切り替えるオプションがあります。

fdisk /dev/sda

起動可能フラグを切り替えるには、「a」と入力します。

答え2

sudo fdisk /dev/sda

Command (m for help): m
   Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the DOS compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

関連情報