Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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.

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

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

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 errorMaybe 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

![]() |
![]() |
![]() |

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