神啊,搭救我一把吧,我的ubuntu开不起来了

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

神啊,搭救我一把吧,我的ubuntu开不起来了

#1

帖子 w8852169 » 2008-11-16 18:11

我使用UBUNTU8.04使用得很好,可就前几天晚上,一晚上无故给我死机5次,每次都是死干净了的,CTRL+ALT+←也没用,反正是死透了,重起用个把小时又挂,等第5次死掉后,我再起,就进入命令行界面,进不了图形界面了,再起一次后,GRUB报错ERROR2,没其他反应了。
我折腾了两天,查了下资料,摆不平了,只好清空mbr了,dos进不去,盘有问题,用软件清空的,现在只能显示Missing operation system了。
用Ubuntu的liveCD 进系统在命令行下,我看到我的的第2个盘的linux分区,grub里就是setup不出来,说文件找不到,find /boot/grub/stage1就是找不到,我在以前使用的时候看得到根目录下面的boot文件夹,可在光盘系统里为什么看到boot是一个文件,现在不找到怎么办了,我又不想重新装,请各位帮帮小菜我,help me! 在线等!!!!!!!!!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf0b1ebb0

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 c W95 FAT32 (LBA)
/dev/sda2 1306 4522 25840552+ 7 HPFS/NTFS
/dev/sda3 4523 30401 207873067+ f W95 Ext'd (LBA)
/dev/sda5 4523 8219 29696121 7 HPFS/NTFS
/dev/sda6 8220 11789 28675993+ 7 HPFS/NTFS
/dev/sda7 11790 15486 29696121 7 HPFS/NTFS
/dev/sda8 15487 19183 29696121 7 HPFS/NTFS
/dev/sda9 19184 22880 29696121 7 HPFS/NTFS
/dev/sda10 22881 26577 29696121 7 HPFS/NTFS
/dev/sda11 26578 30401 30716248+ 7 HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdae345f2

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1069 8586711 83 Linux
/dev/sdb2 1070 1312 1951897+ 83 Linux
/dev/sdb3 1313 1442 1044225 82 Linux swap / Solaris
/dev/sdb4 1443 9728 66557295 f W95 Ext'd (LBA)
/dev/sdb5 1443 3184 13992583+ 7 HPFS/NTFS
/dev/sdb6 3185 5734 20482843+ 7 HPFS/NTFS
/dev/sdb7 5735 8284 20482843+ 7 HPFS/NTFS
/dev/sdb8 8285 9728 11598898+ 7 HPFS/NTFS
root@ubuntu:~# sudo grub

grub> root (hd
Possible disks are: hd0 hd1

grub> root (hd1,
Possible partitions are:
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type unknown, partition type 0x82
Partition num: 4, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type unknown, partition type 0x7
Partition num: 7, Filesystem type unknown, partition type 0x7

grub> root (hd1,0)

grub> setup (hd1)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found

grub> find /boot/grub/stage1
Error 15: File not found
grub> find /grub/stage1
Error 15: File not found
grub> find /boot/vmliuz
Error 15: File not found
grub> find /vmlinuz
Error 15: File not found

grub> cat (hd1,0)/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=20bd48f4-6dd7-4820-bfba-cb7cce2b3158 / ext3 relatime,errors=remount-ro 0 1
# /dev/sdb4
UUID=f1da2b4d-67fc-4cbd-ae4b-42a6808cf7f1 /home ext3 relatime 0 2
# /dev/sdb2
UUID=023f0b6c-a651-4e6d-b03e-4d4c83c841e2 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

grub> kernel /boot/
Error 2: Bad file or directory type
grub> kernel /boot/
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#2

帖子 kelen » 2008-11-16 19:01

简单说一下现在的情况,是不是不能启动了?
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#3

帖子 w8852169 » 2008-11-16 19:18

mbr都被fdisk了
启动不了ubuntu
grub装不上了
现在只能用xp
郁闷
帮帮忙啊
盼望春天
帖子: 128
注册时间: 2008-10-21 17:14

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#4

帖子 盼望春天 » 2008-11-16 19:32

不太好办。
赶快重装,来的快。 :em11
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#5

帖子 w8852169 » 2008-11-16 19:37

。。。我不想重装啊
升级和安装其他软件麻烦呢。才学linux不习惯啊
1234qw
帖子: 389
注册时间: 2007-12-31 11:40

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#6

帖子 1234qw » 2008-11-16 20:54

用Ubuntu的liveCD 进系统,分区编辑器查看原/的编号,再看boot文件夹里的文件全不全,
附件
Screenshotppp.png
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#7

帖子 冲浪板 » 2008-11-16 21:02

能启动xp?
那么用ntldr加载grub...
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#8

帖子 w8852169 » 2008-11-16 21:10

我不想用grub4dos,就只想装mbr上,6楼的分区编辑器在哪找?附件工具里面没有啊?
要安装的么?就算文件齐全,没丢,我怎么在终端进去?能find /boot/grub/linuz.....到吗?
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#9

帖子 w8852169 » 2008-11-16 22:01

My boot is here! I don't kown what's happy,
附件
Screenshot.png
1234qw
帖子: 389
注册时间: 2007-12-31 11:40

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#10

帖子 1234qw » 2008-11-16 23:19

建议备份/var/cache/apt/archives里的deb包,然后重装。
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#11

帖子 w8852169 » 2008-11-16 23:23

可很多软件都是自己下好了,编译的,我就是难得升级和配置环境,备份deb包,估计没多少用,
大哥们,指点我一下啊,有没有不用重装的办法啊。
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#12

帖子 w8852169 » 2008-11-17 20:42

神啊,搭9我一把吧,高手们啊,搭9我一把吧,9人一命胜造7级浮屠啊!!
Help me,God!
Help me ,Hero!
:em95 :em95 :em95
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#13

帖子 xhy » 2008-11-17 21:00

代码: 全选

mkdir /mnt/xxxx
mount -o loop  这个boot文件  /mnt/xxxx
看一下能不能mount上,可以尝试不同参数mount

如果能mount上,把文件复制出来,重新建一个/boot目录,直接复制到那个目录

如果里面没有内核文件,也复制一份进去,然后修改grub配置文件和fstab,再重装下grub到 MBR


如果mount不上,你只能livecd上网,挂载好/,建立好boot目录,chroot进硬盘上的系统,然后 apt-get install 内核

再重装grub



最后还有一招,可以尝试去别的机器复制一份可以用的通用内核,或者win下面下载好包再拷过去,实在没条件就试试livecd的内核。



所有操作之前,确认已经把重要资料备份到U盘或者别的硬盘
目前负债150多万
头像
w8852169
帖子: 19
注册时间: 2008-11-16 17:20

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#14

帖子 w8852169 » 2008-11-17 21:27

ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# mkdir /mnt/123
root@ubuntu:~# mount -o loop /media/disk/boot /mnt/123
/media/disk/boot: Permission denied
root@ubuntu:~# mount /media/disk/boot /mnt/123
mount: /media/disk is not a block device

mount the file,It;s no working,My kernel is 2.6.24-21,The livecd's 2.6.24-16,Can it working?
Hero help me.Tell me How do I need to do?
附件
Screenshot.png
头像
yiare
帖子: 19
注册时间: 2008-10-30 17:17

Re: 神啊,搭救我一把吧,我的ubuntu开不起来了

#15

帖子 yiare » 2008-11-17 22:14

我只是一只小菜鸟....
有心无力
:em03
回复