LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-09-2011, 01:27 PM   #1
lmrmpc
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Question use option -c to clone larger drives to smaller drives


hello , i am new here , i am 70 and do some vol work for deserving people . we are using ubuntu 11-10 at present .
i use clonezilla live to clone computers.

i started with 9-04 and have doing this ever since ,.
my last clonezilla live would clone. smaller to larger and also larger to smaller harddrives.

that disc got left in a computer ,
i downloaded another copy to use .
this one does not clone larger to smaller . it states to use option -c.
how do i do this?
thanks in advance
 
Old 11-09-2011, 02:51 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Clonezilla has a unique feature: it can copy to a smaller drive **AND** the destination drive must be at least as large as the source drive. I can't really tell from your post exactly what you are trying to do, but asking "How do I use the -c option?," is sort of like asking, "How do you work Linux?" If it were me, I would use a Knoppix live Linux CD and the rsync program.

I'm scared that your cloning to machines that have no Internet access, or worse, different hardware configurations than the machine on which the disk image was made. Volunteer work is fun until you get blamed for everything.

So, you boot the Knoppix CD and wait until you get the KDE desktop. Click around in there until you find a terminal emulator (an icon that turns into a square with a command prompt

Something like:

[ knoppix@adrienne ] $

type just the part after the special character:

[ knoppix@adrienne ] $ su

and POOF:

[ root@adrienne ] #

Now you've got power. I don't know if the drives are on different chassis, but there is a manual page for rsync:

[ root@adrienne ] $ man rsync

You must mount both hard drives:

[ root@adrienne ] $ mount /dev/sdax /mnt/sdax

where x in the partition number, usually 1, i.e. /dev/sda1

The other is probably /dev/sdb1, so do the same thing but substitute b1 for a1 in the above mount command.

If the target drive is Windows format, but you want a Linux format

[ root@adrienne ] $ mkfs.ext4 -F /dev/sdb1

If the drives are attached to the same chassis, this command will copy the files with all necessary hard and soft links, permissions and other file attributes:

[ root@adrienne ] $ rsync -avH /mnt/sda1/* /mnt/sdb1/

If the drives are connected to separate chassis, the technique of setting up static network interfaces in a live CD environment is too complex to explain in a forum post. But if the machines are networked by DHCP

[ root@adrienne ] $ netcat -l -p 1234 > /

on the target machine, and:

[ root@adrienne ] $ rsync /mnt/sda1/* | netcat 192.168.0.1 1234

on the source machine, executed in that order, will move the files as files. Then you can boot from an install CD and use the rescue system to install the boot loader. The process seems daunting at first, but walking is daunting in the beginning. Yet all learn how. I have the utmost faith in your ability! Stick to it and get it done! A ton of inspiration is worth an ounce of perspiration, but persistence is priceless.
 
  


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
Need more details on how to clone a larger disk to smaller with cp Mountain Linux - General 27 07-13-2010 11:04 PM
autoexpanding zfs on adding larger drives madivad Solaris / OpenSolaris 1 03-19-2008 03:42 AM
Can I use larger hard drives? JosephS Linux - Hardware 6 08-16-2007 08:23 AM
2 hd scsii drives on 1 conrlr, only the smaller is recognized asime Linux - Hardware 4 02-26-2007 11:15 AM
Why doesn't fat32 work on smaller drives? weblion General 3 04-05-2002 06:38 PM

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

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