LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-25-2006, 07:35 PM   #1
tredontho
LQ Newbie
 
Registered: Feb 2006
Distribution: FreeBSD 6.0-RELEASE
Posts: 15

Rep: Reputation: 0
Cloning onto drive that already has data


Okay, this problem is slightly unique. I've checked the forums (not exaustively, I'll admit, but I didn't just skim either), and nothing quite matches this problem. Here goes:

My good friend the windows user over here has been using Windows 2000 for a while. He has one hard drive with the operating system and a few other things on it, and then another drive with most of his program files on it. The OS "System" drive is PATA, 30 Gigabyte, and the "Data" drive is 130 Gigabyte, SATA. He's complaining about some noise in his computer, and I'm reasonably sure that it's the hard drive that his OS is on (it's older, not really made to be quiet or anything). So, this is no emergency, just a matter of convenience, and possibly to answer some curiosity. I have a Knoppix LiveCD here, and I know I hear that it's possible to resize partitions using one of the utilities on there (QtParted, something like that, right?) Oh, by the way, each drive has only one partition which takes up the entirety of each drive respectively. Anyways, what's the best way (if it is possible), to get some space opened up on the second, larger drive, and to clone the OS onto it? I've seen people suggesting dd, but doesn't that only work when the partitions are the same size (granted, I could probably manage that, right?) Just looking for the best solutions to this. Thanks all!

tredontho
 
Old 07-25-2006, 07:58 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
For dealing with what is most likely an NTFS partition, dd would be about your only option until one of the LiveCDs gets full NTFS write support on it. And yes, you'd need equally sized partitions... though, you could ntfsresize the first drive WAY down, dd it, and then ntfsresize back up (if you want).
 
Old 07-25-2006, 08:42 PM   #3
tredontho
LQ Newbie
 
Registered: Feb 2006
Distribution: FreeBSD 6.0-RELEASE
Posts: 15

Original Poster
Rep: Reputation: 0
Okay, thought so. Yes, both of the partitions in question here are ntfs. ntfsresize... should I use that to resize the partition on the 2nd drive then, as well? I'll load up the livecd that I have, to see what all I have at my disposal, because it's not the latest version. And I will probably post on here the steps that I think I should take, just so it gets checked... I would hate to make a mistake here, although theoretically since I'm not erasing the data on the first drive, I could always just use that... Thanks for the heads up!

tredontho
 
Old 07-25-2006, 10:27 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,313

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
ntfsresize resizes filesystems not partitions.
Go get the gparted liveCD - it does both in one GUI-ified utility.

I used it yesterday to do just this, to make room so Ubuntu could be installed.

Edit: ntfsclone is available from the same people who make ntfsresize - might be worth a look as well.

Last edited by syg00; 07-25-2006 at 10:29 PM.
 
Old 07-25-2006, 11:58 PM   #5
tredontho
LQ Newbie
 
Registered: Feb 2006
Distribution: FreeBSD 6.0-RELEASE
Posts: 15

Original Poster
Rep: Reputation: 0
syg00, thanks for the correction there, my mistake. I realized that afterwards, but figured you'd all know what I meant, and correct me in any case. I looked into ntfsclone, and it looks like GParted can do pretty much the same thing, and it (GParted) resizes the filesystem and partition as needed, so it's even better, from what I can tell. I downloaded the ISO, and just finished burning it. Some other issues which may need attending, though:
Whilst reading the ntfsclone page, it mentioned that Windows usually will not boot unless partition is the same, starting sector is the same, etc. Is there any way I will be able to resolve these issues? Also, copying the OS over won't mess with the rest of the drive, as in making it think it's smaller than it really is, or anything like that, will it? Sorry for the total n00bness of these questions, but they seem to be concerns others have had, looking at the forums, and the answers aren't always clear. Thanks for the help!

tredontho
 
Old 07-26-2006, 04:17 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,313

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
gparted uses other utilities to do the grunt work - including ntfsresize and libparted. It's a (GUI) front end.
If you look at the homepage for features, you'll see that you can copy but not move a NTFS partition.

I guess I misread your requirements. Resizing (in-place) works fine; ntfsclone creates a backup in case it all goes to hell, and you need to restore.
As for moving it to somewhere else, I'd be inclined to believe the folks that wrote the code.
 
  


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
Need help in cloning drive raddad51x Fedora 1 05-16-2006 01:31 AM
Cloning a hard drive! Shioni Linux - General 6 03-19-2006 11:39 AM
Hard drive cloning sabeel_ansari Programming 2 02-14-2006 01:40 PM
Cloning a hard drive davcefai Debian 3 11-28-2005 05:36 PM
Cloning Hard Drive rls Linux - Software 3 08-23-2003 02:32 PM


All times are GMT -5. The time now is 01:37 AM.

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