Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu modifies grub, modifies boot sequence, and configures grub boot sequence

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Method 1:

1. Open the terminal after entering the Ubuntu system

two。 Enter the following command in the terminal

Sudo gedit / boot/grub/grub.cfg

3. Find the configuration of Windows and cut it to the front of Ubuntu

Put the bottom

# BEGIN / etc/grub.d/30_os-prober #

Menuentry 'Windows 7 (loader) (on / dev/sda1)'-- class windows-- class os $menuentry_id_option 'osprober-chain-D4C4BF7AC4BF5E04' {

Insmod part_msdos

Insmod ntfs

Set root='hd0,msdos1'

If [x$feature_platform_search_hint = xy]; then

Search-no-floppy-fs-uuid-set=root-hint-bios=hd0,msdos1-hint-efi=hd0,msdos1-hint-baremetal=ahci0,msdos1 D4C4BF7AC4BF5E04

Else

Search-no-floppy-fs-uuid-set=root D4C4BF7AC4BF5E04

Fi

Parttool ${root} hidden-

Chainloader + 1

}

Set timeout_style=menu

If ["${timeout}" = 0]; then

Set timeout=10

Fi

# END / etc/grub.d/30_os-prober #

Before copying to # BEGIN / etc/grub.d/10_linux # de qianmian

Method 2:

1. Enter sudo gedit / etc/default/grub in the terminal

two。 Set up default-set=4

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report