LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-02-2011, 08:01 PM   #1
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 34

Rep: Reputation: 5
Question 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.
 
Old 10-04-2011, 04:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well that's the same thing. it's the kernel parameters.
 
  


Reply

Tags
grub config


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't boot in single user mode with GRUB on RedHat 9.0 stwo232 Linux - General 1 04-12-2006 07:18 PM
single user mode using grub dogma Linux - Newbie 4 09-02-2004 03:49 PM
single user mode in GRUB isaac_linux Linux - General 1 04-03-2004 10:27 AM
Single User Mode From GRUB medamnit Linux - Newbie 3 05-20-2002 06:08 AM
grub boot loader and single user mode midnightcommander Linux - General 1 04-02-2001 05:12 AM


All times are GMT -5. The time now is 12:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration