ubuntu kylin 16.04 和 win10双系统,前几天win10自动更新,导致系统启动出问题。

ubuntu kylin 16.04 和 win10双系统,前几天win10自动更新,导致系统启动出问题。
1、刚开始出现grub rescue指令。
我按网上的办法可以进入系统选择界面:
ls
ls (hd0,sda3)/boot/grub
set root=(hd0,sda3)
set prefix=(hd0,sda3)/boot/grub
insmod /boot/grub/normal.mod
normal

可以进入系统选择界面。
2、但每次启动都需要重复上面的代码。
于是我上网搜索,按照网上的方法,不知道改了神码东东。
现在启动连grub rescue指令都不出现了,只是闪一下:/dev/sda3: clean, 240562/9412608 files, 2391289/37636230 blocks
然后直接进入ubuntu系统了。。。无法进入win10了,怎么办?

我是小白,搜了很多帖子,按照帖子在终端进行操作(不懂含义)。还是解决不了!
请专业人士或者有经验的大神帮忙解决!!!

附:grub.cfg的内容如下:

DO NOT EDIT THIS FILE

It is automatically generated by grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

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

menuentry ‘Windows 10 (loader) (on /dev/sda1)’ --class windows --class os $menuentry_id_option ‘osprober-chain-AEDCADBCDCAD7EE9’ {
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 AEDCADBCDCAD7EE9
else
search --no-floppy --fs-uuid --set=root AEDCADBCDCAD7EE9
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
set timeout_style=menu
if [ “${timeout}” = 0 ]; then
set timeout=10
fi

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

BEGIN /etc/grub.d/00_header

if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ “${next_entry}” ] ; then
set default=“${next_entry}”
set next_entry=
save_env next_entry
set boot_once=true
else
set default=“4”
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option=“–id”
else
menuentry_id_option=“”
fi

export menuentry_id_option

if [ “${prev_saved_entry}” ]; then
set saved_entry=“${prev_saved_entry}”
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z “${boot_once}” ]; then
saved_entry=“${chosen}”
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n “${have_grubenv}” ]; then if [ -z “${boot_once}” ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
font=“/usr/share/grub/unicode.pf2”
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=zh_CN
insmod gettext
fi
terminal_output gfxterm
if [ “${recordfail}” = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10

Fallback normal timeout code in case the timeout_style feature is

unavailable.

else
set timeout=10
fi
fi

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
insmod tga
if background_image /boot/grub/ubuntu_kylin_grub_bg.tga; then
true
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

function gfxmode {
set gfxpayload=“${1}”
if [ “${1}” = “keep” ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ “${recordfail}” != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry ‘Ubuntu Kylin GNU/Linux’ --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-simple-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
linux /boot/vmlinuz-4.4.0-28-generic root=UUID=3c6041b1-c56a-4a0a-a677-28cc3daa38ea ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-28-generic
}
submenu ‘Ubuntu Kylin GNU/Linux 高级选项’ $menuentry_id_option ‘gnulinux-advanced-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
menuentry ‘Ubuntu Kylin GNU/Linux,Linux 4.4.0-28-generic’ --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-4.4.0-28-generic-advanced-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
echo ‘载入 Linux 4.4.0-28-generic …’
linux /boot/vmlinuz-4.4.0-28-generic root=UUID=3c6041b1-c56a-4a0a-a677-28cc3daa38ea ro quiet splash $vt_handoff
echo ‘载入初始化内存盘…’
initrd /boot/initrd.img-4.4.0-28-generic
}
menuentry ‘Ubuntu Kylin GNU/Linux, with Linux 4.4.0-28-generic (upstart)’ --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-4.4.0-28-generic-init-upstart-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
echo ‘载入 Linux 4.4.0-28-generic …’
linux /boot/vmlinuz-4.4.0-28-generic root=UUID=3c6041b1-c56a-4a0a-a677-28cc3daa38ea ro quiet splash $vt_handoff init=/sbin/upstart
echo ‘载入初始化内存盘…’
initrd /boot/initrd.img-4.4.0-28-generic
}
menuentry ‘Ubuntu Kylin GNU/Linux, with Linux 4.4.0-28-generic (recovery mode)’ --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-4.4.0-28-generic-recovery-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
echo ‘载入 Linux 4.4.0-28-generic …’
linux /boot/vmlinuz-4.4.0-28-generic root=UUID=3c6041b1-c56a-4a0a-a677-28cc3daa38ea ro recovery nomodeset
echo ‘载入初始化内存盘…’
initrd /boot/initrd.img-4.4.0-28-generic
}
menuentry ‘Ubuntu Kylin GNU/Linux,Linux 4.4.0-21-generic’ --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-4.4.0-21-generic-advanced-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
echo ‘载入 Linux 4.4.0-21-generic …’
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=3c6041b1-c56a-4a0a-a677-28cc3daa38ea ro quiet splash $vt_handoff
echo ‘载入初始化内存盘…’
initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry ‘Ubuntu Kylin GNU/Linux, with Linux 4.4.0-21-generic (upstart)’ --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-4.4.0-21-generic-init-upstart-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
echo ‘载入 Linux 4.4.0-21-generic …’
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=3c6041b1-c56a-4a0a-a677-28cc3daa38ea ro quiet splash $vt_handoff init=/sbin/upstart
echo ‘载入初始化内存盘…’
initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry ‘Ubuntu Kylin GNU/Linux, with Linux 4.4.0-21-generic (recovery mode)’ --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option ‘gnulinux-4.4.0-21-generic-recovery-3c6041b1-c56a-4a0a-a677-28cc3daa38ea’ {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
echo ‘载入 Linux 4.4.0-21-generic …’
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=3c6041b1-c56a-4a0a-a677-28cc3daa38ea ro recovery nomodeset
echo ‘载入初始化内存盘…’
initrd /boot/initrd.img-4.4.0-21-generic
}
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_linux_xen

