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

Re: hdb to hda



On Sat, Sep 28, 2002 at 11:03:01AM +0530, little wrote:
> hi
> i installed linux on hdb and i didnt installed LILO ( swap partition , boot
> partition , root partition)
> and LILO can be installed on first disk
> now if i make that disk as hda then what changes i have to make so LILO will
> be successfully  installed ?
> Thanks

1. Make a boot floppy.  mkbootdisk `uname -r`

Have a look at /etc/fstab.  If all the first column are partition
labels and not /dev/hdb* (not counting swap and "none" entries), then
skip to step 3, and then to step 7.  You ought to do step 2 anyway,
just to have a rescue floppy.

2. If you can, make a stand-alone boot disk, say, using Tom's Root and
   Boot:

   http://www.toms.net/rb/

3. Shut down the machine.  Move hda to hdb.  Don't forget to change
   the jumper(s).

4. Boot with toms-root-boot.  Mount the root partition on /mnt.  (say
   it's /dev/hda2): mount /dev/hda2 /mnt

5. Edit the fstab to change all /dev/hdb to /dev/hda.
   vi /mnt/etc/fstab

6. Unmount it and reboot:
   umount /dev/hda2
   shutdown -r now

7. At the boot: prompt, put
   linux root=/dev/hda2

   Hmm.  Now that I think of it, if /etc/fstab has labels, I think you
   can just boot without putting anything there.  (I don't use labels,
   but for a very good reason.)

8. After it boots up, then modify /etc/lilo.conf and re-run lilo.

Ok, Rick.  What did I forget or get wrong? ;-)

Cheers,
-- 
Bob McClure, Jr.             Bobcat Open Systems, Inc.
robertmcclure earthlink net  http://www.cumbytel.com/~bobcatos/
Linux: because I want to get there today.  Without rebooting.





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