Operating System - Linux
1827806 Members
2185 Online
109969 Solutions
New Discussion

single user mode with Raid-1

 
SOLVED
Go to solution
hangyu
Regular Advisor

single user mode with Raid-1

I have a RH server with Raid-1 , I want to go to the single user mode , the GRUB of the kernel is "kernel/vmlinuz-2.4.21-4.EL ro root=/dev/md0" , I tried add "root=LABEL=/ single " to the end of GRUB but fail , I try that it is sucessful before installed the Raid-1 ( before installed the Raid-1 , no "root=/dev/md0" in GRUB ) , can suggest how to go to the single user mode now ? thx
3 REPLIES 3
Huc_1
Honored Contributor
Solution

Re: single user mode with Raid-1

One way of doing this is as follows.

modify you specific kernel line in the file /boot/grub/menu.lst

ex: << just that an examples from small system >>

FROM....
title Fedora Core (2.6.18-1.2849.fc6)
root (hd0,4)
kernel /vmlinuz-2.6.18-1.2849.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2849.fc6.img

TO....

title Fedora Core (2.6.18-1.2849.fc6)
root (hd0,4)
kernel /vmlinuz-2.6.18-1.2849.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet 1
initrd /initrd-2.6.18-1.2849.fc6.img


--------------

In short just add a 1 at end of line

then reboot this should get you in single user mode ...

Do not forget to take out the 1 when you are finished so that at next reboot this does not boot once again in single user mode

enjoy life

Jean-Pierre Huc
Smile I will feel the difference
hangyu
Regular Advisor

Re: single user mode with Raid-1

the reply,

Now , my server is unable to boot after change some config files so I am urgently want to boot to single user mode , I am go to the O/S at the moment , can suggest how to go to single user mode ? if I have installation CD dics1 , can use it to boot to single user mode ? thx
George Liu_4
Trusted Contributor

Re: single user mode with Raid-1

Yes.

When you get the boot screen,
add single or 1 at the end.

If the root= parameter is correct, it send you in the single mode.

LABEL=/ means you aleady labeled / to some path
You may use e2label to label a disk