Unix Technical Forum

Restoring LILO

This is a discussion on Restoring LILO within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Okay, suppose I have a dual boot machine, something like this: hda1 - small, vendor proprietary partition hda2 - ...


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-20-2008, 12:54 PM
Terrance N. Phillip
 
Posts: n/a
Default Restoring LILO

Okay, suppose I have a dual boot machine, something like this:
hda1 - small, vendor proprietary partition
hda2 - windows 98
hda3 - linux swap
hda4 - linux (reiserfs)
And everything's working smoothly. Lilo was installed using MBR.
Someone, NOT SAYING WHO, does a fdisk /mbr from Windows, and now the
computer boots only to windows, never see the Lilo screen.

Is there a quick way to restore Lilo using the installation CD without
re-installing?

Nick.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 12:54 PM
No_One
 
Posts: n/a
Default Re: Restoring LILO

On 2005-11-19, Terrance N. Phillip <mediocre_person@hotmail.com> wrote:
> Okay, suppose I have a dual boot machine, something like this:
> hda1 - small, vendor proprietary partition
> hda2 - windows 98
> hda3 - linux swap
> hda4 - linux (reiserfs)
> And everything's working smoothly. Lilo was installed using MBR.
> Someone, NOT SAYING WHO, does a fdisk /mbr from Windows, and now the
> computer boots only to windows, never see the Lilo screen.
>
> Is there a quick way to restore Lilo using the installation CD without
> re-installing?
>
> Nick.


Maybe liloconfig is what your looking for.....

ken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 12:54 PM
Chris Willing
 
Posts: n/a
Default Re: Restoring LILO

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 18 Nov 2005 18:48:50 -0600, Terrance N. Phillip
<mediocre_person@hotmail.com> wrote:
> Okay, suppose I have a dual boot machine, something like this:
> hda1 - small, vendor proprietary partition
> hda2 - windows 98
> hda3 - linux swap
> hda4 - linux (reiserfs)
> And everything's working smoothly. Lilo was installed using MBR.
> Someone, NOT SAYING WHO, does a fdisk /mbr from Windows, and now the
> computer boots only to windows, never see the Lilo screen.
>
> Is there a quick way to restore Lilo using the installation CD without
> re-installing?


Start machine with Slackware installation disk. At the boot prompt are
instructions to do exactly what you want (boot to linux). You'll need
to specify booting to /dev/hda4 rather than whatever instructions say
(/dev/hda1, from memory).

When you're up & running, fix /etc/lilo.conf (if necessary), then run lilo


chris


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFDfnfHEi1IpCjOY3ERAnERAJsGtLIesSPhK3LS4K1tRN SlCBxRngCfWnuc
6MAqrH7Qo+OlbeOqxeZuaJU=
=9JiP
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 12:54 PM
ray
 
Posts: n/a
Default Re: Restoring LILO

On Fri, 18 Nov 2005 18:48:50 -0600, Terrance N. Phillip wrote:

> Okay, suppose I have a dual boot machine, something like this:
> hda1 - small, vendor proprietary partition
> hda2 - windows 98
> hda3 - linux swap
> hda4 - linux (reiserfs)
> And everything's working smoothly. Lilo was installed using MBR.
> Someone, NOT SAYING WHO, does a fdisk /mbr from Windows, and now the
> computer boots only to windows, never see the Lilo screen.
>
> Is there a quick way to restore Lilo using the installation CD without
> re-installing?
>
> Nick.


Chris gives you the proper outline. I'd also suggest, at some time, that
it would be good to move your swap and linux partitions to hda5 and hda6 -
the way it is, you can't make any more partitions, since all your primary
partitions are already used. This is not a major concern if all the
available space is used and you never want to install anything else, but
it would not hurt in any event.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 12:54 PM
Gerhard Wallraf
 
Posts: n/a
Default Re: Restoring LILO

Chris Willing wrote:

> Start machine with Slackware installation disk. At the boot prompt are
> instructions to do exactly what you want (boot to linux). You'll need
> to specify booting to /dev/hda4 rather than whatever instructions say
> (/dev/hda1, from memory).
>
> When you're up & running, fix /etc/lilo.conf (if necessary), then run lilo


it's even easier AFAIR. Boot the Slackware CD, mount your Linux drive to
wherever you want (let's say /mnt)
# mount /dev/hda4 /mnt
# lilo -C /mnt/etc/lilo.conf

This should work.

Greetings,

Gerhard

PS: If your name is really Terrance N. Phillip, your're a poor guy. If you
took it from the south park movie, please enter your realname :-)

