LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-04-2004, 09:23 AM   #1
Scrotonomous
LQ Newbie
 
Registered: Jan 2003
Posts: 15

Rep: Reputation: 0
copy harddrive


I am currently running FC2 on my home desktop with a dual boot to winXP. I have the linux partition on a separate hd than my windows partition. My FC2 hd is only 30 GB and my WinXP hd is 80 GB.

I have spent a lot of time getting FC2 just how I want it, now I feel I'm ready to switch permanently to linux and i want to scrap my winXP drive. However, I'm curious if there is a way to copy everything from my FC2 hd to the other hd (thus overwriting winXP) then starting off of the other harddrive.

Is there an easy way to do this? Basically I want to run the root file system off of the bigger drive and use my smaller HD as storage for music and videos. Only thing is I don't want to spent hours re-installing FC2, reinstalling my programs, and re-configuring my desktop environment.

Thanks,

Jacob
 
Old 11-04-2004, 09:30 AM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
- boot with a live cd / recovery disk.

- create the ext3 fs on the windows partition.
- mount both the original and newly created partitions.
- cp -dpR <old mnt pt> <new mnt pt>
- reinstall the bootloader on the new drive (this may not be necessary on grub)
- umount everything and reboot.

that's it.
 
Old 11-04-2004, 09:55 AM   #3
Scrotonomous
LQ Newbie
 
Registered: Jan 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Great, thanks for the quick reply, here's a few questions I have before I get started doing this...

how can i make a recovery disk? Is there a utility to make one?

How do I create the ext3 fs on the windows partition? Is there where I format it? I want to use the whole disk, not just a partition on this extra disk.

Therefore, if I want to use the whole disk, can I just mount it, format the whole thing (it was in ntfs - can I reformat this from linux)?

then I'll do the cp -dpR <old mount point> <new mount point>
where <old mount point> is my current linux hd and <new mount point> is my old windows (soon to be new linux), correct?

How do I re-install the bootloader on the new drive?

Thanks again, and sorry for the newbie-ish questions, I just don't want to screw anything up here.

Jacob
 
Old 11-04-2004, 10:22 AM   #4
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Quote:
how can i make a recovery disk? Is there a utility to make one?
have a look at Knoppix or for something lightweight: tom's root boot (google for this).

Quote:
How do I create the ext3 fs on the windows partition? Is there where I format it? I want to use the whole disk, not just a partition on this extra disk.
You do it from the recovery disk. use fdisk and mkfs.ext3.

Quote:
Therefore, if I want to use the whole disk, can I just mount it, format the whole thing (it was in ntfs - can I reformat this from linux)?
yes.

Quote:
then I'll do the cp -dpR <old mount point> <new mount point>
where <old mount point> is my current linux hd and <new mount point> is my old windows (soon to be new linux), correct?
yes.

Quote:
How do I re-install the bootloader on the new drive?
depends on what bootloader you're using. for grub:

with the new partition mounted, run:
chroot <new mount pt> /usr/sbin/grub (may be /sbin/grub)

this will put you in the grub "shell",
type
root (hd0) (this may be hd1, depending on how your disks are physically connected)
setup
quit

unmount everything and reboot.
 
Old 11-04-2004, 01:40 PM   #5
Scrotonomous
LQ Newbie
 
Registered: Jan 2003
Posts: 15

Original Poster
Rep: Reputation: 0
one more question, right now, /dev/hda1 has my boot partition and /dev/hda2 has is my root fs. My new harddrive is currently dectected as /dev/hdb1

Do I need to create a new partition for the boot partition on that drive like a /dev/hdb1 and /dev/hdb2?

Thanks,

Jacob
 
Old 11-04-2004, 10:38 PM   #6
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Yes, you do. You can cp -dpR the boot partition onto the new partition too, as long as your bios can read large drives.
 
  


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
HardDrive to HD image copy gerrymatbeacon Linux - Newbie 1 08-13-2004 03:18 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
how to copy mandrake rescue from cdrom to harddrive? TimeFade Mandriva 4 12-31-2003 12:16 AM
Slackware LIVe Cd copy to harddrive dude_228 Slackware 8 09-05-2003 01:51 PM
How Do I copy data from the cdrom to my harddrive TransAmJugo Linux - Newbie 2 07-18-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:12 AM.

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