END /etc/grub.d/20_linux_xen

BEGIN /etc/grub.d/20_memtest86+

menuentry ‘Memory test (memtest86+)’ {
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
knetbsd /boot/memtest86+.elf
}
menuentry ‘Memory test (memtest86+, serial console 115200)’ {
insmod part_msdos
insmod ext2
set root=‘hd0,msdos2’
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
else
search --no-floppy --fs-uuid --set=root 3c6041b1-c56a-4a0a-a677-28cc3daa38ea
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}

END /etc/grub.d/20_memtest86+

BEGIN /etc/grub.d/30_uefi-firmware

END /etc/grub.d/30_uefi-firmware

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

END /etc/grub.d/40_custom

BEGIN /etc/grub.d/41_custom

if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z “${config_directory}” -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi

END /etc/grub.d/41_custom

grub.cfg你都敢动==反正目前我的水平我是不敢碰的,每次都是修改
/etc/default/grub
而且还要
cp /etc/default/grub /etc/default/grub,bak
才放心

看来你现在是只能直接进ubuntu了,那你之前win10没有更新的时候是win下的引导还是ubuntu下的引导?

进入ubuntu系统后操作

sudo -i(获得管理员权限)  
fdisk -l(查看分区及类型)

挂载分区

mount /dev/sda* /mnt

在终端输入

grub-install --root-directory=/mnt /dev/sda  

更新grub

sudo update-grub  

如果你的更新中看到windows10你将重启系统可以进入选择进入系统

我是后装的Ubuntu,启动时Ubuntu引导的,默认在Ubuntu停留10s,我改了grub.cfg,改成默认win10。

运行代码如下,帮忙看下:

bamboodew@bamboodew-HP-Pavilion-g4-Notebook-PC:~$ sudo -i
[sudo] bamboodew 的密码:
root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# fdisk -l
Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x104e1550

设备 启动 Start 末尾 扇区 Size Id 类型
/dev/sda1 * 2048 165854796 165852749 79.1G 7 HPFS/NTFS/exFAT
/dev/sda2 165855232 167766015 1910784 933M 27 Hidden NTFS WinRE
/dev/sda3 167768064 468857907 301089844 143.6G 83 Linux

Disk /dev/sdb: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x97be5b6a

设备 启动 Start 末尾 扇区 Size Id 类型
/dev/sdb1 16321 1250258624 1250242304 596.2G f W95 扩展 (LBA)
/dev/sdb5 16384 102412287 102395904 48.8G 7 HPFS/NTFS/exFAT
/dev/sdb6 102416384 521855459 419439076 200G 7 HPFS/NTFS/exFAT
/dev/sdb7 521857024 941296544 419439521 200G 7 HPFS/NTFS/exFAT
/dev/sdb8 941297664 1250258624 308960961 147.3G 7 HPFS/NTFS/exFAT
root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# mount /dev/sda* /mnt

Usage:
mount [-lhV]
mount -a [options]
mount [options] [–source] | [–target]
mount [options]
mount []

