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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
OK, here is my situation. I got WinXP on my 1st HD, which is 200GB and got Linux on 2nd HD, which is 120GB.
Now I want to switch these, that is WinXP on 120GB and Linux on 200GB.
Basically to swap WinXP from 1st to 2nd, I'll use Acronis True Image. But what should I use for swapping Linux from 2nd to 1st HD? Well, I can go forward with clean install, too, as I haven't configured much on Linux system.
Also I am planning to keep my 1st HD, the 200GB, with Linux as my 1st, i.e on SATA Port-1 and 2nd with WinXP on SATA Port-2.
And I think, then the only thing left is to use Grub and indicate my OSs and properly indicate partitions. Right? Any ideas?
I got WinXP on my 1st HD, which is 200GB and got Linux on 2nd HD
So Linux is currently installed on /dev/hdb, right ?
I am planning to keep my 1st HD, the 200GB, with Linux as my 1st, i.e on SATA Port-1 and 2nd with WinXP on SATA Port-2.
So Linux will then be installed on /dev/hda
Thus, if you opt for an image copy of your hard disk, you'll have to update all config files mentionning that your disk is /dev/hdb. That will include at least /etc/fstab and the Grub config file.
But what should I use for swapping Linux from 2nd to 1st HD?
Why not use dd ?
dd if=/dev/hdb of=/dev/hda should copy the content of hdb to hda. Note that this should overwrite even the MBR and the partition table on hda.
Perhaps you'll prefer to do it partition-by-partition, ie : first create your linux partitions, then format them, then dd each partition, eg :
dd if=/dev/hdb1 of=/dev/hda1
dd if=/dev/hdb2 of=/dev/hda2
note that if you do that, it's necessary that you keep exactly the same filesystems , eg, if you were using ReiserFS, keep using ReiserFS. Also, if you do that, you'll have to reinstall Grub by yourself on the new hard drive.
By the way, if by RFS you mean ReiserFS, you need to know that you can't have a swap partition formatted as ReiserFS. Swap has its own "filesystem", called just "swap". it's not even the same partition type (82 vs 83, IIRC)
I always refer people with your question there. Section 7 has a few copying methods.
Can you use Acronis to image the Linux drive too? Is it necessary to swap the OS/filesystems? Can you not shrink the Windows partition and make room for a Linux partition on the 200G drive? You could then add that new partition as a mount point in /etc/fstab, perhaps as /mnt/spare or /home/<username>/extra. That would be less work.
OR, you could back up your data and wipe/reinstall the OS's and then return the data. Whatever you decide, back up your data.
The reason I want to switch is cause 200GB drive is faster and newer than 120GB one, and never liked having Win and Linux on same HD, so no shrinking. I don't have Enterprise version of Acronis TI, and only that version supports ReiserFS.
MBR of sda. The easiest way for you to do this is to install Windows on the smaller drive hard drive a (don't even have the big one plugged in). Then, swap it to the second controller or slave position (whichever is your setup). Then, install Linux on the 200G drive. If Grub or Lilo doesn't see the Windows drive and automatically install it, then add it to the config file after. If you need help with that, just ask.