-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wednesday 02 Mar 2005 12:13, Hugh Dixon wrote:
Hugh - before going on to your query - when quoting, please always remove the signature if it has a line '-- ' because most mail readers take anything below that to be signature and remove it when someone wants to answer you.
I'm not sure if this is part of the question (but it's a problem I had this
evening, and got round it be changing the jumpers back)
Easiest way ;-)
If device hda becomes hdb because the master/slaves have been swapped, how do you update
the linux/mandrake installation to look on a different disk?
If you really want to change it, then you will need to make changes to lilo.conf before you swap the jumpers.
Method 1 - somewhat dangerous First, back up /etc/lilo.conf mv lilo.conf lilo.conf.bak
Near the beginning of /etc/lilo.conf you will see a line like boot=/dev/hda
That needs to be changed to hdb
Then in each stanza you will find that root is being told where to look - in my case
root=/dev/hde12
which is partition 12 on drive hde. Keep the partition number, but change the hda to hdb in every place you find it.
When you've finished you need to run lilo /sbin/lilo
Do be aware that if you get this wrong you will need a rescue disk to sort it out.
Method 2 -
Probably a safer way is to use your CD1. I think you press Esc when it starts up - there's an on-screen message, so you should see it. One option then is Rescue - and one option on that is to repair your boot menu. That will safely do it for you. I'm sorry I can't be more explicit at this moment but I'm sure you will find it.
Anne
Method 2 - Hit F2, then type rescue at the prompt.
I would use Method 2. I would also leave "boot=/dev/hda" alone. This will install the boot loader to the new "Master" drive. You will need this, unless your BIOS will let you boot from IDE1. But change all the root= statments to use /dev/hdb# instead of /dev/hda#. You will also need to edit /etc/fstab, and change from hda to hdb here too. You can then re-install the boot loader.
I would make backup coppies of the files first, so if you deside to change things back, you can just put the origional files back. If you have not made any updates to the kernel, then the boot loader on the old drive will even boot things without any changes.
One thing to keep in mind, without some extra changes in your lilo.conf, Windows will not boot from the second hard drive!
Mikkel --
Do not meddle in the affairs of dragons, for you are crunchy and taste good with Ketchup!
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
