LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 04-01-2005, 06:18 AM   #1
E@zyVG
Member
 
Registered: Mar 2005
Location: Moscow, Russia
Distribution: SUSE
Posts: 30

Rep: Reputation: 15
Question 1st Linux + 2nd WinXP !!!


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?
 
Old 04-01-2005, 06:38 AM   #2
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Rep: Reputation: 16
Quote:
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 ?

Quote:
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.

Quote:
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
etc...

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.
 
Old 04-01-2005, 07:20 AM   #3
E@zyVG
Member
 
Registered: Mar 2005
Location: Moscow, Russia
Distribution: SUSE
Posts: 30

Original Poster
Rep: Reputation: 15
Hey, thanks for the reply.

I think I'll do it easier way. I will make a clone of WinXP sda to sdb, and then just reinstall Linux on sda (sd - as drives are sata).

And once the Linux is installed on sda (the 200GB one) + Grub, I will just point to my WinXP (sdb) as a boot option in Grub.

Think this is better option, as then I will reduce the probs with partition table in Linux and boot manager to minimum!

This is how I am planning to partition my drive:

sda1 (2GB) RFS - Swap (as I got 1GB RAM)
sda2 (10GB) RFS - /
sda3 (~185) RFS - /home
sdb1 (15GB) NTFS - WinXP (don't want to use older FAT32)
sdb2 (~105GB) NTFS - Data

Last edited by E@zyVG; 04-01-2005 at 07:27 AM.
 
Old 04-01-2005, 07:23 AM   #4
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Rep: Reputation: 16
Indeed, that's probably a quite good idea....

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)
 
Old 04-01-2005, 07:24 AM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
http://www.tldp.org/HOWTO/Hard-Disk-Upgrade/index.html

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.

Did I mention to back up your data?
 
Old 04-01-2005, 07:32 AM   #6
E@zyVG
Member
 
Registered: Mar 2005
Location: Moscow, Russia
Distribution: SUSE
Posts: 30

Original Poster
Rep: Reputation: 15
Yups, my bad mentioning RFS for swap

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.

And yes, I have backed up all that I need

Last edited by E@zyVG; 04-01-2005 at 07:36 AM.
 
Old 04-01-2005, 07:43 AM   #7
E@zyVG
Member
 
Registered: Mar 2005
Location: Moscow, Russia
Distribution: SUSE
Posts: 30

Original Poster
Rep: Reputation: 15
By the way, since I will have Linux on my sda1 (as primary + Active drive), should I install Grub on MBR or boot sector ..... remember, I got WinXP on sdb!
 
Old 04-01-2005, 07:50 AM   #8
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Rep: Reputation: 16
I'm sorry I can't answer that last question ! I always install to MBR but I don't know, after all, if that's a good idea! Also I use Lilo and not Grub.
 
Old 04-01-2005, 02:46 PM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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.
 
Old 04-02-2005, 07:15 AM   #10
E@zyVG
Member
 
Registered: Mar 2005
Location: Moscow, Russia
Distribution: SUSE
Posts: 30

Original Poster
Rep: Reputation: 15
Ok guys, everything went smooth.

Cloned WinXP to 2nd HD, and then re-installed Linux on 1st, without taking out the drives, or changing the ports.

Got 1st drive as "Active", well it was so before, too, installed Linux and then Grub automatically found WinXP on 2nd HD and added to the menu. BTW, I got Grub to install into MBR.

Thanks for the replies to all.

I am happy now

Last edited by E@zyVG; 04-02-2005 at 07:18 AM.
 
Old 04-02-2005, 01:00 PM   #11
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Excellent!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anxious on Dual Boot .... 1st HD=WINXP... 2nd HD=? Mustard010 Linux - General 1 11-26-2004 03:36 PM
FC2 install on 2nd drive, no dual-boot, will install modify 1st WinXP drive at all? Equisilus Fedora - Installation 14 06-27-2004 03:38 AM
Linux on 1st windows on 2nd hd... Teclavow Linux - Newbie 1 02-02-2004 07:12 PM
Where and what type of Linux partiton? (EXT2 vs EXT3, 1st or 2nd HD, etc) Noffie Linux - Newbie 3 01-05-2004 10:05 AM
Installing Linux on the 1st partition and booting Windows off the 2nd Rav Linux - General 15 12-21-2002 03:33 PM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration