
sda1
2つのパーティションXPとCENTOSがありますsda2
。grub
を再インストールしましたが、再起動/dev/sda
すると、次のメッセージが表示されます。error : 22 no such parition
Centosでは、Windowsは正常に起動します。
fdisk -l
起動時に与えられた場合は、回復モードになっているので、オンにsda1
変更できますか?sda2
shell
答え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)