Mount a filesystem.

选项:
-a, --all mount all filesystems mentioned in fstab
-c, --no-canonicalize don’t canonicalize paths
-f, --fake dry run; skip the mount(2) syscall
-F, --fork fork off for each device (use with -a)
-T, --fstab alternative file to /etc/fstab
-i, --internal-only don’t call the mount. helpers
-l, --show-labels show also filesystem labels
-n, --no-mtab don’t write to /etc/mtab
-o, --options comma-separated list of mount options
-O, --test-opts limit the set of filesystems (use with -a)
-r, --read-only mount the filesystem read-only (same as -o ro)
-t, --types limit the set of filesystem types
–source explicitly specifies source (path, label, uuid)
–target explicitly specifies mountpoint
-v, --verbose say what is being done
-w, --rw, --read-write mount the filesystem read-write (default)

-h, --help display this help and exit
-V, --version output version information and exit

Source:
-L, --label synonym for LABEL=
-U, --uuid synonym for UUID=
LABEL= specifies device by filesystem label
UUID= specifies device by filesystem UUID
PARTLABEL= specifies device by partition label
PARTUUID= specifies device by partition UUID
specifies device by path
mountpoint for bind mounts (see --bind/rbind)
regular file for loopdev setup

Operations:
-B, --bind mount a subtree somewhere else (same as -o bind)
-M, --move move a subtree to some other place
-R, --rbind mount a subtree and all submounts somewhere else
–make-shared mark a subtree as shared
–make-slave mark a subtree as slave
–make-private mark a subtree as private
–make-unbindable mark a subtree as unbindable
–make-rshared recursively mark a whole subtree as shared
–make-rslave recursively mark a whole subtree as slave
–make-rprivate recursively mark a whole subtree as private
–make-runbindable recursively mark a whole subtree as unbindable

For more details see mount(8).
root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# grub-install --root-directory=/mnt /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Installing GRUB to /dev/sda as (hd0)…
Installation finished. No error reported.
This is the contents of the device map /mnt/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
root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# sudo update-grub
Searching for GRUB installation directory … found: /boot/grub
Searching for default file … found: /boot/grub/default
Testing for an existing GRUB menu.lst file … found: /boot/grub/menu.lst
Searching for splash image … none found, skipping …
Found kernel: /boot/vmlinuz-4.4.0-53-generic
Found kernel: /boot/vmlinuz-4.4.0-28-generic
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-4.4.0-53-generic
Found kernel: /boot/vmlinuz-4.4.0-28-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst … done

root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# sudo update-grub
Searching for GRUB installation directory … found: /boot/grub
Searching for default file … found: /boot/grub/default
Testing for an existing GRUB menu.lst file … found: /boot/grub/menu.lst
Searching for splash image … none found, skipping …
Found kernel: /boot/vmlinuz-4.4.0-53-generic
Found kernel: /boot/vmlinuz-4.4.0-28-generic
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-4.4.0-53-generic
Found kernel: /boot/vmlinuz-4.4.0-28-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst … done

更新没有windows 10 ,重启之后仍然是闪现:
/dev/sda3: clean, 240562/9412608 files, 2391289/37636230 blocks
然后直接进入ubuntu系统、无法进入系统选项界面。

分区挂载这部你没通过,
mount /dev/sda* /mnt

那怎么办啊?:cry:

另外你运行粘贴仔细点,方便别人查看,乱呼呼的我看不懂!

按你说的步骤运行结果如下:

[b]

bamboodew@bamboodew-HP-Pavilion-g4-Notebook-PC:~$ sudo -i[/b]
[sudo] bamboodew 的密码:
[b]root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# fdisk -l[/b]
Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x104e1550

设备       启动     Start    末尾    扇区   Size Id 类型
/dev/sda1  *         2048 165854796 165852749  79.1G  7 HPFS/NTFS/exFAT
/dev/sda2       165855232 167766015   1910784   933M 27 Hidden NTFS WinRE
/dev/sda3       167768064 468857907 301089844 143.6G 83 Linux


Disk /dev/sdb: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x97be5b6a

