grub2

     ubuntu10.04 start to use grub2 instead of grub.

      grub is very simple. We used  it very good.

    We can directly edit menu.lst file.

    Then  we can exec  grub  command. and we can get a inter-command env.

    root (*)

    setup (*)

    and exit

    now reboot our system.  We can get new grub meun!

 

 

    grub2 has many changes.   So grub2 is very hard to study.

    But grub2 is very strong.

 

sudo update-grub2  can auto dected ubuntu system boot info and other hard disk linux boot info.

     It can auto generate  correct grub.cfg file.

 

   grub-install command is very useful too.

 

grub-install - manual page for grub-install (GNU GRUB 1.98-1ubuntu7)
SYNOPSIS

grub-install
[OPTION] install_device
DESCRIPTION

Install GRUB on your drive.

-h, --help
    print this message and exit
-v, --version
    print the version information and exit
--modules=MODULES
    pre-load specified modules MODULES
--root-directory=DIR
    install GRUB images under the directory DIR
    instead of the root directory
--grub-setup=FILE
    use FILE as grub-setup
--grub-mkimage=FILE
    use FILE as grub-mkimage
--grub-probe=FILE
    use FILE as grub-probe
--no-floppy
    do not probe any floppy drive
--recheck
    probe a device map even if it already exists
--force
    install even if problems are detected
--disk-module=MODULE
    disk module to use


INSTALL_DEVICE can be a GRUB device name or a system device filename.


grub-install copies GRUB images into /boot/grub (or /grub on NetBSD and
OpenBSD), and uses grub-setup to install grub into the boot sector.


If the --root-directory option is used, then grub-install will copy
images into the operating system installation rooted at that directory.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值