grub命令备忘

grub:

命令:
    root (hd0,0)
    kernel /vmlinuz ro root=/dev/sda3                   指定 / 下的内核文件,同时指定分区 /dev/sda3 作为根切换的根 /
    initrd /initramfs.img                               指定初始化程序 init 程序
    boot                                                启动

grub2:

命令:
    ls                                                  查询可用的硬盘和分区
    set root=(hd0,msdos1)                               设置分区 /boot 作为 /
    linux /vmlinuz ro root=/dev/sda3                    指定 / 下的内核文件,同时指定分区 /dev/sda3 作为根切换的根 /
    initrd /initramfs.img                               指定初始化程序 init 程序
    boot                                                启动

猜你喜欢

转载自www.cnblogs.com/zeroisbug/p/8983683.html
今日推荐