设备       启动     Start     末尾     扇区   Size Id 类型
/dev/sdb1           16321 1250258624 1250242304 596.2G  f W95 扩展 (LBA)
/dev/sdb5           16384  102412287  102395904  48.8G  7 HPFS/NTFS/exFAT
/dev/sdb6       102416384  521855459  419439076   200G  7 HPFS/NTFS/exFAT
/dev/sdb7       521857024  941296544  419439521   200G  7 HPFS/NTFS/exFAT
/dev/sdb8       941297664 1250258624  308960961 147.3G  7 HPFS/NTFS/exFAT
[b]root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# mount /dev/sda* /mnt[/b]

Usage:
mount [-lhV]
mount -a [options]
mount [options] [--source] <source> | [--target] <directory>
mount [options] <source> <directory>
mount <operation> <mountpoint> [<target>]

Mount a filesystem.

选项:
-a, --all               mount all filesystems mentioned in fstab
-c, --no-canonicalize   don't canonicalize paths
-f, --fake              dry run; skip the mount(2) syscall
-F, --fork              fork off for each device (use with -a)
-T, --fstab <path>      alternative file to /etc/fstab
-i, --internal-only     don't call the mount.<type> helpers
-l, --show-labels       show also filesystem labels
-n, --no-mtab           don't write to /etc/mtab
-o, --options <list>    comma-separated list of mount options
-O, --test-opts <list>  limit the set of filesystems (use with -a)
-r, --read-only         mount the filesystem read-only (same as -o ro)
-t, --types <list>      limit the set of filesystem types
   --source <src>      explicitly specifies source (path, label, uuid)
   --target <target>   explicitly specifies mountpoint
-v, --verbose           say what is being done
-w, --rw, --read-write  mount the filesystem read-write (default)

-h, --help     display this help and exit
-V, --version  output version information and exit

Source:
-L, --label <label>     synonym for LABEL=<label>
-U, --uuid <uuid>       synonym for UUID=<uuid>
LABEL=<label>           specifies device by filesystem label
UUID=<uuid>             specifies device by filesystem UUID
PARTLABEL=<label>       specifies device by partition label
PARTUUID=<uuid>         specifies device by partition UUID
<device>                specifies device by path
<directory>             mountpoint for bind mounts (see --bind/rbind)
<file>                  regular file for loopdev setup

Operations:
-B, --bind              mount a subtree somewhere else (same as -o bind)
-M, --move              move a subtree to some other place
-R, --rbind             mount a subtree and all submounts somewhere else
--make-shared           mark a subtree as shared
--make-slave            mark a subtree as slave
--make-private          mark a subtree as private
--make-unbindable       mark a subtree as unbindable
--make-rshared          recursively mark a whole subtree as shared
--make-rslave           recursively mark a whole subtree as slave
--make-rprivate         recursively mark a whole subtree as private
--make-runbindable      recursively mark a whole subtree as unbindable

For more details see mount(8).
[b]root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# grub-install --root-directory=/mnt /dev/sda[/b]
Probing devices to guess BIOS drives. This may take a long time.
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /mnt/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
[b]root@bamboodew-HP-Pavilion-g4-Notebook-PC:~# sudo update-grub[/b]
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-4.4.0-53-generic
Found kernel: /boot/vmlinuz-4.4.0-28-generic
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-4.4.0-53-generic
Found kernel: /boot/vmlinuz-4.4.0-28-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

这里参考安装修复引导工具
https://help.ubuntu.com/community/Boot-Repair

已按照你提供的网页的步骤安装、修复成功!!!
由衷的感谢!:handshake

这些工具是比手工好,不用什么基础,
只是举手之劳!不用客气,以后希望你也向别人贡献爱心!

进入ubuntu系统后操作

我仔细想了一下,你的情况是不是这样的:你的电脑是先安装的windows,再安装的ubuntu,但是你在安装ubuntu的时候选择引导的时候选了默认的选项,于是就变成了每次开机界面都是ubuntu引导?我猜是这样的,那么你可以尝试这个解决方案。

准备一个U盘,在别的电脑上修改成PE盘(如果你在ubuntu上可以完成的话也可以,不过不太方便),然后在启动电脑的时候修改成U盘启动,进入pe,选择引导修复,然后引导就成了boot->bootloader了,ubuntu的引导也就没了。

上一步不出意外的话可以让你进入win 10,进去以后下载easy BCD,新建一个ubuntu的引导即可。(关于easyBCD的使用帖子很多,注意ubuntu版本,14.04及以上的话引导选择grub2)

你这个情况的根源在与win10 升级以后修改mbr与ubuntu的引导冲突了,具体什么原理我就不懂了。

学习

可以安装grub图形化工具grub-customizer,适用所有ubuntu系的系统