7
硬盘安装windows及MBR、grub修复
source link: http://abcdxyzk.github.io/blog/2019/06/04/install-win/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
硬盘安装windows及MBR、grub修复
2019-06-04 21:12:00
硬盘安装win7
mount -o loop win7.iso /mnt
mount -t ntfs /dev/sda3 /tmp/kk
cp -r /mnt/* /tmp/kk/
umount /tmp/kk
reboot
https://askubuntu.com/questions/254491/failed-to-get-canonical-path-of-cow
重启后来到 grub 的引导菜单,按 c 键进入命令行模式:
grub> set root=(hd1,2)
grub> insmod ntfs
grub> ntldr /bootmgr
grub> boot
修复MBR、grub
从ubuntu u盘执行:
mkdir /mnt
mount /dev/sda2 /mnt
cd /mnt
grub-install --recheck --root-directory=/mnt /dev/sda
ubuntu系统的 grub-install 64位的不能执行??? u盘中的grub-install i386可以执行???
临时进系统方法:
insmod linux
ls
root=(hd0,1)
linux /boot/vmlinuz root=/dev/sda1
initrd /boot/initrd
boot
# win7
set root=(hd0,1)
chainloader +1
boot
Posted by kk
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK