ubuntu:
mkdir /mnt/ubuntu
mount /dev/sda7 /mnt/ubuntu
mount /dev/sda1 /mnt/ubuntu/boot
mount --bind /dev/ /mnt/ubuntu/dev/
mount -t proc none /mnt/ubuntu/proc
chroot /mnt/ubuntu "/bin/bash"
mount /sys
grub-install /dev/sda
#grub-install --root-directory=/boot /dev/sda #如果是双系统,须指定是ubuntu或者fedora的root路径
update-grub2
feroda:
mkdir /mnt/feroda
mount /dev/sda7 /mnt/feroda #/,根目录的分区
mount /dev/sda1 /mnt/feroda/boot #boot的分区
mount --bind /dev/ /mnt/feroda/dev/
mount -t proc none /mnt/feroda/proc
chroot /mnt/ubuntu "/bin/bash"
grub-install /dev/sda
grub下启动windows
rootnoverify(hd0,2)
setup (hd0)
chainloader +1
boot
阅读(722) | 评论(0) | 转发(1) |