LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2004, 09:27 AM   #1
Axion
Member
 
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware 9.1, Gentoo 2004.1
Posts: 153

Rep: Reputation: 30
hdparm oops...can't boot now :(


i was following a guide enabling some hdparm parameters i probably should have, and now I cannot boot...tons of errors while loading shared libraries for agetty. Then it stops saying trying to respawn to fast, pausing for 5 minutes...I never waited the 5 minutes, but I have a feeling my drive is totally screwed up now...I have a lot of important data that I must recover if a reinstall is necessary. Please any advice would be helpful...I'm not sure what to do or where to begin. Thanks.
 
Old 03-29-2004, 10:11 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
first of all, back up your data...

do you have a rescue disk ?
if not there should be a linux rescue disk image on your install cd's
or optionally, download a rescue disk image.

OR, somthing like a live linux cd such as KNOPPIX or Damn-Small-Linux (DSL) would be perfect !

boot your live distro or rescue floppy and copy all your vital data to some other medium..... floppies or a spare hard disk, or if u have KNOPPIX or somthing with cd-writing software you can backup onto CD.

maybe the best thing to do would be to just backup your entire home directory.

anyway, once thats done, you can attempt to fix the damage you caused without worry.

please post exactly all the changes you made to the system that caused this boot error.

(optionally, just re-install, somtimes its faster to re-install)
 
Old 03-29-2004, 10:31 AM   #3
Axion
Member
 
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware 9.1, Gentoo 2004.1
Posts: 153

Original Poster
Rep: Reputation: 30
Thanks for the reply. I copied the entire disk with dd to another drive of the smae size. I am booted in SystemRestoreCd (gentoo-based live cd) right now positng this. I am positive this is hdparm's doing, as I rebooted directly before and after the hdparm changes. The hdparm command I used was:

/usr/sbin/hdparm -d1 -A1 -m16 -u1 -a64 -c1 -X69 /dev/hda
 
Old 03-29-2004, 04:31 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Ahhhh....

SO. you are saying that you entered that command into a shell prompt ?

Any changes you make to hdparm are reset to default on re-boot.

if you entered that command into a bootup config file, like anything in /etc/rc.d/rc.local then simply remove the line and drive will return to stay default dureing boot.


HOWEVER... if you didnt add that line to a bootup config script, then a reboot would have re-set the disk to defaults, and STILL caused a crash.

i havent looked up exactly what you have done, but it seems to me, that you made a bad change to hdparm, which damaged some files.

i think you need to re-install

ask for a second opinion, im no guru.
 
Old 03-29-2004, 04:59 PM   #5
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Code:
       -A     Disable/enable the IDE drive’s read-lookahead  feature  (usually
	      ON by default).
why did you use this flag?? and this was not a good idea either......
Code:
-u     Get/set  interrupt-unmask	 flag  for  the drive.	A setting of 1
	      permits the driver to unmask other interrupts during  processing
	      of  a disk interrupt, which greatly improves Linux’s responsive-
	      ness and eliminates "serial port overrun" errors.	 Use this fea-
	      ture  with  caution:  some  drive/controller combinations do not
	      tolerate the increased I/O latencies possible when this  feature
	      is enabled, resulting in massive filesystem corruption.  In par-
	      ticular, CMD-640B and RZ1000 (E)IDE interfaces can be unreliable
	      (due  to	a  hardware flaw) when this option is used with kernel
	      versions earlier than 2.0.13.  Disabling the IDE	prefetch  fea-
	      ture  of these interfaces (usually a BIOS/CMOS setting) provides
	      a safe fix for the problem for use with earlier kernels.
this is from hdparm man page
 
Old 03-29-2004, 07:50 PM   #6
Axion
Member
 
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware 9.1, Gentoo 2004.1
Posts: 153

Original Poster
Rep: Reputation: 30
thanks for the help...ya i decided to start over...figured its time to use my own kernel with LFS anyway.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost /boot contents. Oops! khader69 Linux - Newbie 2 04-26-2005 06:06 AM
OOPS! overwrote MBR, GRUB wont boot :( slacker9876 Linux - Newbie 4 04-16-2004 06:04 PM
Oops, boot problem exalted Slackware 3 11-11-2003 12:08 AM
oops - screwed up inittab, can't boot kaise Linux - General 3 03-13-2003 10:15 PM
Kernel oops on boot imbert Linux - Software 1 03-10-2003 02:16 PM


All times are GMT -5. The time now is 06:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration