为 /dev/sdx 更新 grub

为 /dev/sdx 更新 grub

我有两个硬盘(/dev/sda/dev/sdb)。

当我这样做时update-grub,它会考虑/dev/sda/dev/sdb

有没有什么办法可以做到update-grub/dev/sda

更新

我试过了 :

sudo update-grub /dev/sda

输出:(已考虑sdb

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-30-generic
Found initrd image: /boot/initrd.img-3.13.0-30-generic
Found linux image: /boot/vmlinuz-3.13.0-29-generic
Found initrd image: /boot/initrd.img-3.13.0-29-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Arch on /dev/sdb1 # << Founded Arch on sdb !!!!
done

相关内容