LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-22-2006, 10:32 PM   #1
esyed
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Rep: Reputation: 0
Unhappy cant boot suse bc of changed /etc/init.d/boot.local


I found a link on the web that mentioned how I can speed up my box. It suggested to add
hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda
since I did that and did a reboot. I no longer can boot into suse. on startup the os just hangs. Its same even if i try to login in failsafe mode. I got knoppix, I wanted to comment the line in /etc/init.d/boot.local but I cant coz it says the file can be opened only in read only mode and I dont know how I can login as root and access /mnt/hda3

I am sort of frozen and need to get some imp. work done. Plz help!
(my distro suse was so damn slow, which led me to do this in the beginning).. now it actually backfired!!
 
Old 09-23-2006, 03:36 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Have you tried switching to root using "su -" and then editing the file?
 
Old 09-23-2006, 10:05 AM   #3
esyed
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
from knoppix shell:

cd /mnt/hda3/etc/init.d
su -

still cant edit boot.local, says 'readonly' option is set (add ! to override)
 
Old 09-23-2006, 11:40 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
To write to a read only file using vi, do ":w!" and then quit ":q".
 
Old 09-23-2006, 05:18 PM   #5
esyed
LQ Newbie
 
Registered: Nov 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the suggestions. I know 'vi' pretty well. I think the problem has to do with the way knoppix mounts the linux partition. And this is how I fixed my problem.

- boot knoppix cd
- in a konsole, type
$ su -c
$ fdisk -l
$ mount -o rw /dev/hda3 /mnt
$ cd /mnt
$ vi /etc/init.d/boot.local
$ rm the culprit line (hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda)

shut down & reboot. Boom, back to original state. Well, the above steps recovered the OS, but didnt solve the slow suse distro. thinking of moving to ubuntu or fedora 3 . Any thoughts ?
 
Old 09-24-2006, 05:04 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I've moved this Linux General because I've just realised that it was in the wrong forum. I've noticed that Suse is quite slow to boot up for me as well even with dma enabled. Fedora and Suse are both pretty good so give them a shot.

Last edited by reddazz; 09-24-2006 at 05:05 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Suse linux 10.1]boot.local help AZaraT Linux - Newbie 3 08-17-2006 01:46 PM
Need Suse INIT help - boot hanging ntwkgirl SUSE / openSUSE 1 05-25-2005 01:04 AM
boot hangs after running /etc/init.d/boot.local eddieb Linux - Newbie 2 07-18-2004 06:57 AM
New Suse 9.0 1st boot, error INIT jillyt Linux - Newbie 2 12-04-2003 09:09 PM
changed local net address nfs is hanging at boot spooge Linux - Networking 2 08-20-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:37 PM.

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
Open Source Consulting | Domain Registration