zeroisbug

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                                                启动

分类:

技术点:

相关文章:

  • 2021-10-03
  • 2021-08-26
  • 2021-11-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
猜你喜欢
  • 2021-09-17
  • 2021-10-25
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
相关资源
相似解决方案