免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3931 | 回复: 12
打印 上一主题 下一主题

紧急求救==ubuntu7.10 启动不了了,好像是fstab坏了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-04 20:15 |只看该作者 |倒序浏览
郁闷啊,弄了一整天也没弄好,没办法了

是这样的:
早上启动的时候,GRUB之后,到进度条那里,进度只有一丝,就停了,再也不动了。
重启,进入 recovery 模式,启动时,一堆I/O错误(我硬盘本来就有点问题),然后出现: ALERT! /dev/disk/by-uuid/58d566d5-ae1e-462a-ac6a-f9192ac79daf  does not exist. Dropping to a shell!
我想到昨天动了下 fstab 文件,应该是改乱了,没改回来。想去修改,但是在这个模式里不能修改。

网上说,可以进入单用户模式,去修改,不过进去后文件是只读的,要先重新挂载。照做了,但是没进得去,还是 Dropping to a shell.在这个 shell 里看到,/dev/disk 里只有少了几个盘,更衰的是安装 ubuntu 的那个盘 hda9 和 swap 盘看不到。不知道问题是不是就出在这里,是不是硬盘出了毛病??

又从网上看到,可以用 rescue 盘修复。我没有rescue盘,但有人说可以用安装盘在安装的时候输入 linux rescue ,一样可以进入修复模式。然后可以 chroot 到 /mnt/sysimage (该模式将原系统自动挂载到这个目录),再在这里面就可以修改 /etc/fstab 了。但是问题来了:ubuntu 7.10 安装方式是先用光盘进入 live 的桌面后,以图形化窗口安装的啊,在哪里输入 linux rescue 啊????

[ 本帖最后由 JasonXZ 于 2008-9-4 20:24 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-09-04 21:18 |只看该作者
原帖由 JasonXZ 于 2008-9-4 20:15 发表
但是问题来了:ubuntu 7.10 安装方式是先用光盘进入 live 的桌面后,以图形化窗口安装的啊,在哪里输入 linux rescue 啊????

就在那个live桌面环境。不就可以查看硬盘状况,也可以挂载上修改fstab

论坛徽章:
0
3 [报告]
发表于 2008-09-04 21:39 |只看该作者
我突然有点领悟,你说的对。其实所谓的 rescue 模式,也就不过是一个可以操作的 linux 环境,现在进入 live CD 跟它是一样的。
但是,我在这个环境里,用 fdisk -l 不成功,找不到 hda ,这是什么意思???

论坛徽章:
1
寅虎
日期:2015-01-23 02:35:47
4 [报告]
发表于 2008-09-04 21:52 |只看该作者
fdisk -l任何盘都看不到?

论坛徽章:
0
5 [报告]
发表于 2008-09-04 21:58 |只看该作者
都看不到。命令执行后什么都没输出。
试图挂载时,说找不到 hda (大体这个意思)

但是在打开的文件夹左侧能看到个别 ntfs 盘,包括 WIN 盘。

论坛徽章:
1
寅虎
日期:2015-01-23 02:35:47
6 [报告]
发表于 2008-09-04 21:59 |只看该作者
一般rescue模式后以前系统会挂在/mnt/sysimage 下
再chroot给挂上来

论坛徽章:
0
7 [报告]
发表于 2008-09-04 22:00 |只看该作者
我知道,但我没有 rescue 盘,只有一个安装盘。

论坛徽章:
0
8 [报告]
发表于 2008-09-04 23:16 |只看该作者
难道分区表被破坏了????

论坛徽章:
0
9 [报告]
发表于 2008-09-04 23:19 |只看该作者
也许ubuntu 的安装盘比较特殊。

有U盘吧,如果电脑支持USB启动,可以试试liveUSB,是一种基于U盘的live系统
slax就有这种版本的,大概200多M吧

http://www.slax.org/

论坛徽章:
0
10 [报告]
发表于 2008-09-05 11:02 |只看该作者
Now, I am in the system booting with 安装盘. Sorry that I must write in English.

In this mode, I run some order, and the results are like these:
==============================================================================
ubuntu@ubuntu:/$ sudo fdisk /dev/hda

The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Unable to read /dev/hda

ubuntu@ubuntu:/$ sudo fdisk /dev/hda1

The number of cylinders for this disk is set to 1219.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda1: 10.0 GB, 10034809344 bytes
255 heads, 63 sectors/track, 1219 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6f20736b

This doesn't look like a partition table
Probably you selected the wrong device.

     Device Boot      Start         End      Blocks   Id  System
/dev/hda1p1   ?       48437      119493   570754815+  72  Unknown
Partition 1 does not end on cylinder boundary.
/dev/hda1p2   ?       10501      131013   968014120   65  Novell Netware 386
Partition 2 does not end on cylinder boundary.
/dev/hda1p3   ?      116395      236907   968014096   79  Unknown
Partition 3 does not end on cylinder boundary.
/dev/hda1p4   ?      179626      179629       27749+   d  Unknown
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

Command (m for help): sudo fdisk /dev/hda
Building a new sun disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


Command (m for help): p

Disk /dev/hda1 (Sun disk label): 255 heads, 63 sectors, 1219 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Flag    Start       End    Blocks   Id  System
/dev/hda1p1             0      1213   9743422+  83  Linux native
/dev/hda1p2  u       1213      1219     48195   82  Linux swap
/dev/hda1p3             0      1219   9791617+   5  Whole disk

==============================================================================
What's wrong with it??

BTW, I can mount the WINXP partition and it succeed:
$ mount -t vfat /dev/hda1 mnt/win

[ 本帖最后由 JasonXZ 于 2008-9-5 12:26 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP