改动bash_profile以后无法登陆,可否补救?
:cry: 我新装的linux9.0上打算装一个oracle9i。按照指南改动了bash_profile文件内容。当我注销后重新登陆时,报告说会话只存在了10秒,可能是系统安装的问题或者是磁盘消耗尽。我现在无法登陆,是否还有补救的可能? :cry: 进安装界面,把/分区mount上来,修改bash_profile 不好意思,可不可以说得再详细一点!再安装界面怎样mount根目录呀? 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!
页:
[1]