Unix Technical Forum

question on MBR (to verify)

This is a discussion on question on MBR (to verify) within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, Until now I booted my Slack with a floppy. Now I want to boot it directly from harddisk. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 11:47 AM
Huub
 
Posts: n/a
Default question on MBR (to verify)

Hi,

Until now I booted my Slack with a floppy. Now I want to boot it
directly from harddisk. As I read 'man lilo', I understand it says that
'lilo -M' will write lilo to the MBR. Is this a correct assumption?

Thanks

Huub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 11:47 AM
Jacques
 
Posts: n/a
Default Re: question on MBR (to verify)

Huub wrote:
> Hi,
>
> Until now I booted my Slack with a floppy. Now I want to boot it
> directly from harddisk. As I read 'man lilo', I understand it says that
> 'lilo -M' will write lilo to the MBR. Is this a correct assumption?
>
> Thanks
>
> Huub


I'm not sure either, maybe someone will be more accurate than me but
hope this will help.

You should first edit your /etc/lilo.conf and modify

boot=/dev/fd0

to

boot=/dev/hda

and check the root=/dev/hdax

if any.

accordingly.


But, I'm not sure of myself so be careful.

Jacques
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 11:47 AM
MikeyD
 
Posts: n/a
Default Re: question on MBR (to verify)

Huub wrote:

> Hi,
>
> Until now I booted my Slack with a floppy. Now I want to boot it
> directly from harddisk. As I read 'man lilo', I understand it says that
> 'lilo -M' will write lilo to the MBR. Is this a correct assumption?
>

No. That's the wrong thing to do. That installs a standard MBR, and is
intended as a way to uninstall lilo if you've lost your boot sector backup.
The correct way to do it is lilo -b /dev/hdx or /dev/sdx (whichever hard
disk it is). Or change the boot= line in lilo.conf.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 11:47 AM
Huub
 
Posts: n/a
Default Re: question on MBR (to verify)

MikeyD wrote:
> Huub wrote:
>
>
>>Hi,
>>
>>Until now I booted my Slack with a floppy. Now I want to boot it
>>directly from harddisk. As I read 'man lilo', I understand it says that
>>'lilo -M' will write lilo to the MBR. Is this a correct assumption?
>>

>
> No. That's the wrong thing to do. That installs a standard MBR, and is
> intended as a way to uninstall lilo if you've lost your boot sector backup.
> The correct way to do it is lilo -b /dev/hdx or /dev/sdx (whichever hard
> disk it is). Or change the boot= line in lilo.conf.

the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo
in the MBR of /dev/hdc and I will be booting OK?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 11:47 AM
Nuno Paquete
 
Posts: n/a
Default Re: question on MBR (to verify)

Huub wrote:

> Hi,
>
> Until now I booted my Slack with a floppy. Now I want to boot it
> directly from harddisk. As I read 'man lilo', I understand it says that
> 'lilo -M' will write lilo to the MBR. Is this a correct assumption?
>
> Thanks
>
> Huub


Hi.

Put this in your /etc/lilo.conf file:

prompt
timeout=50
default=Slack-2.4.25
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message

image=/boot/vmlinuz
label=Slack-2.4.22
root=/dev/hda1
read-only

image=/boot/linux-2.4.25
label=Slack-2.4.25
root=/dev/hda1
read-only

image=/boot/linux-2.6.4
label=Slack-2.6.4
root=/dev/hda1
read-only

other=/dev/hda3
optional
label=Windows

As you can see, i've got several options at startup, i can boot up with
diferent kernel versions, and i can even boot Windows in another partition.
Change my settings to your needs. I've got 4 options at startup but you can
delete it and have just one. You can either change the default bootable
option (OS) with the parameter: "default=Slack-2.4.25"
Change it to whatever you want, just have to be equal the corresponding
label parameter.
Enjoy.

NOTE: After changing lilo.conf don't forget to run this comand: lilo

