On Sat, May 19, 2001 at 09:43:01PM +0100, Dermot Canniffe wrote:
> I'd better give you some specifics:
>> I had a lovely linux on my existing disk, then I got a six gig and
> set it as hda, with the original disk now as hdb ( as I was told
> Windows throws a hissy fit if it isn't on the first drive). Win2k installed
> grand, but (obviously) linux won't boot because it keeps thinking
> it's on hda1 &hda2 (swap).
> Can I alter linux without reinstalling? Can i then run lilo so that it
> installs in the boot sector as opposed to the MBR...
Easiest way I've found is to boot linux from a repair floppy/cd.
Then, mount your regular / partition (and /boot if necessary). (
i.e. mount /dev/hdb1 /mnt && mount /dev/<boot partition> /mnt/boot)
Do a chroot to / of your usual hdd installation.
i.e. cd /mnt && chroot .
(see chroot manpage if necessary)
Now, as far as lilo is concerned, all appears as though you had just
booted up from the hard drive, so now your can edit /etc/lilo.conf
(and more importantly run /sbin/lilo afterwards without it complaining
that it can't find necessary files in specified locations).
The changes you want to make (based on your description above) are
Make sure you run /sbin/lilo afterwards.
Also you will want to edit /etc/fstab, to change /dev/hda1 to
/dev/hdb1 and /dev/hda2 to /dev/hdb2
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!