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.
I have just got rid of my dual boot (never used the Windoze partion anyway...), but I want to migrate the OS the hda now - it currrently resides on hdb...
Probably the easiest way is to go into the configuration files and fix any that the reference the partitions by their actual names: /etc/fstab and /etc/lilo.conf (or grub.conf) are the only ones that immediately come to mind, can anyone think of others? Don't run /sbin/lilo just yet, though.
Once that's done, shut down, physically swap the hard drives - make the one that's now slave (i.e. hdb) master, and vice versa.
Boot up again with a boot disk, and run /sbin/lilo (or grub) to make the boot process look at what is *now* the correct hard drive.
If all went well, you should be able to boot with your normal procedure, and shouldn't even notice the change!
Should I re-partition hda and then copy the /boot directory to hda?
Then if I change Grub to look at HD0,0 then it should pick up the new copy of the OS, right? I am assuming I change fstab to point to /dev/hda1 as well to achieve this?
Ooh, boy...just moving one partition out of your whole system could work...maybe....although my gut reaction says it'll harm more than it'll help.
Really, I'd suggest leaving the system intact, and just moving the entire hard drive from slave to master (and updating the relevant configuration files) rather than just copying one partition. You'll give yourself much less headaches, and won't risk destroying your entire system's integrity.
Once the hard drive which is currently hda (and which I assume used to have windows on it) is safely in the slave position and is in no danger of being booted to, sure go ahead, fdisk, partition, format, go nuts
Well, I was hoping to leave hda in place, as it is only an 80GB hard drive, and move the boot partition to it to free up a 200GB hard drive. I want to have an Oracle Applications environment running ont he 200GB drive, but itmay be slow if both the OS and the database are vying for disk access simultaneously...
I'm not sure I understand...moving just the boot partition isn't going to free up any space - your installation is still going to be sitting there on /dev/hdb.
If you're really wanting to physically copy the installation over, just go ahead and copy it. Boot to a boot disk, create exact copies of your partitions on the target hard drive, then mount & cp each partition. Fix the config files & grub before you try to boot up again, of course.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.