断电以后UBUNTU打不开了

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

断电以后UBUNTU打不开了

#1

帖子 zxl88123 » 2017-07-15 11:47

断电以后打开UBUNTU卡在sysenter_do_call+0*12/0*12 处

里面存东西了,不想重装,求大神支招如何修复
头像
astolia
论坛版主
帖子: 6445
注册时间: 2008-09-18 13:11

Re: 断电以后UBUNTU打不开了

#2

帖子 astolia » 2017-07-15 15:52

你这等于什么都没说。这个只知道是内核崩溃了,先找个livecd/liveusb之类的东西磁盘检查,如果内核文件/驱动文件挂了去网上下对应安装包把文件覆盖一下
另外重装只要不格盘,你存的东西又不会丢,就算有改动的会被覆盖,用livecd/liveusb导出来备份就是了
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

Re: 断电以后UBUNTU打不开了

#3

帖子 zxl88123 » 2017-07-15 17:44

图片

怎么进行磁盘检查?
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

Re: 断电以后UBUNTU打不开了

#4

帖子 zxl88123 » 2017-07-15 18:32

astolia 写了:你这等于什么都没说。这个只知道是内核崩溃了,先找个livecd/liveusb之类的东西磁盘检查,如果内核文件/驱动文件挂了去网上下对应安装包把文件覆盖一下
另外重装只要不格盘,你存的东西又不会丢,就算有改动的会被覆盖,用livecd/liveusb导出来备份就是了
就是上面这个截图,我有LIVECD,能不能帮我看看怎么修?
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: 断电以后UBUNTU打不开了

#5

帖子 TeliuTe » 2017-07-15 19:30

livecd 进去先把重要的资料备份一下,然后把/boot/grub.cfg发上来看一下
开机出来启动菜单时,试一下进入高级模式recovery mode,或者进入其他内核引导
如果修复不成功覆盖安装不格式化也可以保留之前的用户数据,有冲突的系统文件会删除
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

Re: 断电以后UBUNTU打不开了

#6

帖子 zxl88123 » 2017-07-15 19:40

#
# 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/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="0"
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,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
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=en_US
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 ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/08_os-prober ###
### END /etc/grub.d/08_os-prober ###

### 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' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e558f489-953b-49e7-86d8-322ccd6e28c0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
fi
linux /boot/vmlinuz-3.13.0-92-generic root=UUID=e558f489-953b-49e7-86d8-322ccd6e28c0 ro noacpi acpi=off acpi=force apm power_off=1 quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-92-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-e558f489-953b-49e7-86d8-322ccd6e28c0' {
menuentry 'Ubuntu, with Linux 3.13.0-92-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-92-generic-advanced-e558f489-953b-49e7-86d8-322ccd6e28c0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
fi
echo 'Loading Linux 3.13.0-92-generic ...'
linux /boot/vmlinuz-3.13.0-92-generic root=UUID=e558f489-953b-49e7-86d8-322ccd6e28c0 ro noacpi acpi=off acpi=force apm power_off=1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-92-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-92-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-92-generic-recovery-e558f489-953b-49e7-86d8-322ccd6e28c0' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
fi
echo 'Loading Linux 3.13.0-92-generic ...'
linux /boot/vmlinuz-3.13.0-92-generic root=UUID=e558f489-953b-49e7-86d8-322ccd6e28c0 ro recovery nomodeset noacpi acpi=off acpi=force apm power_off=1
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-92-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-advanced-e558f489-953b-49e7-86d8-322ccd6e28c0' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
fi
echo 'Loading Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=e558f489-953b-49e7-86d8-322ccd6e28c0 ro noacpi acpi=off acpi=force apm power_off=1 quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-recovery-e558f489-953b-49e7-86d8-322ccd6e28c0' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
fi
echo 'Loading Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=e558f489-953b-49e7-86d8-322ccd6e28c0 ro recovery nomodeset noacpi acpi=off acpi=force apm power_off=1
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-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,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 e558f489-953b-49e7-86d8-322ccd6e28c0
else
search --no-floppy --fs-uuid --set=root e558f489-953b-49e7-86d8-322ccd6e28c0
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 ###
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

Re: 断电以后UBUNTU打不开了

#7

帖子 zxl88123 » 2017-07-15 20:00

我的UBUNTU版本和LIVECD的版本不一样能覆盖安装不?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 断电以后UBUNTU打不开了

#8

帖子 poloshiao » 2017-07-15 20:51

我有 LIVECD
1. 使用 Ubuntu Live CD 開機
登入 試用桌面
2. 把下面指令 複製 貼進終端機 執行
2-1. sudo efibootmgr -v
2-2. sudo parted -l print
2-3. 把結果全部直接 選取/複製/貼上來
3. 請說明 你安裝 Ubuntu 時 把 / 掛載在哪個分割區 ?
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

Re: 断电以后UBUNTU打不开了

#9

帖子 zxl88123 » 2017-07-15 21:38

root@ubuntu:~# modprobe efivars -v
root@ubuntu:~# parted -l print
Model: ATA ST500DM002-1BD14 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 107GB 107GB primary ntfs boot
2 107GB 500GB 393GB extended lba
5 107GB 182GB 74.7GB logical ntfs
8 182GB 234GB 52.0GB logical ext4
9 234GB 238GB 4293MB logical linux-swap(v1)
6 238GB 369GB 131GB logical ntfs
7 369GB 500GB 131GB logical ntfs


Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

Re: 断电以后UBUNTU打不开了

#10

帖子 zxl88123 » 2017-07-15 22:29

/挂载在逻辑分区上
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 断电以后UBUNTU打不开了

#11

帖子 poloshiao » 2017-07-16 16:17

/挂载在逻辑分区上
Disk /dev/sda: 500GB
8 182GB 234GB 52.0GB logical ext4
1. 你是指 /dev/sda8 ?
2. 如果是
登入 試用桌面
把下面指令 複製 貼進終端機 執行
sudo fsck /dev/sda8
2-1. 如果順利完成
重新開機 看看
2-2. 如果有錯誤訊息 全部複製 貼上來
不要摘錄
zxl88123
帖子: 19
注册时间: 2011-06-30 19:31

Re: 断电以后UBUNTU打不开了

#12

帖子 zxl88123 » 2017-07-16 18:35

被我折腾的现在彻底怀了,WINPE、UBUNTU安装盘都进不去了
回复