LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   CentOS 5.3 grub - different way to single-user mode (https://www.linuxquestions.org/questions/linux-general-1/centos-5-3-grub-different-way-to-single-user-mode-906119/)

ptrivino 10-02-2011 07:01 PM

CentOS 5.3 grub - different way to single-user mode
 
Thought this post might be useful to other noobs if some experienced folks could confirm the information.

I was trying to boot to single user mode (ahead of *needing to*). In researching this I saw several posts with grub.conf files like this:

root (hd0,0)
kernel /vmlinuz-x.x.x.x ro root=LABEL=/1
initrd /initrd-x.x.x..img

but my CentOS 5.3 'default' (i.e., untouched by noob hands) grub.conf looks like this:

title CentOS (2.6.18-128.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-128.el5
module /vmlinuz-2.6.18-128.el5xen ro root=/dev/VolGroup00/LogVol00 rhgbquiet
module /initrd-2.6.18-128.el5xen.img

- the difference being that the 'kernel' line is now the xen image and the OS I want in single-user mode is on the "module /vmlinuz-2.6....." line. Many of the posts I saw suggest adding '1' or 'single' to the "kernel" line (via the grub boot time interface for a one time execution). What I did was add '1' to the "module /vmlinuz-2.6....." line and it worked.

I hope someone finds this useful.

acid_kewpie 10-04-2011 03:54 AM

well that's the same thing. it's the kernel parameters.


All times are GMT -5. The time now is 05:15 PM.