QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 669|回复: 3

改动bash_profile以后无法登陆,可否补救?

[复制链接]
发表于 2003-7-8 09:35:11 | 显示全部楼层 |阅读模式
我新装的linux9.0上打算装一个oracle9i。按照指南改动了bash_profile文件内容。当我注销后重新登陆时,报告说会话只存在了10秒,可能是系统安装的问题或者是磁盘消耗尽。
我现在无法登陆,是否还有补救的可能?
发表于 2003-7-8 09:45:31 | 显示全部楼层
进安装界面,把/分区mount上来,修改bash_profile
回复

使用道具 举报

 楼主| 发表于 2003-7-8 10:46:04 | 显示全部楼层
不好意思,可不可以说得再详细一点!再安装界面怎样mount根目录呀?
回复

使用道具 举报

发表于 2003-7-8 14:48:28 | 显示全部楼层
Boot with the CD 1.
Type "linux rescue" at the boot prompt.
Hit enter a few times to get to the command prompt.
Then do the following
#chroot /mnt/sysimage
#cd /home/user
***** NOTE:  if you have a seperate partition for /home, then you need to mount it by "mount /dev/hd* /mnt/sysimage/home"  where /dev/hd* is the partition for /home.*****
#vi .bash_profile

fix the problem and save the file.  Then
CTRL+D
CTRL+D

The system will reboot and hopefully all will be well!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-1 19:20 , Processed in 0.050642 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表