Computing.Net > Forums > Linux > How to start single user mode

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to start single user mode

Reply to Message Icon

Name: satimis
Date: March 29, 2003 at 03:31:11 Pacific
OS: RH7.3
CPU/Ram: PII/256MB
Comment:

Hi all folks,

RH7.3

I need to use "hdparm" in single user mode. Kindly advise how to start it.

Thanks in advance.

B.R.
satimis



Sponsored Link
Ads by Google

Response Number 1
Name: egkenny
Date: March 29, 2003 at 04:07:12 Pacific
Reply:

Booting Single-User Mode
http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-rescuemode-booting-single.html


0

Response Number 2
Name: unixhead
Date: March 29, 2003 at 04:13:35 Pacific
Reply:

One way would be to edit your /etc/innitab file. You should see something similar:

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

Where you see - id:5:initdefault: - change the "5" to the run level number for single-user mode, which in this example is "1".

There's probably an easier way, but this one will work. Actually, "telinit 1" from a command prompt would work (in reference to above example). However, it's wise to check the inittab file first because run levels can be different from 1 distro as compared to another.



0

Response Number 3
Name: satimis
Date: March 29, 2003 at 08:54:48 Pacific
Reply:

Hi,

Thanks for your advice.

# cat /etc/inittab
.......
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
id:5:initdefault:
.....
....

What does "5" (id:5:) represent for

B.Regards
satimis



0

Response Number 4
Name: Dlonra
Date: March 29, 2003 at 17:41:21 Pacific
Reply:

modifying inittab not required:
log out from your GUI
ctrl alt f1 (or f2,f3 -f6)
login as root
init 1
hdparm -tT
init 5

"5" - man inittab


0

Response Number 5
Name: satimis
Date: March 30, 2003 at 02:18:31 Pacific
Reply:

Hi Dlonra,

RH7.3

Thanks for your advice.

# init 1
sh-2.05a# hdparm -tT /dev/hda
.....
.....

end-request: I/O error, dev 03:00(hda),sector 2008 hda:tray open
same I/O error in sectors: 2012, 2016, 2020, 2024, 2028, 2032, 2036, 2040, 2044, 0, etc
4 read ( ) failed: Input/Output error

Maybe there are some other errors on top-screen. I don't know how to move up. PageUp and arrow don't work

This is a ATA66 7,200 rpm 10G hard disc connected to a PCI ATA66 controller card. It has been used for some times. No error has been found during daily operation.

Now I have all important data burnt on CDs.

Have you had any idea to fix this I/O error.

Thanks in advance.

B.Regards
satimis


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How to start single user mode

single user mode www.computing.net/answers/linux/single-user-mode/7108.html

In linux how to get the GUI mode www.computing.net/answers/linux/in-linux-how-to-get-the-gui-mode/20746.html

how to start ftp server www.computing.net/answers/linux/how-to-start-ftp-server/22433.html