--
1. Please remove the 'SPAMWEG' in my mail adress
if you want to write a mail to me. Thanks!
2. 'Ubuntu' is a (non-proven) african word for
"I can't figure out how to configure Slackware" ;-)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 12:54 PM
olive
 
Posts: n/a
Default Re: Restoring LILO

Gerhard Wallraf wrote:
> Chris Willing wrote:
>
>
>>Start machine with Slackware installation disk. At the boot prompt are
>>instructions to do exactly what you want (boot to linux). You'll need
>>to specify booting to /dev/hda4 rather than whatever instructions say
>>(/dev/hda1, from memory).
>>
>>When you're up & running, fix /etc/lilo.conf (if necessary), then run lilo

>
>
> it's even easier AFAIR. Boot the Slackware CD, mount your Linux drive to
> wherever you want (let's say /mnt)
> # mount /dev/hda4 /mnt


mkdir /mnt/part4
mount /dev/hda4 /mnt/part4

because it is better not to shadow what are in /mnt

> # lilo -C /mnt/etc/lilo.conf


lilo -r /mnt/part4

The -C option won't work because the files are refered as absolute file
if the partition is mounted on /. For example if your kernel is
/boot/vmlinuz; in our configuration it becomes /mnt/part4/boot/vmlinuz.

Olive
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 12:54 PM
Terrance N. Phillip
 
Posts: n/a
Default Re: Restoring LILO

olive wrote:
> Gerhard Wallraf wrote:
>
>> Chris Willing wrote:
>>
>>
>>> Start machine with Slackware installation disk. At the boot prompt are
>>> instructions to do exactly what you want (boot to linux). You'll need
>>> to specify booting to /dev/hda4 rather than whatever instructions say
>>> (/dev/hda1, from memory).
>>>
>>> When you're up & running, fix /etc/lilo.conf (if necessary), then run
>>> lilo

>>
>>
>>
>> it's even easier AFAIR. Boot the Slackware CD, mount your Linux drive to
>> wherever you want (let's say /mnt)
>> # mount /dev/hda4 /mnt

>
>
> mkdir /mnt/part4
> mount /dev/hda4 /mnt/part4
>
> because it is better not to shadow what are in /mnt
>
>> # lilo -C /mnt/etc/lilo.conf

>
>
> lilo -r /mnt/part4

Ah... this looks like what I need. I will try it Monday morning. Thanks
all. FWIW, I was mounting the partition to /mnt/hd, and then just trying
to run lilo without any options. Obviously didn't work.

Nick
>
> The -C option won't work because the files are refered as absolute file
> if the partition is mounted on /. For example if your kernel is
> /boot/vmlinuz; in our configuration it becomes /mnt/part4/boot/vmlinuz.
>
> Olive

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 12:55 PM
ray
 
Posts: n/a
Default Re: Restoring LILO


> Ah... this looks like what I need. I will try it Monday morning. Thanks
> all. FWIW, I was mounting the partition to /mnt/hd, and then just trying
> to run lilo without any options. Obviously didn't work.
>


It should, if you 'chroot /mnt/hd' first.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 12:55 PM
Terrance N. Phillip
 
Posts: n/a
Default Re: Restoring LILO

ray wrote:
>> Ah... this looks like what I need. I will try it Monday morning. Thanks
>>all. FWIW, I was mounting the partition to /mnt/hd, and then just trying
>>to run lilo without any options. Obviously didn't work.
>>

>
>
> It should, if you 'chroot /mnt/hd' first.
>

Right, right, RIGHT! chown, chmod, chroot...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 12:55 PM
ray
 
Posts: n/a
Default Re: Restoring LILO

On Sat, 19 Nov 2005 11:57:38 -0600, Terrance N. Phillip wrote:

> ray wrote:
>>> Ah... this looks like what I need. I will try it Monday morning. Thanks
>>>all. FWIW, I was mounting the partition to /mnt/hd, and then just trying
>>>to run lilo without any options. Obviously didn't work.
>>>

>>
>>
>> It should, if you 'chroot /mnt/hd' first.
>>

> Right, right, RIGHT! chown, chmod, chroot...


chroot comes in useful every now and again. It basically lets you change
your root environment.

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 08:44 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