That's all.

Best regards,
Nuno Paquete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 11:49 AM
MikeyD
 
Posts: n/a
Default Re: question on MBR (to verify)

>>>Until now I booted my Slack with a floppy. Now I want to boot it
>>>directly from harddisk. As I read 'man lilo', I understand it says that
>>>'lilo -M' will write lilo to the MBR. Is this a correct assumption?
>>>

>>
>> No. That's the wrong thing to do. That installs a standard MBR, and is
>> intended as a way to uninstall lilo if you've lost your boot sector
>> backup. The correct way to do it is lilo -b /dev/hdx or /dev/sdx
>> (whichever hard disk it is). Or change the boot= line in lilo.conf.

> the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo
> in the MBR of /dev/hdc and I will be booting OK?


Yes, that will be fine. But if you plan on keeping it there long-term, it's
probably better style to change lilo.conf to say boot=/dev/hdc and then you
can run lilo without any options.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 11:50 AM
Huub
 
Posts: n/a
Default Re: question on MBR (to verify)

MikeyD wrote:
>>>>Until now I booted my Slack with a floppy. Now I want to boot it
>>>>directly from harddisk. As I read 'man lilo', I understand it says that
>>>>'lilo -M' will write lilo to the MBR. Is this a correct assumption?
>>>>
>>>
>>>No. That's the wrong thing to do. That installs a standard MBR, and is
>>>intended as a way to uninstall lilo if you've lost your boot sector
>>>backup. The correct way to do it is lilo -b /dev/hdx or /dev/sdx
>>>(whichever hard disk it is). Or change the boot= line in lilo.conf.

>>
>>the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo
>>in the MBR of /dev/hdc and I will be booting OK?

>
>
> Yes, that will be fine. But if you plan on keeping it there long-term, it's
> probably better style to change lilo.conf to say boot=/dev/hdc and then you
> can run lilo without any options.

I did it, but to no avail. I also changed the bootable-flag from / to
/boot. When booting from harddisk, it keeps coming with LI 99. Luckily I
still have the boot-floppy. Any idea?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 11:59 AM
Rich Grise
 
Posts: n/a
Default Re: question on MBR (to verify)

"Huub" <v.niekerk@freeler.nl> wrote in message
news:ynKtc.539$9n5.68@amstwist00...
> MikeyD wrote:
> >>>>Until now I booted my Slack with a floppy. Now I want to boot it
> >>>>directly from harddisk. As I read 'man lilo', I understand it says

that
> >>>>'lilo -M' will write lilo to the MBR. Is this a correct assumption?
> >>>>
> >>>
> >>>No. That's the wrong thing to do. That installs a standard MBR, and is
> >>>intended as a way to uninstall lilo if you've lost your boot sector
> >>>backup. The correct way to do it is lilo -b /dev/hdx or /dev/sdx
> >>>(whichever hard disk it is). Or change the boot= line in lilo.conf.
> >>
> >>the boot= line says /dev/hdc2. So 'lilo -b /dev/hdc' will install lilo
> >>in the MBR of /dev/hdc and I will be booting OK?

> >
> >
> > Yes, that will be fine. But if you plan on keeping it there long-term,

it's
> > probably better style to change lilo.conf to say boot=/dev/hdc and then

you
> > can run lilo without any options.

> I did it, but to no avail. I also changed the bootable-flag from / to
> /boot. When booting from harddisk, it keeps coming with LI 99. Luckily I
> still have the boot-floppy. Any idea?


Then instead of installing to MBR, install to boot partition. I always
use liloconfig (after backing up lilo.conf, to keep the stuff I don't want
overwritten, like 'vga=ext'), and when I get LILO 99 from one, I do it
again and pick the other (MBR/boot sector).

It affects the same boot= line in lilo.conf, but I don't want to tell you
what to put there since it's your drive. liloconfig will find your boot
sectors.

Good Luck!
Rich


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 07:49 AM.


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