LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-20-2003, 05:29 PM   #1
eddie2go
LQ Newbie
 
Registered: Sep 2003
Location: Germany
Distribution: SuSe Linux 7.3
Posts: 10

Rep: Reputation: 0
Move LILO off floppy onto "/boot"


Hi folks,
I've just reinstalled Linux for the third time. A little history might be helpful. I have a system that boots W2K Pro from a SCSI hdd and have a IDE hdd as second hdd. I installed Suse 7.3 to the IDE with no problems and chose to install LILO into the "/boot" partition. I got tired of going into the BIOS to change the boot options so I tried some boot managers (BootMagic, OS Selector 2000, etc). While the programs detected the Linux partitions during the installation, none would boot the OS. In fact, OSL2000 would just reboot when I chose Linux. I figured the problem was something to do with the OS's being on different hdd's or bus types so I made room on the SCSI hdd and installed Linux there.

However, during the Linux installation I was forced to install LILO onto a floppy disk. I don't understand the reason, but the option to install into "/boot" was not included. When I manually input a full path (/dev/sda6/boot) a message after the installation is mostly over states that LILO was unable to install. I wasn't offered the option to create a boot disk, and Linux wouldn't boot. So I started over. . . again.

I now have Linux installed, with LILO on a boot disk, but I still want to dualboot. So how can I move the LILO from the floppy into the "/boot" partition?

Thanx in advance for any help y'all can offer.

Eddie
 
Old 09-20-2003, 06:49 PM   #2
ForgiveR
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake, RedHat, Slack
Posts: 4

Rep: Reputation: 0
Red face

"boot" is not located at /dev/sda6/boot, /boot is *mounted* at /dev/sda6.

You might try to either install to the MBR of you boot drive, (which in this case may be /dev/sda), or the first block of the "boot" partition. But on a multi-boot system with an unusual partiton layout (say one one that includes Windows) you may run into issues. I could not say for sure...

Can anyone explain more?

ForgiveR
 
Old 09-21-2003, 01:13 AM   #3
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
I have been dual booting with windows XP and this is how my lilo.conf looks like:

boot=/dev/hda
map=/boot/map
install=/boot/boot-bmp.b
prompt
timeout=500
lba32
default=WinXP

image=/boot/bzImage
label=Gentoo
read-only
root=/dev/hda8

other=/dev/hda2
label=WinXP

you just have to change your partitions and after that run /sbin/lilo as root. Hope it helps

Last edited by linksocc; 09-21-2003 at 01:15 AM.
 
Old 09-21-2003, 03:05 AM   #4
eddie2go
LQ Newbie
 
Registered: Sep 2003
Location: Germany
Distribution: SuSe Linux 7.3
Posts: 10

Original Poster
Rep: Reputation: 0
Hiya ForgiveR & linksocc,

ForgiveR:
I forgot to mention that I want to stay away from installing the LILO into the MBR, as I've heard some horror stories about getting it out of there when you want to remove Linux from a hdd that has Windows on another partition (dualboot).

I've included what is currently written in my /etc/lilo.conf file:

disk = /dev/sda
bios =0x80
disk =/dev/sdb
bios =0x81
boot =/dev/sda5
vga =normal
read-only
menu-scheme = Wg:kw:Wg:Wg
lba32
prompt
timeout = 80
message = /boot/message

image = /boot/vmlinuz
label =linux
root =/boot/sda7
initrd =/boot/initrd
append ="enableapic hdc=ide-scsi"

image = /boot/vmlinuz.suse
label =failsafe
root =/boot/sda7
initrd =/boot/initrd.suse
append ="disableapic hdc=nadma=off"
optional

other =/dev/sda1
label =nt

image =/boot/memtest.bin
label =memtest86

So I'm wondering: if I run /sbin/lilo where is it going to config and store the new LILO file? I mean, the above info on the hdd partitions looks correct for "boot=/dev/sda5" being the /boot and what-not.
 
Old 09-21-2003, 04:34 AM   #5
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
Note: All of your "horror stories" are crap. I have been installed Linux with LILO on MBR several times, and that haven't make any problems to my system after the erasing the Linux partitition.
LILO can be successfuly uninstaled via -u option. Example: lilo -u. In that case it returns the original peace of MBR on it place at the beginning of the harddisk. The other option is to use fdisk to write it's own MBR. Example: fdisk /MBR. That works too. I've tried both and they all work fine.
 
Old 09-21-2003, 06:26 AM   #6
eddie2go
LQ Newbie
 
Registered: Sep 2003
Location: Germany
Distribution: SuSe Linux 7.3
Posts: 10

Original Poster
Rep: Reputation: 0
ivanatora,
whether or not YOU had problems with a LILO installation to the MBR is immaterial; I have either heard, read, or am aquainted with others who have had problems. And these usually pertained to dualbooting with a MS OS. After the Linux OS and files are removed the MS will not boot.

Regardless, my intention is to alleviate the possibility of problems. And in this case an option is offered that would do that: install the LILO into /boot.

However, as previously stated during the Linux installation that option was not available.

I did follow linksocc's advice and checked all the partition names (sda5, sda7, etc) and confirmed which was which, like "/boot" is sda5, "/" is 7. Running the /sbin/lilo created the file, but I'm still not sure where it has been stored for the boot process. Also, I've installed Acronis OSL2000, and at this time all OS's boot correctly into their respective user environments.

