HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to edit the grub file to bring up the system in single user mode?

 
SOLVED
Go to solution
skt_skt
Honored Contributor

is it possible to edit the grub file to bring up the system in single user mode?

is it possible to edit the grub file to bring up the system in single user mode?
here is how my grub config looks.

title Red Hat Enterprise Linux AS-smp (2.4.21-40.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-40.ELsmp ro root=/dev/vg00/lvol1 hda=ide-scsi usb-handoff
initrd /initrd-2.4.21-40.ELsmp.img
6 REPLIES
TwoProc
Honored Contributor

Re: is it possible to edit the grub file to bring up the system in single user mode?

Yes,

From grub, move your arrow key around to the boot configuration that you want to use single user mode on. Then hit "e", from there you can see all of the lines associated with that boot up option. Then, go to the "kernel" line with the arrow keys and hit "e" - go to the end of the line and add a space, then the word "single", and hit escape (I think), now, from the highlighted line that starts with "kernel" once again with the arrow keys, hit "b" for boot.

Should bring you up in single user mode.
We are the people our parents warned us about --Jimmy Buffett
Ivan Ferreira
Honored Contributor

Re: is it possible to edit the grub file to bring up the system in single user mode?

Besides the previous solution, you can add a line like this also:

title Red Hat Enterprise Linux AS-smp (SINGLE) (2.4.21-40.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-40.ELsmp ro root=/dev/vg00/lvol1 hda=ide-scsi usb-handoff single
initrd /initrd-2.4.21-40.ELsmp.img
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: is it possible to edit the grub file to bring up the system in single user mode?

Shalom,

Yes, intervene at the boot prompt, select the kernel line, hit e

add single to the end

then hit b to boot

mount /var
mount /usr

Then vi will work normally for editing the grub.conf file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skt_skt
Honored Contributor

Re: is it possible to edit the grub file to bring up the system in single user mode?

what is the difrence if we add single to both the title and kernel lines?

Looks like adding single to title is optional
Ivan Ferreira
Honored Contributor
Solution

Re: is it possible to edit the grub file to bring up the system in single user mode?

Is just to distinguish from the other entries, for example, you can have:


title Red Hat Enterprise Linux AS-smp (2.4.21-40.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-40.ELsmp ro root=/dev/vg00/lvol1 hda=ide-scsi usb-handoff
initrd /initrd-2.4.21-40.ELsmp.img

title Red Hat Enterprise Linux AS-smp (Single)
root (hd0,0)
kernel /vmlinuz-2.4.21-40.ELsmp ro root=/dev/vg00/lvol1 hda=ide-scsi usb-handoff single
initrd /initrd-2.4.21-40.ELsmp.img


So, in the boot menu, you will have two choices, one for normal boot and one for single user.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: is it possible to edit the grub file to bring up the system in single user mode?

got the right answers.