[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing lilo in Squeeze after booting from the Lenny installer CD.



On Wed, 3 Feb 2010 01:16:32 -0500 (EST), Tony Nelson wrote:
> On 10-02-02 22:13:01, Stephen Powell wrote:
>> On Tue, 2 Feb 2010 20:48:46 -0500 (EST), PETER EASTHOPE wrote:
>>> How does this sound?
>>> * Boot from the Lenny installer CD and go into rescue mode.
>>> * In the page entitled "Rescue operations" do "Execute a shell in
>>> /dev/hda1".
>>>   (The system on /dev/hda1 is Squeeze as described previously.)
>>> * apt-get install lilo
>>>   I've never installed it.  With any luck installation to the MBR 
>>>   & configuration will be automated processes.
>>> * Reboot.
>>
>> 
>> I've never actually done this exact thing under these exact
>> circumstances; so I'm going from memory,
>> but here's what I'm thinking.
>> 
>> Ideally you want to boot from a rescue CD that runs the same
>> kernel release as a kernel installed on your hard drive, so that
>> modules for your running kernel can be found in /lib/modules/
>> after the switch from the initial RAM file system as / to
>> the permanent root file system as /.
>> ...
>
> I don't think that's the right approach.  Instead, boot the installer 
> in Rescue mode, chroot to the installation, and do the boot loader 
> install from there.  See the Debian Installer FAQ
> <http://wiki.debian.org/DebianInstaller/FAQ#Q.3ACanIused-iasarescuesystem.3FWhatpitfallsarethere.3F>

You only half quoted me.  I gave your procedure as an alternate procedure,
but you didn't quote that part.  The procedure that I suggested
to try first is superior, in my opinion, because, if it works,
it allows him to boot his full production system (X and all).  The rescue
CD essentially becomes a portable bootloader.  The chroot procedure
can be used as well, but a rescue CD which runs the same exact
kernel that he has installed on his hard drive and which is booted
with "root=..." pointing to his permanent root file system essentially
becomes a portable boot loader, allowing him to boot his full
production system.


Reply to: