Click to See Complete Forum and Search --> : booting q's


anotherRod
01-19-2001, 10:57 PM
Hi, I've got some questions about booting up Redhat 6.2.
1. How do I get it to boot off my hard disk? As it sits right now I need a boot-disk.
2. How do I add something to the list of things that the system does when it boots. After several weeks of pain in December I got my adsl set-up, now every time I boot I need to log into root and type
ifconfig eth0 0.0.0.0 up
adsl-stop
adsl-start
ifconfig eth0 0.0.0.0 up
in order to get a connection. It was bareable for a while, now it's driving me nuts, so I'd like to add that to the boot-list(?)
3. How can I get out of X? -- I guess I selected the option when I installed to always startX, but now I realize I don't always want it...

Thanks, sorry for all the questions,
Rod

ndogg
01-20-2001, 03:58 AM
1. How do I get it to boot off my hard disk? As it sits right now I need a boot-disk.
Make sure you have LILO installed. At the command line, type "lilo" and make sure /etc/lilo.conf exists and has appropriate entries (man lilo.conf if you're not familiar with it)
2. How do I add something to the list of things that the system does when it boots. After several weeks of pain in December I got my adsl set-up, now every time I boot I need to log into root and type
ifconfig eth0 0.0.0.0 up
adsl-stop
adsl-start
ifconfig eth0 0.0.0.0 up
in order to get a connection. It was bareable for a while, now it's driving me nuts, so I'd like to add that to the boot-list(?)
Write a script and put it in /etc/rc.d/init.d (I think???) and then symlink it into all the /etc/rc.d/rcX.d according to the naming scheme (the numbers in the names, like S99kdm determine the order in which the scripts are executed, the first letter should be the same for all files in that dir) (I'm pretty sure the rc dirs are wrong, someone please correct me, I use Debian and can't remember SysV setup)
the script: <edited>

#!/usr/bin/bash
# Make sure this file has 755 permissions
# (execute permissions)
NAME=adsl
PATH=/sbin:/bin:/usr/sbin:/usr/bin
test -x $NAME-stop -a -x $NAME-start | | exit 0
case "$1" in
start)
echo -n "Starting aDSL connection: $NAME"
ifconfig eth0 0.0.0.0 up
$NAME-stop
$NAME-start
ifconfig eth0 0.0.0.0 up
;;
stop)
echo -n "Stopping aDSL connection: $NAME"
ifconfig eth0 down
;;
restart|reload|force-reload)
echo -n "Restarting aDSL connection: $NAME"
$0 stop
$0 start
;;
*)
echo -n "Usage: $0 {start|stop|restart|reload|force-reload}"
exit 1
;;
esac

exit 0
</edited>
3. How can I get out of X? -- I guess I selected the option when I installed to always startX, but now I realize I don't always want it...
ctrl+alt+backspace kills X, but if you're running xdm, kdm, gdm, etc. (basically, any display manager), hit ctrl+alt+Fx (where x is a number 1-6) and this will bring you to the prompt. From there, you can killall xdm (replace xdm with the name of your display manager).

------------------
Too much Sun can give you cancer. Windows break too easily.
Apples/Macintoshes can rot. BSD... sounds too much like LSD.
Penguins are the only animals sophisticated enough to wear a
tuxedo.


Linux, the only one with the Penguin.


http://ndogg.n3.net

[This message has been edited by ndogg (edited 20 January 2001).]

ethereal
01-20-2001, 04:09 AM
1: You have two options to get redhat 6.2 to boot off your hard drive. I'm assuming your duel booting.

You either
A) install a new version of lilo, then add:

lba32

to the /etc/lilo.conf file, You'll probably have to boot off the floppy to set this up.

Run lilo to put the changes into effect.

B) create a small 30 meg or so partition in the VERY beginning of your primary hard drive, and when installing redhat mount it as /boot.


There is one more problem I could think of, if you used diskdrake (Mandrakes partitioning tool) to partition, that's the problem. Usine disk druid or fdisk, which are useable from redhat's install. Or if you have it, partition majic is probably the ideal option.

Sorry I can't help you with the other problems.


[This message has been edited by ethereal (edited 20 January 2001).]