LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-17-2005, 11:08 PM   #1
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Hard Drive Migration


My main desktop currently has an 80GB primary hard drive and a 120GB hard drive for multimedia files. I am planning to obtain a 300GB hard drive to replace the 80GB hard drive because my drive is aging (2 years of 24/7 operation) and is getting very full. I'm not yet certain if I'll completely remove the 80GB hard drive or use it for other functions (ideas welcome), but my main concern is the transition between drives.
Currently, I have a 100MB /boot, a 1GB swap, and the rest of the drive is /. I would like to migrate to /boot (100M), swap(1GB), /(60 GB), and /home(remainder). So, my intent is to install the new drive and boot off a LiveCD. I'll then partition, format, and mount (/new,/new/boot,/new/home) the new drive, mount the old drive (/old,/old/boot) and then copy over the files like so:
Code:
cp -a /old /new
I think -a should preserve all links, permissions, ownerships, hidden files, etc. By using the livecd, I should avoid problems with /dev, /proc, and /sys, I think.

I've been running linux for 6 years, but I still like to get any input and have others check over my plans to see what I'm missing. Thoughts on partitioning, filesystems, drive use, and copying are all most welcomed.
 
Old 12-18-2005, 01:28 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
you'll likely have to re-install the MBR.

There is a tutorial here at LQ about using DD which could get the MBR copied for you.

http://www.linuxquestions.org/linux/...ything_With_DD
 
Old 12-18-2005, 11:03 AM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Original Poster
Rep: Reputation: 128Reputation: 128
Yeah, I kinda had overlooked that detail. I was just planning to chroot to /new and run 'lilo'. I imagine that should take care of it.
 
  


Reply



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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Hard Drive Migration-upgrading to new SCSI stunter Linux - Hardware 1 07-04-2005 10:02 PM
Hard Drive Migration wdingus Linux - General 2 04-07-2005 01:19 PM
URGENT: Hard drive is dying, need migration AngryLlama Linux - General 12 11-27-2004 10:31 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM

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

All times are GMT -5. The time now is 07:38 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
Open Source Consulting | Domain Registration