LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2004, 11:32 AM   #1
finky
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
grub/lilo problem with 2 scsi-disks


i have two scsi-disks in my system and would like to use the second disk as backup system. i have already cloned the files from the first disk and would like to make it bootable now.

the problem is, that i have to change the boot device in the scsi-bios of my adaptec 2940uwpro so that the system knows that i want to boot from my backup-disk, not from my normal disk. but as soon as i change the boot-id to the backup-disk, that disk becomes sda and the old sda gets sdb. this seems to confuse lilo and grub.

with lilo i tried to get around this by using the disk= and bios= options, but it doesn't work, regardless if i declare sdb as 0x80 or sda, i only get a LI.

then i tried grub and installed it to sdb, but if i change the drive-id's and try to boot it i only get a screen full of 'GRUB's.

i don't want to boot from a floppy just to fix this, because that would mean i can't make a backup from the running system. so i'm looking for a sollution where i can (re)install grub or lilo on the second disk on-the-fly if necessary and be still able to boot from it after sda<->sdb changed.

any ideas how this could be done?
 
Old 12-02-2004, 02:41 PM   #2
finky
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
i found a way to install grub on the disk in native mode (even though i'm not so sure why it didn't work in the first place or what i did differently this time). it seems that grub is flexible enough not to care too much about the device-names during installation.

so just a short question that remains: does grub work as long as the needed files are in /boot/grub or is it essential that the files don't change their position? so if i'd delete them and copy them to /boot/grub again, will grub still load?
 
Old 12-02-2004, 08:46 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Gee, here's how your PC boots.

BIOS > boot sector of HD > boot loader > OS (kernel)

Now you can start thinking...
 
Old 12-02-2004, 10:49 PM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
you can also map the drives around with lilo/grub. read the docs for info about that.

sl mritch
 
Old 12-03-2004, 05:44 AM   #5
finky
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Emerson
Gee, here's how your PC boots.

BIOS > boot sector of HD > boot loader > OS (kernel)
maybe you misunderstood my question: the boot-sector is, as the name suggests, a sector. but how does grub find it's own files, e.g. the stage files or the kernels? by reading the files, i.e. knowing the file system structure or by remembering absolute sectors (as lilo did, if i understood it correctly)? because if the addressing is done by sectors i can't move the stage files, even if they end up in the same folder after that.
 
Old 12-03-2004, 06:39 AM   #6
javeree
Member
 
Registered: Jun 2004
Location: Belgium
Posts: 49

Rep: Reputation: 15
As I understand it there are two options for installing grub
1. stage1 /stage2

stage1 is installed on the boot sector, so the BIOS knows where to find it.. The location of stage2 is patched in the stage1 before it gets placed on the boot sector. stage2 understands the filesystem, so it knows where to find menu.lst.

Once installed, you can not move stage2.

2 stage1 / stage1.5 / stage2
stage1 is installed on the boot sector, so the BIOS knows where to find it.. The location of stage1.5 is patched in the stage1 before it gets placed on the boot sector. stage1.5 knows enough of the file system to be able to locate and load stage2 wherever that is.

I don't quite understand the advantage of the second scheme, because you're still stuck with a file (stage1.5) that cannot be moved
 
  


Reply



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
SCSI external cdrom and lilo problem rolandtignor Linux - Software 0 10-13-2005 03:05 PM
2 hard disks red hat loaded but grub problem iwdu15 Linux - Newbie 2 06-09-2005 11:27 AM
GRUB or LILO boot to SCSI drive on SCSI system w/ IDE card mkl838 Linux - General 1 03-06-2005 09:01 PM
Problem with LILO booting XP off SCSI. failure_man Slackware 2 11-28-2004 04:04 PM
LILO Problem (swapped some disks around) mastahnke Linux - General 8 12-06-2002 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:21 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
Open Source Consulting | Domain Registration