Click to See Complete Forum and Search --> : Linux Redhat 7.3 Shut down and Lilo


strudl
01-16-2004, 03:53 AM
Hello All,

I am running Linux Redhat 7.3 with KDE. I have 3 questions for your help.

1) When I shut down (logout : turn off computer) the machine still stays on unless I flip the power source off, what am I doing wrong here ?

2) I set the the install up using 16 color, now I need to switch it to 24
Any idea how ?

3) On the same computer, I have a disk running Windows 2000, the Linux OS is master and the Windows 2000 is slave, some one suggest I modify Lilo to get to Win2k, some one suggest I but WinAxe, I found LiLO alright
but been a newbie , I am reluctant to mess around with it. I will appreciate a step by step help on what to do. I realize this may be elementary to a lot of people but I have to start somewhere, also in case you are wondering why redhat 7.3, my research application was compiled for it, and will not run on anything else.
Regards

deathadder
01-16-2004, 05:26 AM
1) As root try a 'modprobe apm' in a shell of your choice, bash for instance.

2) You could always open up XFree config file in /etc/X11/ and change the settings that way, you can also run xf86cnfig, i believe it is, to change the setting this would be a longer way to do, I'm sure that there is a Red Hat config tool, but as I've never used it I cant help you there. Finally if your running KDE, if you load Control Center, you can change the settings of the monitor, I can't remember where abouts it is but it should be easy enough to find

3) You're going to change you /etc/lilo.conf file, as root open the file in a text editor and add the following lines at the bottom of it

other=/dev/hd*
label=Windows

You need to change the * to the correct letter, to find what partition it is, that is if you dont already know it, run fdisk -l (thats a small L), one of the partitions will be labeled as a windows partition


HTH

Edit:
Almost for got, after changing your lilo config file run /sbin/lilo to apply the changes

mdwatts
01-16-2004, 04:58 PM
The first question on poweroff on shutdown has been a hot topic lately. Try searching the JL forums for 'poweroff' or 'poweroff shutdown' to find plenty of suggestions as I know I have posted a few myself over the last couple of days.

For second

Edit /etc/X11/XF86Config or XF86Config-4 and change the DefaultDepth to 16 in the Screen Section.


Section "Screen"
Identifier "Screen[0]"
Device "FX 5600[0]"
Monitor "Viewsonic[0]"
DefaultDepth 16
Subsection "Display"
Depth 8
Modes "640x480" "800x600" "1024x768" "1280x1024"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1800x1440" "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "640x480" "800x600" "1024x768" "1280x1024"
ViewPort 0 0
EndSubsection
EndSection

strudl
01-17-2004, 08:53 AM
I tried the modprobe apm, apparently I don't have it. Any idea where I might find it ?

mdwatts
01-17-2004, 10:15 AM
Originally posted by strudl
I tried the modprobe apm, apparently I don't have it. Any idea where I might find it ?

Did you try the JL forum search as I previously suggested?

I don't have apm.o loading either (not that I know of), but I finally found that

acpismp=force apm=power_off

powers off my dual AMD system. (FINALLY - yeah!!)

apm=realmode_power_off

Is one that might work. They would go in your bootloader config.

For Lilo

append="apm=realmode_power_off"

strudl
01-17-2004, 02:27 PM
I modify LiLo alright, and it gave me a windows option, but window would not start, could it be its because its on a hard drive that is slaved to the Linux hard drive ?

mdwatts
01-17-2004, 03:20 PM
Originally posted by strudl
I modify LiLo alright, and it gave me a windows option, but window would not start, could it be its because its on a hard drive that is slaved to the Linux hard drive ?

Could you please post the contents of /etc/lilo.conf so we can have a look and also your HD setup (partitions and which one Windows is installed on)?

i.e.

/dev/hdb1 (for the first partition on the primary/slave HD)

<edit>

Forgot about this .... if Windows is on the second HD (hdb), then you will likely need to add

other=/dev/hdb1
label = win
map-drive = 0x81
to = 0x80
map-drive = 0x80
to = 0x81

to /etc/lilo.conf (then run /sbin/lilo as root).

strudl
01-18-2004, 02:28 AM
Here is what Lilo looks like

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image="/boot/vmlinuz-2.4.18-3bigmem"
label="linux"
initrd="/boot/initrd-2.4.18-3bigmem.img"
read-only
root="/dev/hda2"
append="hdd=ide-scsi"

other=/dev/hdb2
label=Windows
map-drive=0x81
to = 0x81
map-drive =0x80
to = 0x81

and here is what hardware manager says:
Device Start End Size(MB) Type
/dev/hda
hda1 1 6 47 MB ext3
hda2 7 2180 17053 ext3
hda3 2161 2434 1992 linux swap
/dev/hdb
1 1 <1 Free Space
hdb1 1 39 306 ext2
40 40 <1 Free Space
hdb2 40 2657 20536 ntfs
hdb3 2656 4865 17320 Extended
2658 2658 <1 Free space
hdb5 2658 4865 17320 ntfs
4866 4866 4 Free space

I might add that 2 versions of windows are running on the 2 ntfs partitions

trouble.ted
01-18-2004, 02:44 AM
attention techs,

Would It be possiable to switch the ide cables, boot to linux from a floppy, then re-config the mbr? so that the master boot and loader (lilo) is now on the windows disk? than you would have to delete the old mbr on linux drive(d,hdb), and set up a new mbr on the win drive (c,hda)

would this work?

Ted

mdwatts
01-18-2004, 07:49 AM
Originally posted by trouble.ted

Would It be possiable to switch the ide cables, boot to linux from a floppy, then re-config the mbr? so that the master boot and loader (lilo) is now on the windows disk? than you would have to delete the old mbr on linux drive(d,hdb), and set up a new mbr on the win drive (c,hda)

would this work?


It would work, but would be a lot of trouble as booting Windows from hdb should work if the Linux bootloader is setup correctly.

mdwatts
01-18-2004, 07:53 AM
Originally posted by strudl
Here is what Lilo looks like

other=/dev/hdb2
label=Windows
map-drive=0x81
to = 0x81
map-drive =0x80
to = 0x81

I might add that 2 versions of windows are running on the 2 ntfs partitions

Is that what /etc/lilo.conf looked like before or did you just add the map-drive commands?

Is hdb2 (second primary partition) correct?

Where does the 2nd Windows version reside? hdb5?

other=/dev/hdb2
label=Windows 1
map-drive=0x81
to = 0x81
map-drive =0x80
to = 0x81

other=/dev/hdb5
label=Windows 2
map-drive=0x81
to = 0x81
map-drive =0x80
to = 0x81

strudl
01-18-2004, 07:30 PM
Yes ! that works, I am now able to get to windows. I am really pleased with Linux. Thanks to all the guys for their comments.

trouble.ted
01-19-2004, 12:50 AM
It would work, but would be a lot of trouble as booting Windows from hdb should work if the Linux bootloader is setup correctly.

I know, I'm just being a bone-head:D

Ted