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 - ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 |
| |||
| -----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----- |
| |||
| 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. |
| |||
| 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" ;-) |
| |||
| 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 |
| |||
| 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 |
| |||
| > 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. |
| |||
| 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... |
| ||||
| 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. |