How to copy the /boot partition?
From: Linux Lover (linuxlover992000_at_yahoo.com)
Date: 09/29/03
- Next message: Werner Mahr: "Re: MOUNTING FAT partition"
- Previous message: Kejpa: "RH9 & Sendmail conf"
- Next in thread: Alan Connor: "Re: How to copy the /boot partition?"
- Reply: Alan Connor: "Re: How to copy the /boot partition?"
- Reply: Peter T. Breuer: "Re: How to copy the /boot partition?"
- Reply: Eric Moors: "Re: How to copy the /boot partition?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Sep 2003 09:38:25 -0700
My 4GB HDD is dying. I need to transfer it ASAP to another HDD. I
tried copying it to an 8.4GB HDD I had lying around. I used Partition
Magic (hereby PM) to copy all partitions and at first all seemed well.
But when I tried to boot using the new HDD, it refused. I used Linux's
fdisk to view it and was surprised that Linux's "Extended" partition
(id=5)is not the same as the one PM placed while copying the various
partitions (id=f). I corrected it, but I am still having problem
copying the /boot partition so that it would boot.
My original (failing) HDD looks like this:
~> /sbin/fdisk -lu /dev/hda
Device Boot Start End Blocks Id System
/dev/hda1 63 40319 20128+ 83 Linux
/dev/hda2 40320 7814015 3886848 5 Extended
/dev/hda5 40383 3322367 1640992+ 83 Linux
/dev/hda6 3322431 6604415 1640992+ 83 Linux
/dev/hda7 6604479 7136639 266080+ 83 Linux
/dev/hda8 7136703 7668863 266080+ 83 Linux
/dev/hda9 7668927 7805951 68512+ 82 Linux swap
The new disk, OTOH, has for some reason (the way PM set it up), the
extended partition as /dev/hdb1 and the boot partition as /dev/hdb2
(all other partitions are correctly positioned/copied).
My questions are:
1) Why is PM and fdisk are having such a hard time "talking" to each
other?
2) How do I copy the /boot partition, so that not only its contents is
copied but it also boots when I replace the old HDD with the new HDD
(i.e. /dev/hdb becomes /deb/hda). Do I use LILO to do that? If so, how
do I change lilo.conf so that it doesn't change in anyway the original
drive (I still need it, in case something goes awfully wrong with the
new HDD. I cannot boot from a floppy).
Thanks in advance!
- Next message: Werner Mahr: "Re: MOUNTING FAT partition"
- Previous message: Kejpa: "RH9 & Sendmail conf"
- Next in thread: Alan Connor: "Re: How to copy the /boot partition?"
- Reply: Alan Connor: "Re: How to copy the /boot partition?"
- Reply: Peter T. Breuer: "Re: How to copy the /boot partition?"
- Reply: Eric Moors: "Re: How to copy the /boot partition?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|