On a different note, I have noticed one thing: after I choose Windows 2000 Pro in 0SL2000 the W2K boot process starts up then comes to a MS OS selection screen (black BG, white letters). It asks me what I want to start, "Microsoft Windows 2000 Professional" or "Windows 2000 (default)". I have no clue where this so-called "default" W2K came from. I've checked the boot.ini file and there is only the directive to "MS W2K Professional". I have no idea how to get rid of the "default" setting.
 
Old 09-21-2003, 07:44 AM   #7
ForgiveR
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake, RedHat, Slack
Posts: 4

Rep: Reputation: 0
As I understand it you can only have one boot loader installed. That boot loader goes onto the first block of you hard disk and is started when your bios attempts to start the operating system. Once the boot loader is started, it continues booting from there as configured. In the case of Windows 2000 it allows you to start "Windows 2000". In the case of Lilo it allows you to start whatever it is configured to start. That boot loader either works with other operating systems or it does not. The issue for you is which boot loader do you want to use? If you use Lilo, then it will work fine to start Linux regardless of where you tell it to boot from in lilo.conf. MBR or /boot. I cannot say the same for the Windows boot loader.

So, you really either replace the Windows 2000 boot loader with Lilo and see if it works or you might try the following...
http://www.enterprisedt.com/publications/dual_boot.html

As long as you create a boot disk for Windows 2000 you should be able to get back into your Windows operating system even if Lilo does not work. Personally I have had zero problems dual booting with Windows all the way up to NT4.

Good luck, and I say go for it. Linux is much more flexible and useful than Windows.

ForgiveR
 
Old 09-21-2003, 02:15 PM   #8
linksocc
Member
 
Registered: Jul 2003
Location: US
Distribution: Mandrake 9.0 1st/9.1 2nd/Gentoo 1.4 now
Posts: 313

Rep: Reputation: 30
The difference between lilo and the windows boot loader is that lilo get in the mbr and windows boot loader just in the windows partition, try and write lilo to the mbr and if it doesn't work just pop in your windows installation cd and get to the repair console and type FIXMBR and it would erase lilo and boot directrly to windows

Last edited by linksocc; 09-21-2003 at 02:16 PM.
 
Old 09-21-2003, 03:19 PM   #9
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can have one bootloader per hard disk, so if you have three hard drives you can have LILO on one hard drive, GRUB on the other hard drive, and Windows boot loader on the third hard drive.

When /sbin/lilo add the verbose command if your not sure where lilo is installing itself. Theres other commands to for lilo, so check the man pages.

To make it easier, install lilo on th IDE hard drive. Then you don't change much of your lilo configuration file. You may have to use drive mapping.
 
Old 09-22-2003, 02:57 PM   #10
eddie2go
LQ Newbie
 
Registered: Sep 2003
Location: Germany
Distribution: SuSe Linux 7.3
Posts: 10

Original Poster
Rep: Reputation: 0
Thanx for the help guys.

Electro, I really would like to keep the Linux OS on my IDE hdd. If I reinstall there and allow LILO to install into the MBR, will it detect the Windows on the SCSI bus when I change the BIOS boot order? Right now its: A, SCSI, then C (IDE). To be able to boot from the IDE I'll have to change it to detect IDE first, SCSI later. Can someone post a complete example lilo.conf that has a successful dual boot system?
 
Old 09-28-2003, 07:53 AM   #11
webartist
LQ Newbie
 
Registered: Dec 2002
Location: Brasil
Posts: 2

Rep: Reputation: 0
Quote:
Thanx for the help guys.

Electro, I really would like to keep the Linux OS on my IDE hdd. If I reinstall there and allow LILO to install into the MBR, will it detect the Windows on the SCSI bus when I change the BIOS boot order? Right now its: A, SCSI, then C (IDE). To be able to boot from the IDE I'll have to change it to detect IDE first, SCSI later. Can someone post a complete example lilo.conf that has a successful dual boot system?
Well,

I think for a newbie it s hard for any new income Linux users face that kind of problem. I just installed MANDRAKE last night into an - old hd - and had installed into my new one Barracuda 7.200 rpm windows xp. So two HAR-D-RIVES for two different systems. To me it s not important who comes as User or Slave - I would like to have both loading by the time I choose wich one to work with. I surfed around and no REAL document it s easily found! Let s say with this we can build a Site with a tutorial for incoming users getting problem with 2 OS into different har-d-rives.

I am just expecting to read the answer for the above friend as long as I still searching for it outside and if I got it ... be sure I will write it here !

Webartist

Last edited by webartist; 09-28-2003 at 08:19 AM.
 
  


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
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
move and resize "/" partition - lilo ? enryfox Mandriva 3 04-28-2005 04:56 PM
Redhat 9 Boot Stalls after line "Floppy drive(s): fd0 is 1.44M" nevyn738 Linux - Laptop and Netbook 0 04-02-2004 05:34 PM
dual boot linux, need to setup "another" lilo during installation? sirpelidor Linux - Newbie 3 02-04-2004 10:10 PM
"LI" from boot floppy? Can't load XP or Linux. Damaged MBR or boot sector or ...? SparceMatrix Linux - General 10 09-27-2002 01:20 PM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration