- Disconnect the Western Digital hard disk from the PCI controller and leave an old Quantum HDD on the onboard IDE channel.
- Adjust the boot device sequence, so that the mobo boots from the CDROM device.
- Install Linux on the old HDD.
- Power-off and connect the newer HDD on the PCI controller.
- Move the Linux installation from the old HDD to the new one.
- 1. Introduction
- 2. Install both disks on your system
- 3. Unmount non-Linux partitions and network drives
- 4. Partition the new disk
- 5. Format the new disk
- 6. Mount the new disk
- 7. Copy the files from the old disk to the new disk
- 8. Modify /new-disk/etc/fstab as appropriate
- 9. Prepare LILO to boot the new disk
- 10. Make a boot diskette (optional)
- 11. Remove the old disk
- 12. Reboot the system, modify LILO configuration file
- Having connected the new HDD, I would initialize the free space as a physical volume, so it could be used in an LVM setup.
- Then I’d add this new physical volume to the existing Volume Group, eg: vgextend volume_group /dev/sdb
- Finally, I would use the pvmove utility in order to move the data from the old physical volume (on the Quantum HDD) to the new physical volume (WD HDD), eg:
pvmove sda sdb
One may wonder why I didn’t use Smart Boot Manager, which can boot the machine from any connected device, instead of doing all of this monkey stuff.
installdirectory, you will find:
# qemu -m 64 sbm.bin
- First, I removed the HDD from the PCI controller and left only the HDD on the onboard IDE controller.
- I set the boot sequence so that it boots from the cdrom.
- I used the Ubuntu CD in order to get to a console.
- I wrote the smart boot manager image to the Quantum hard-disk with: dd if=sbm.bin of=/dev/hda
- Powered-off the system and connected the new HDD to the PCI controller.
- I adjusted the boot sequence so to boot from the HDD on the onboard controller.
- Put the Fedora Rescue CD in the CDROM drive.
- Reboot the machine. At the Smart-Boot-Manager menu, I selected the CDROM option.
- IU performed a network installation and used 100MB of the HDD on the onboard controller for the
/bootpartition and the new disk for the rest of the system partitions using LVM.