LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2003, 02:58 PM   #1
sammckee
Member
 
Registered: Aug 2003
Posts: 59

Rep: Reputation: 15
Question Migrating from dual boot


I'm reasonably close to being ready to dump the whole dual-boot thing entirely. I still don't have winex working, but once that's working I'm not sure I'll have any reason at all to continue using Windows.

So here's my question. I have one hard drive partitioned into drive C (my Windows installation and My Documents folder) and drive D (a bunch of Windows applications and data that I don't want to lose. I have a second (older, slower, smaller) hard drive partitioned into my Linux (Mandrake) installation and a swap partition. If I want to migrate my Linux installation to the newer, faster, bigger drive where my Windows installation and data currently live, what's the best strategy? (And yes, I know that no matter what strategy I use I should do a backup first ).
 
Old 09-16-2003, 02:27 AM   #2
tek1024
Member
 
Registered: Sep 2003
Posts: 49

Rep: Reputation: 15
Okay, first of all, even though you know it, I have to cover my butt by saying BACKUP EVERYTHING FIRST. ::ahem:: Now that that's out of the way...

Assuming that drives C and D are on the same hard drive and are on the first IDE controller (most likely labeled in white micro-text "IDE 0" on your motherboard), then what Windows sees as drive C: is going to be /dev/hda1. That's Device: Hard Drive A (the first), partition number 1. Drive D: is, then, /dev/hda2 (Device: Hard Drive A (still the first hard drive, speaking of the physical unit here), partition number 2). If your data is on drive D:, then it's on partition /dev/hda2.

So! All you have to do is BACKUP your My Documents folder and set up Linux install. Depending on your distribution of choice and mode of formatting, your actual steps to do this will vary, but what you'll have to do is format /dev/hda1 as a Linux partition and install Linux onto that.

As to migrating your data from your Linux partition to the soon-to-be-formerly Windows partition, I wouldn't even go there. Recommended course of action is to back up all Linux stuff you can't live without (everything under /home and all the .conf files you've maybe tweaked by hand) and do a fresh install. I would point you to a site on hard disk cloning over through netcat and dd through an existing Linux machine, but that's Expert Level stuff and a pain in the arse besides. If you decide to format and do a fresh install, of course, you COULD just leave that existing Linux partition intact and keep that hard drive in your machine, and migrate the data piece-by-piece from that HDD to your new partition.

In other words, you could mount that second hard drive (if it's the slave drive on the same IDE controller as your main hard drive, it's /dev/hdbX, where X is the partition number in which your Linux system resides) as a folder on your new system and copy /home and such things over yourself. I've done it, it works, it's fairly safe; the only major drawback is that if you haven't prepared your Linux system to be backed up and restored easily (by hand), then it's a pain to deal with remembering all the files you need to move.

HTH!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 04:13 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 02:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 06:04 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 11:11 AM
Newbie needs Mandrake/Win98 dual-HD, dual boot system design help... buddha Linux - Newbie 20 09-04-2003 09:57 PM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration