Unix Technical Forum

Question on installing a bootloader

This is a discussion on Question on installing a bootloader within the Linux Operating System forums, part of the Unix Operating Systems category; --> I have the need to clone a load of HD's, not all the same size. The problem I have ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 06:12 AM
Bob Coates
 
Posts: n/a
Default Question on installing a bootloader

I have the need to clone a load of HD's, not all the same size. The problem
I have is installing a bootloader on the disk, either LILO or GRUB, when the
disk I'm installing it to isn't the primary master (hda).

The disk is connected as secondary master (hdc) with the machine booting off
a working system disk (hda).
I want to install the bootloader onto hdc, such that when I then connect it
as hda, it will boot.
I can't get either LILO or GRUB to work, GRUB it seems will try and find
stage2 on hdc, which isn't there. LILO I think I'm building the lilo.conf
file correctly but when I boot I just get 'LI' and it hangs.

Anybody done this before and can help? I've googled away but found nothing.

Bob Coates


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 06:12 AM
Bit Twister
 
Posts: n/a
Default Re: Question on installing a bootloader

On Thu, 30 Sep 2004 22:47:34 +0100, Bob Coates wrote:
> I have the need to clone a load of HD's, not all the same size. The problem
> I have is installing a bootloader on the disk, either LILO or GRUB, when the
> disk I'm installing it to isn't the primary master (hda).
>
> The disk is connected as secondary master (hdc) with the machine booting off
> a working system disk (hda).
> I want to install the bootloader onto hdc, such that when I then connect it
> as hda, it will boot.
> I can't get either LILO or GRUB to work, GRUB it seems will try and find
> stage2 on hdc, which isn't there. LILO I think I'm building the lilo.conf
> file correctly but when I boot I just get 'LI' and it hangs.
>
> Anybody done this before and can help? I've googled away but found nothing.



Hmmm,
http://groups.google.com/advanced_group_search
eJJ4d.18911$QJ3.18075@newssvr21.news.prodigy.com in the Message ID box

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 06:13 AM
JohnInSD At san DOT rr dot COM
 
Posts: n/a
Default Re: Question on installing a bootloader


The current release of LILO (22.6) should do the trick. Older versions
(before 22.5) cannot, without serious tweaking of the config file.

Just be sure the boot sector (boot=), sector map file (map=) and your kernel &
initrd (image=, initrd=) are all on /dev/hdc when you do the installation.


--John


http://lilo.go.dyndns.org/pub/linux/lilo

(binary and source)



On Thu, 30 Sep 2004 22:47:34 +0100, "Bob Coates"
<bob@g4dih.remove_to_reply.co.uk> wrote:

>I have the need to clone a load of HD's, not all the same size. The problem
>I have is installing a bootloader on the disk, either LILO or GRUB, when the
>disk I'm installing it to isn't the primary master (hda).
>
>The disk is connected as secondary master (hdc) with the machine booting off
>a working system disk (hda).
>I want to install the bootloader onto hdc, such that when I then connect it
>as hda, it will boot.
>I can't get either LILO or GRUB to work, GRUB it seems will try and find
>stage2 on hdc, which isn't there. LILO I think I'm building the lilo.conf
>file correctly but when I boot I just get 'LI' and it hangs.
>
>Anybody done this before and can help? I've googled away but found nothing.
>
>Bob Coates
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 06:13 AM
7
 
Posts: n/a
Default Re: Question on installing a bootloader

Bob Coates wrote:

> I have the need to clone a load of HD's, not all the same size. The
> problem I have is installing a bootloader on the disk, either LILO or
> GRUB, when the disk I'm installing it to isn't the primary master (hda).
>
> The disk is connected as secondary master (hdc) with the machine booting
> off a working system disk (hda).
> I want to install the bootloader onto hdc, such that when I then connect
> it as hda, it will boot.
> I can't get either LILO or GRUB to work, GRUB it seems will try and find
> stage2 on hdc, which isn't there. LILO I think I'm building the lilo.conf
> file correctly but when I boot I just get 'LI' and it hangs.
>
> Anybody done this before and can help? I've googled away but found
> nothing.
>
> Bob Coates


I'm a bit of newbie, but here's what I've been doing to make
booting indistructable under all normal practical circumstances.
Hope it helps.

1. Get a copy of mepis LiveCD distro
2. Boot up on CD and then go into the Mepis System center it to install
grub on any and all partition you may want devices to boot from.
Before doing that, make sure you back up the /boot/grub/menu.lst file
in those partitions / devices.
3. While booted under Mepis LiveCD distro
configure the menu.lst files of the newly installed grub's
/boot/grub/menu.lst file to heart's content, and keep a backup
copy somewhere just for safety.
4. If you are keen, you can use dd commnd to copy the first
one or two sectors of a disk to recover from even complex disasters.

Voila! Just about every conceivable normal boot
partion mistake disaster
can be recovered from because you just boot
with the Mepis liveCD distro and re-install the grub and
edit/restore the relevant menu.lst file.

I've got ten distros booting off one disk using
this method.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 06:14 AM
tom
 
Posts: n/a
Default Re: Question on installing a bootloader


"Bob Coates" <bob@g4dih.remove_to_reply.co.uk> wrote in message
news:1096580643.mrEjZTlvy55jDiugIVAfHA@teranews...
> I have the need to clone a load of HD's, not all the same size. The

problem
> I have is installing a bootloader on the disk, either LILO or GRUB, when

the
> disk I'm installing it to isn't the primary master (hda).
>
> The disk is connected as secondary master (hdc) with the machine booting

off
> a working system disk (hda).
> I want to install the bootloader onto hdc, such that when I then connect

it
> as hda, it will boot.
> I can't get either LILO or GRUB to work, GRUB it seems will try and find
> stage2 on hdc, which isn't there. LILO I think I'm building the lilo.conf
> file correctly but when I boot I just get 'LI' and it hangs.
>
> Anybody done this before and can help? I've googled away but found

nothing.
>
> Bob Coates
>
>


What is your boot parameter in lilo.conf

if it is boot = /dev/hda2 or some such that is the answer
as you are trying to boot further down the drive than is
possible. I had this same problem and that was the
reason. I believe it says somewhere that LI means that
the boot sector cant be reached.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com