LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cant boot suse bc of changed /etc/init.d/boot.local (https://www.linuxquestions.org/questions/linux-general-1/cant-boot-suse-bc-of-changed-etc-init-d-boot-local-486165/)

esyed 09-22-2006 10:32 PM

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

reddazz 09-23-2006 03:36 AM

Have you tried switching to root using "su -" and then editing the file?

esyed 09-23-2006 10:05 AM

from knoppix shell:

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

still cant edit boot.local, says 'readonly' option is set (add ! to override)

reddazz 09-23-2006 11:40 AM

To write to a read only file using vi, do ":w!" and then quit ":q".

esyed 09-23-2006 05:18 PM

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 ?

reddazz 09-24-2006 05:04 AM

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.


All times are GMT -5. The time now is 02:24 PM.