Originally posted by robthebob
At the moment I have a system with two hard drives: hda and hdc
hdc is slowly dying so I need to move the partitions across to hda. Could I do this as simply as copying the data in them to the appropriate folders on hda?
Or could I create new partitions on hda and use some program to copy them across intact?
Obviously fstab will need to be modified in either case, but I'm not sure if there is something else I'm missing.
Any help appreciated
You can do either. Linux couldn't care less if /boot is on the same partition as / or on its own.
Just create new partitions and use cp.
man cp says
same as -dpR
So that's all you need.
mount /dev/hda5 /mnt/hda5
cp -a* /mnt/hda5
Edit fstab so that /hda5 gets mounted to /boot
I always have a live cd handy just in case you hose something up you can chroot in and fix it.