GRUB Command

来源:互联网 发布:提成软件 编辑:程序博客网 时间:2024/06/02 06:07
从command line启动Windows:
root (hd0,2) # 表示第一个磁盘的第三个分区,GRUB使用hdx,y的方式定位分区
makeactive
chainloader --force +1
boot

启动ISO光盘镜像  win.iso
find --set-root /win/win.iso
map /win/win.iso (0xff)
map --hook
chainloader (0xff)
boot
1. Pop in the Live CD, boot from it until you reach the desktop.
2. Open a terminal window or switch to a tty.
3. Type "grub"
4. Type "root (hd0,6)", or whatever your harddisk + boot partition numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for grub).
5. Type "setup (hd0)", ot whatever your harddisk nr is.
6. Quit grub by typing "quit".
7. Reboot.
原创粉丝点击