*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mandrake 10.0 Official, Freebsd 5.2.1 mini
Posts: 40
Rep:
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.
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.
Distribution: Mandrake 10.0 Official, Freebsd 5.2.1 mini
Posts: 40
Original Poster
Rep:
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.