Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
Is this possible?
I just got a nice new HD, much bigger and faster than what I have now. Alas, I just got my RH 8.0 all tweaked out and pimped up just the way I like it. I really don't want to have to reinstall and do everything again...
So is there a way I can just copy the existing istallation onto the new disk, just make exactly the same partitions (but this time it will be on /dev/hda) and somehow copy everything, and then just reinstall grub to reflect the changes?
If this is possible at all, could someone walk me through it, I am not a total noob but I am no guru either, so it is very possible that I may get stuck along the way. But I would really like to this instead of installing again, and then going through the whole process of getting it to be how I want it to be...
this is a little tricky so follow me on this... it works... this is how I've set up a couple of LFS systems...
plug the hd into your ide bus (preferably primary ide bus and set as slave)... then you can cfdisk or fdisk /dev/hdb to create your partitions. If you want the partitions just like the old system then type 'cat /etc/fstab'... this will tell you what partitions get mounted where... to see partition filesizes use 'cfdisk /dev/hda'... this will allow you to view the old hd's partition setup.
once you have the new hd partitioned you now have to format the partitions... use mkfs to format the different partitions.
download a distro of linux that you can boot and run from CD to copy all the files from one hd to another.
now running linux from a CD (that way the system isn't using any files on either of the HDs)... do something like the following:
# mkdir /mnt/oldhd
# mkdir /mnt/newhd
# mount /dev/hda1 /mnt/oldhd /* or whatever your old root partition is */
# mount /dev/hdb1 /mnt/newhd /* or whatever your new root partition is going to be */
# cd /mnt/newhd
#mkdir usr root home mnt lib etc bin sbin ... etc
next you will have to mount the remaining partitions on both the new and old hds to their appropriate mount points (see /etc/fstab).
then you can just copy files recursively from one hd to another... update your grub (not sure how to do this myself... I'm a lilo guy) then shutdown, switch the new hd in for the old one and reboot. Should be good to go.
I know that's really not going into detail but that's how you do it... let me know if / where you need more clarification.
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
guys thanks for such quick replies, but it looks like its more trouble than its worth, i don't have broadband or anything, so downloading knoppix would be a pain, so it looks like I'll just nuke it and start over....
Don't have to use knoppix. Just boot the RH 8 1st install CD and use the rescue mode. No gui so its all console commands.
If you copy to the same partitions then all you have to do is run grub-install to reinstall grub to your new disk. You will have to chroot to the new HDD first.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.