是这样的:
早上启动的时候,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 啊????
http://www.slax.org/作者: JasonXZ 时间: 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 编辑 ]作者: JasonXZ 时间: 2008-09-05 11:28
Another thing:
I could see every partition under Win XP.
Does this mean that the partition table is not wrong?作者: cuci 时间: 2008-09-05 11:31
ubuntu@ubuntu:/$ sudo fdisk /dev/hda1
Command (m for help): sudo fdisk /dev/hda
都看糊涂了作者: JasonXZ 时间: 2008-09-05 12:15
hehe, sorry.
that is my mistake.
I wrongly typed that order after "Command (m for help):"
You can neglect it.