LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2004, 02:19 AM   #1
bwall
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
Reconfig Lilo after switch drives help please


Most of this was deep in another thread, but I was not getting any responses. I was thinking someone could tackle this problem. Here's a summary of what is going on.

My slave drive has linux on it and I can only get to it by the linux boot disc. Windows will not recognize the slave drive. Windows in on my master drive (which was changed form the slave) and reformatted due to problems to new XP from XP.

I can get into linux as root or my user by the linux boot disc. From root I should be able to change the lilo config correct. I can't seem to change the file from inside of it??? And I'm in the system as root.

Here's my current lilo boot file:

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

image=/boot/vmlinuz-2.4.18-14
label=linux
initrd=/boot/initrd-2.4.18-14.img
read-only
append="hdc=ide-scsi root=LABEL=/"

other=/dev/hda1
optional
label=DOS

I was thinking of changing the some things to get lilo
to pop up on computer startup. Master is XP and slave is
now redhat Linux. So I was thinking that I could change the
hda setup now that the drives have been switched.

default=linux
boot=/dev/hda1

other=/dev/hda
optional
label=DOS

Does anyone think that this will work, or have any other ideas?
I need to get lilo to prompt for OS at startup. It is no longer
working because I switched my drives.
I tried to physically move the drives back to original (Linux drive
as master and XP as slave, but it asks for a bootmajic rescue disks
if I remember correctly. Anyways it wouldn't work with the bootmajic disk in either) So how do I pull this off with Linux drive as a slave now and XP as the master?

Thanks Bob
 
Old 07-21-2004, 02:50 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
I don't think it would work because /dev/hda and /dev/hda1 for your partitions will clash. Your windows would be /dev/hda1 and your Linux partition would be something like /dev/hdb1 if it's on a seperate drive. To check the exact partitions that your linux is using, you can run "df" on a console and the partitions and free space will be shown. When you have made the right changes to your /etc/lilo.conf, you will have to run /sbin/lilo as root.
 
Old 07-21-2004, 03:04 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Also you have to leave the "boot=/dev/hda" part as it is in the original lilo.conf and add "root=/dev/hdxx" . Your lilo.conf could look like the following,

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/vmlinuz-2.4.18-14
initrd=/boot/initrd-2.4.18-14.img
label=linux
root=/dev/hdb1
read-only
append="hdc=ide-scsi root=LABEL=/"
other=/dev/hda1
label=windowsxp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to switch from Lilo to Grub Ricky2004 Linux - Software 2 04-14-2005 01:23 PM
using lilo want to switch to grub tylerb Linux - Newbie 1 02-24-2004 10:00 PM
Switch Boot Loader from Grub to Lilo l2g Linux - Newbie 1 02-15-2004 10:34 AM
switch to lilo boot system on RedHat7.3 gadave Linux - General 4 06-12-2003 06:25 PM
switch from GRUB to LILO C++freak Linux - General 13 10-31-2002 11:57 PM


All times are GMT -5. The time now is 01:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration