rc.local hanging my system on reboot
I have freebsd-5.2.1-RELEASE. I had mysql-server installed from ftp ports tree and add mysqld_safe to rc.local. I then installed pico as a request from one of my users. The problem was when pico started, the screen wouldn't refresh. I tried Ctrl + L and still had no luck. I figured a simple reboot might solve the problem. Here is my dilemma. I uninstalled mysql-server and forgot to remove it from rc.local. Now my system hangs on boot searching for mysql.
Is there anyway to disable rc.local on boot? I just need to get in there and remove that line. You would think the command would time out or something, but it doesn't. It just sits there trying to start an non-existing mysql server. |
Boot single user, mount your disks (mount -t ufs -a) and edit away.
Also, rc.local isn't the correct place to start the mysqld from ports. Look in /usr/local/etc/rc.d. There should be an rc script in there for it. You'll likely need to add mysqld_enable="YES" to rc.conf as well. |
I booted single user. I was sent to a prompt
Code:
mountroot> Code:
Root Mount failed: 22 Code:
List of GEOM managed disk devices: |
When I type ufs:ad1s1 it outputs:
Code:
Mounting Root from ufs:ad1s1 Hope this gives some insight. |
Wow ... That doesn't look good *at all* ... Those look like "Your disk is about to die" type messages.
When you let it boot normally it comes up like you would expect (except the mysql part)? At this point, I'd boot the install CD/DVD up and try to get ad1s1a (which I assume is your root filesystem) mounted up. If you can get it mounted, you can just edit the rc.local and remove the mysql start command. If it gives you the same error from the CD ... You may have a deeper problem. |
I had read another post from a different forum claiming that if you use an 80 count IDE cable instead of a 40 count, the problem magically disappears. I found that not to be true. What I did find to work was, with the 40 count cable still in use, I unplugged the cdrom which was my slave device. I was then able to boot into single user mode
Then ran: Code:
mount -t ufs -a Thanks for all your help! |
All times are GMT -5. The time now is 07:40 AM. |