日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux可以不用grub吗,既然不用Win了,那么GrubDOS也不用了。linux grub求指导

發布時間:2023/12/10 linux 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux可以不用grub吗,既然不用Win了,那么GrubDOS也不用了。linux grub求指导 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

該樓層疑似違規已被系統折疊?隱藏此樓查看此樓

5、安裝Grub到U盤上:

[star@localhost ~]$ sudo grub-install

--root-directory=/media/test/ /dev/sdb

Probing

devices to guess BIOS drives. This may take a long time.

Installation

finished. No error reported.

This is the

contents of the device map

/media/test//boot/grub/device.map.

Check if

this is correct or not. If any of the lines is incorrect,

fix it and

re-run the script `grub-install'.

(fd0)

/dev/fd0

(hd0)

/dev/sda

(hd1)

/dev/sdb

6、復制當前系統的menu.lst到u盤grub下:

[star@localhost ~]$ sudo cp /boot/grub/menu.lst

/media/test/boot/grub/

7、根據實際情況修改menu.lst。

8、安裝grub到MBR:

[star@localhost ~]$ sudo grub

GNU GRUB version 0.97 (640K

lower / 3072K upper memory)

[ Minimal

BASH-like line editing is supported. For the

first word, TAB

lists

possible command completions. Anywhere else TAB

lists the possible

completions

of a device/filename. ]

grub> find

/boot/grub/stage1

(hd0,5)

(hd1,0)

grub> root (hd1,0)

Filesystem

type is ext2fs, partition type 0x83

grub> setup (hd1)

Checking if

"/boot/grub/stage1" exists... yes

Checking if

"/boot/grub/stage2" exists... yes

Checking if

"/boot/grub/e2fs_stage1_5" exists... yes

Running "embed /boot/grub/e2fs_stage1_5

(hd1)"... 19 sectors are embedded.

succeeded

Running "install /boot/grub/stage1 (hd1)

(hd1)1+19 p (hd1,0)/boot/grub/stage2

/boot/grub/menu.lst"... succeeded

Done.

grub> quit

9、卸載就OK了,即完成了。以后就可以使用這個U盤來引導或修復系統了。

總結

以上是生活随笔為你收集整理的linux可以不用grub吗,既然不用Win了,那么GrubDOS也不用了。linux grub求指导的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。