Always Single user mode
Hi,
I've created Oracle Enterprise 5 Virtual machine. It was running fine but not sure what went wrong and now when ever I reboot the machine, it goes to single user mode. If I enter "init 5" command it boots to multi-user X11 mode without any problem. I checked inittab file and default line has id 5. So it looks OK. What else can be wrong? Thanks, Javed |
The line is the following?
Code:
id:5:initdefault: |
Another thing to check would be /etc/grub/grub.conf make sure nobody accidentally placed a 1 or single in the default boot option on the kernel line.
|
Thanks for reply.
Yes the line is exactly same. I'll monitor the boot screen to look for any error. A newbie question, I added a disk and the filesystem on it got corrupted but I removed the entry from fstab for auto mount. Will this be a still problem? Should I remove the disk? |
It might lead to a labeling conflict (very common with RHEL/Fedora based Distributions) as they use labels rather then direct partition references in FSTAB. so essentially you can have 2 /, 2/var, 2 /tmp and what not, what can conflict things... Change fstab to physical references to avoid that, also ensure the hard drive is the secondary within BIOS.
|
Quote:
Remounting root filesystem in read-write mode: [OK] Mounting local filesystems: [OK] Enabling local filesystem quotas: [OK] Enabling /etc/fstab swaps: [OK] INIT: Entering runlevel: 1 Entering non-interactive startup Starting monitoring for VG VolGroup00: 2 logical volume(s) in volume group "VolGroup00" monitored [OK] Telling INIT to go to single user mode INIT going single user INIT sending process the TERM signal INIT sending process the KILL signal sh-3.2# Do ypu see anything wrong in messages? |
did you check the grub config file as pointed by r3sistance, doesn't look like any thing else is wrong.
|
Quote:
/boot/grub/grub.conf should most probably be your file. See if anyone has passed option to kernel to boot to single user mode. |
Quote:
Code:
#boot=/dev/xvda |
I also see following in /var/log/messages file. Does the "1" in this line mean that system is booting in single user mode?
kernel: Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet 1 |
That's certainly how it looks in post #10; the "1" means single-user mode, or "init 1" - but where's the "1" in post #9? Are you sure that is the correct grub section - is that the entire grub file, and the only grub file?
|
Another thing to check, shutdown the VM and use the following command
"xm create -c <virtualmachinename>" This should allow you to interact with grub, from here you should be able to view the options/lines that are being loaded. |
Quote:
Quote:
|
Quote:
it should show you a line like "kernel /boot/vmlinuz-2.<kernel build> ro root=<partition>" Could you possible put down the exact content of that line here? |
Quote:
> root (hd0,0) > kernel /vmlinuz-2.6.18-92.1.1.0.1.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet > initrd /initrd-2.6.18-92.1.1.0.1.el5xen.img |
All times are GMT -5. The time now is 03:05 AM. |