ubuntu无法启动的解决方法

原文地址:http://blog.csdn.net/mayqlzu/article/details/5878117


相关文章

1、grub2 无法修复 Ubuntu启动不了 完美解决----http://wenku.baidu.com/link?url=4cD5DxjWxK9aXk3Rglgb22AfZWIi5T1Q3_k5RaHM-X2kvL1S5zW6R_VUjo_uTpU3afNAl3dLzkGXjM_pERZsgyV56AbmF4sBgTjGK2iSh-e

2、ubuntu 14.04 更新后无法启动----http://bbs.csdn.net/topics/390876759

3、引导异常导致无法正常开机----http://tieba.baidu.com/p/2910461207

4、ubuntu12.04 无法启动----http://zhidao.baidu.com/link?url=ZfZgRPMxkxVzsvXymIXDAw7hpQd7uVNBzcweTUegoWv9qWUcG22fd1wpt8Ng64SwwvFxQhWm492BjmQ8VamhW_


我经常遇到这样的事情:关闭ubuntu系统的时候死机了,只能按电源键了,再次启动的时候就起不来了,起不来的现象还分两种,解决办法也不一样,如下:

 

情况1

现象:具体记不清了,反正是开始检查磁盘,然后报错:unrecoverable error什么的,然后就停在那儿了好像。

解决办法:


For those of you with Wubi problems, here's how to mount your root.disk, and recover your files using a LiveCD:

  1. Boot your computer, enter your BIOS by pressing the key it tells you to press at the first splash screen you come to at startup, put the CD/DVD drive first in the boot sequence, insert your LiveCD, then save the changes, and exit your BIOS.
  2. Your computer should now boot from the CD.
  3. In the Ubuntu setup program, select the preferred language you use, then select the "Try Ubuntu with No Change To My Computer" option.
  4. Once at the Ubuntu desktop, in a Live session, open up Applications->Accessories>Terminal.
  5. Now run:
sudo fdisk -l

sudo mkdir /win

sudo mount /dev/sdxy /win

sudo mkdir /vdisk

sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

	

where the "x" and the "y" in "sdxy" is replaced with the correct HDD letter (starting at  a   of course), and the correct partition number (starting at 1), of the Windows partition your Wubi install is on. The first command will have given you the location.
Once running those commands, open up Places>Computer>Filesystem>vdisk, and you should find the contents of your root.disk in there. Now you can backup your data to external media, and reinstall Ubuntu with Wubi if you like.

You can also try running the 

sudo fsck /win/ubuntu/disks/root.disk

	

 

command to fix any filesystem errors that may be interfering with the boot, if that's the problem.

Hope it helps.

 

 

 

 

 

 

 

 

 

===========================================================================

 

 

情况2

现象:先闪过一个什么提示界面,太快了,看不清楚,然后就是进入grub> 提示符,不动了。

解决办法:

 

WUBI - Ubuntu won't boot; missing root.disk

 

Did this ever happen to you? It sucks right? You simply wished 'you should have installed natively (the old way)'.

So your Ubuntu won't boot because root.disk is missing, then you check out c:/ubuntu/disks , it's not there. (And probably,   disks   directory is not even accessible or is missing too.)   o_O 

So what happened? Your   NTFS filesytem   got corrupted because on many reasons -- primarily, you might had a power interruption.

Is it lost then? I'm not sure but let's hope it didn't. You can try to recover root.disk   by following this steps:
1. Run   command prompt   as Administrator -- needless to say, ' Enter your password '.

2. Run   Check Disk   by typing:   chkdsk c: /f   (change   C:   to your local disk drive)(我的注释:我的ubuntu是装在e:/ubuntu的,所以,我需要检查e盘,我用的命令是 chkdsk e: /r,我用的是/r参数,不是/f参数,/r也是从网上看来的,试过的可以的,/f没试过,估计也可以吧)
NOTE:   There's a big change that a message will show.

 

 


(我的注释:系统可能提示说要不要卸载这个卷,选否,它又问要不要下次启动的时候检查,选择是。重启,进入检查阶段后,可能遇到百分之多少的时候好像死掉了,其实没有,要有耐心多等会儿) Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N) 
Just type   Y   and restart you PC immediately.

3. After it finished checking (and possibly,   repairing ) your disk, make sure to  show your hidden files .

4. Look for your (onced missing)   root.disk   under   c:/found.000   directory and put it back to   c:/ubuntu/disks/ .
NOTE:   Your   swap.disk   could also be inside   found.000 .

 

 


(我的注释:当你想打开found.000的时候,系统可能提示说不能查看,你可以以管理员身份运行cmd.exe,然后用cd命令进入found.000,用move命令将里面的boot, disk, swap三个东西剪切到e:/ubuntu/disks/下,我是装载e盘的,你的可能在其他盘,如果没有disks目录就先手动建一个)
Now, try to reboot your Windows and choose Ubuntu then hope that the recovered file is intact and not corrupted.   ;)

 

 

================================================================================

情况3

现象:我修改了/etc下的某个文件,重启的时候,在过了选择window还是ubuntu的界面之后就黑屏了,硬盘灯闪了一会儿也灭了,按什么都没反应,短按(太短不行,太长就直接关机了,要适中)电源键会短暂出现ubuntu登录界面,就是一行ubuntu的字,下面几个点的那个界面,然后关机。

原因:就是因为改了/etc的某个文件啊,/etc这个目录是比较重要的,不能随便改,即使要改也要做好备份,便于恢复,要是忘了当时怎么改的,那就惨了。

解决办法:

 

参照情况1,从cd启动ubuntu,把“那个ubuntu的”root.disk挂在到现在的这个ubuntu系统下,例如挂载到/vdisk,然后就能看到“那个ubuntu”的系统盘了,把当时的改动还原过来,重启就好了。

 

 

 

参考材料:

http://neosmart.net/forums/showthread.php?t=5004

 

http://creekcodes.blogspot.com/2009/01/wubi-ubuntu-wont-boot-missing-rootdisk.html


ubuntu 14.04 更新后无法启动

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您好!对于Ubuntu无法启动SSH的问题,有几个可能的原因和解决方法供您参考: 1. 确认SSH是否已安装:请在终端中运行以下命令来检查SSH是否已安装: ``` sudo apt list openssh-server ``` 如果结果中显示`openssh-server`已安装,则可以排除此问题。如果没有安装,请使用以下命令安装SSH: ``` sudo apt update sudo apt install openssh-server ``` 2. 确认SSH服务是否已启动:运行以下命令来检查SSH服务的状态: ``` sudo service ssh status ``` 如果显示SSH服务已停止,请使用以下命令启动SSH服务: ``` sudo service ssh start ``` 3. 检查防火墙设置:如果您的Ubuntu系统启用了防火墙,可能会阻止SSH连接。请确保防火墙允许SSH连接。您可以使用以下命令检查防火墙规则: ``` sudo ufw status ``` 如果状态为“inactive”或者显示允许SSH连接的规则,则防火墙不是问题。如果状态为“active”并且没有允许SSH连接的规则,请使用以下命令允许SSH连接: ``` sudo ufw allow ssh ``` 4. 检查SSH配置文件:如果以上步骤都没有解决问题,可能是由于SSH配置文件有误造成的。请使用以下命令编辑SSH配置文件: ``` sudo nano /etc/ssh/sshd_config ``` 确保以下两行没有被注释掉(没有以`#`开头): ``` Port 22 PermitRootLogin yes ``` 保存文件后,重启SSH服务: ``` sudo service ssh restart ``` 如果您仍然无法启动SSH,请提供更多详细信息,以便我们进一步帮助您解决问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值