LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-28-2010, 10:05 PM   #1
Harju
LQ Newbie
 
Registered: Sep 2008
Location: Gothenburg, Sweden
Posts: 26

Rep: Reputation: 1
Cloning dual-boot drive onto a smaller drive.


Hi!
I've decided that I want to use another, smaller, hard drive for my OS and I'd like to clone /dev/sda onto /dev/sdc. I want it to be an exact clone except my partition for my "/home" will be smaller (since there's not room for it). I was gonna try with dd but I'm not sure if I should build the partition table and use dd-command on one partition at the time? Will this then include GRUB boot loader and will it be working properly? Do I have to clone the disk completely for it to boot properly?

I'm not sure how or where GRUB places itself on disks as you install it. Can I perhaps copy the partitions one by one and then install GRUB from CD afterwards? Should I leave some unallocated space somewhere in between the partitions as I build and clone them?

This is also my first question here on the forum. I hope someone can help me with this, would be nice to use my disks more effectively
 
Old 05-28-2010, 10:19 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Do not use "dd". Set up partitions then use (from a liveCD) "cp -a <source> <target>" (or rsync) for each partition.
And yes, you'll need to re-intall grub - can be done from the liveCD as well.

I like to leave some unallocated space - at the "end" of the disk; you can always move partitions around in need.

Last edited by syg00; 05-28-2010 at 10:21 PM.
 
Old 05-28-2010, 10:26 PM   #3
Harju
LQ Newbie
 
Registered: Sep 2008
Location: Gothenburg, Sweden
Posts: 26

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by syg00 View Post
Do not use "dd". Set up partitions then use (from a liveCD) "cp -a <source> <target>" (or rsync) for each partition.
And yes, you'll need to re-intall grub - can be done from the liveCD as well.

I like to leave some unallocated space - at the "end" of the disk; you can always move partitions around in need.
Why should I not use dd? One of the partitions is formated in NTFS, can it be handeled by the cp-command?
 
Old 05-29-2010, 04:49 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
dd is a byte level copy. The target becomes the same as the source (including errors) - that means same size. Not a lot of use if you're trying to move to smaller partitions. Can be accommodated if you are careful - at least for all but (usually) the last partition.
NTFS is a major PITA - no so bad if only a data partition, but if it's the system (think C: ) partition, I don't move it. Period.
 
Old 05-29-2010, 11:40 AM   #5
Harju
LQ Newbie
 
Registered: Sep 2008
Location: Gothenburg, Sweden
Posts: 26

Original Poster
Rep: Reputation: 1
So moving the NTFS-partition is a very bad idea? I guess I'm gonna make a fresh install of windows on that drive and then I'll move my Debian-install over using the cp-command. Thanks for the tips, I'll report back when I've tried this
 
  


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
again-dual boot windows XP, 1st drive-linux Mepis 8.0 2nd drive marvinudy Linux - Newbie 2 06-09-2009 09:51 AM
XP Pro drive 1, Fedora Drive, need dual boot Omar1962 Fedora 9 04-14-2007 02:24 AM
Needing help copying large hard drive to smaller drive sdubble Linux - Software 1 02-21-2006 12:06 PM
smaller drive to larger drive duplication mystery midlifecrisis Solaris / OpenSolaris 6 02-01-2006 07:23 AM
dual boot when linux on 1 drive, win on other drive, both scsi? nornad Red Hat 3 04-08-2004 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:04 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