LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] lilo and win2k

[CLUG] lilo and win2k

Alan Sobey ags-lists at esatclear.ie
Sun May 20 16:18:27 IST 2001


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 
yes
> installs in the boot sector as opposed to the MBR...
yes

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
root=/dev/hdb1
and 
boot=/dev/hdb1
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



More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell