Ubuntu :: Cloning From One Partition To Another?

Aug 10, 2010

I had to change my disc for a bigger one, and i want to transfer all my dataconfigurations, etc to a partition in another disk, a simple ctrl C, ctrl V will do or theres a specific tool that i need? I dont want to download all the updates, programs and go through the hassle of reconfiguring everyhtingmy new disk have windows 7 and i installed a fresh ubuntu on it but i want it to be a clone of my old onePS: i just notice now that grub no longer recognize both win7, the old and the new. What's wrong?

View 3 Replies


ADVERTISEMENT

Software :: Cloning Partition To Different Laptop - Invalid Partition Table

Nov 19, 2009

I'm trying to clone a Linux install to a different laptop. It's made a little complicated by two facts:

1) The 'new' laptop I'm trying to copy my Linux installation to is actually older and has a smaller hard drive then the computer I'm copying from

2) The computer I'm copying from has both a windows and Linux installation; I only care about the Linux partition.

I figured I would copy only the Linux partition from my primary computer to the laptop, sense the laptop doesn't have a large enough hard drive to copy everything. So I used the DD commands to copy SDA3 (main Linux partition) from my main computer to SDA2 of my laptop. When I came back a few hours later I was surprise to find my laptop trying to reboot itself (I never turned it off). It would keep starting to reboot, failing, and restarting itself. Not too surprising sense its boot partition wasn't changed so it's trying to boot into centos when I copied a redhat partition to it.

The problem is that when I used a redhat boot disk the rescue mode was unable to find a Linux partition to mount. /dev/sda2 exists, but trying to mount it gets the complaint "No such file or directory". "fdisk -l" lists sda1 (the boot sector) and sda2. Sda2 is the correct size and reports Linux LVM for its system. But "fdisk -l /dev/sda2" gives the error message "Disk /dev/sda2 doesn't contain a valid partition table" Did I not clone the drive correctly, or was an error caused due to the boot sector not being copied yet (the laptops boot sector is smaller then my old computers, so I can't copy from old computer to laptop)? Can I salvage the laptops partition table somehow, or do I have to repeat the cloning process? And if I do have to re-clone my computer can anyone tell me what I did wrong the first time so it works this time? I don't care if I copy just the Linux partition or both windows and Linux. Even though my main computer has a larger hard drive I'm only using about half of its available space so it should be possible to copy both partitions if I could ignore the unused sections of the harddrive.

Edit: I used DD to copy a tiny part of the Linux partition from my laptop so I could look at it. Most of it is illegible binary of course, but I scrolled through till I found some text right near the beginning:

Code:

VolGroup00 {
id="F2MWxh-....-BidcLe"
seqno = 1

[code]....

So it seems that the DD command did copy everything over to the laptop, which is good to know. I noticed that it says device="/dev/sda3" right in the middle of the code I just posted. The Linux section of my original computer was SDA3 but I copied it to partition SDA2 of my laptop. So is the problem because the boot partition is for the wrong device? I don't suppose if I modified that one line to say SDA2 it would be able to load correctly? (Not that I know how I would modify the line, short of using the DD command again).

View 8 Replies View Related

Ubuntu :: Dd For Cloning An Image To A Partition?

Apr 13, 2011

have a binary image that I can copy to a partition and have done so successfully in the past. The image is smaller than the partition size, and everything is all good. However, I noticed that in copying the 5 gb image to the 9 gb partition there are 4 gb that are unnoticed by the system. It still registers the partition at the correct size in Gparted and Disk Utility.

View 3 Replies View Related

Debian :: Cloning HDD Partition To SSD

Aug 4, 2011

Recently purchased an SSD drive to replace my existing mechanical drive. My source hard drive is a 750gb and destination SSD is 256gb. My current partition setup on my source drive looks like this:
/home 639 GB, 137GB used
/ 46 GB, 6.4GB used

My destination SSD drive's partition table current looks like this:
/home 238 GB
/ 18 GB

I originally was going to use Clonezilla to do the partition copying but found out that the destination partition must be equal or larger than the source one.

View 3 Replies View Related

Ubuntu :: Cloning One Partition In Dual Boot

Oct 16, 2010

I have a dual boot and every program I try to clone the ubuntu partition seems to want to have the entire hard drive to clone to.In other words, if I attach an external hard drive and select the ext4 Ubuntu Linux to clone to a purposefully made ext4 partition in an external drive - every program wants to copy to the entire external hard drive.Any suggestions?I think that clonezilla allows more freedom but I just dont quite get it - the options seem a little confusing in that I am worried that I will copy the partition back to my actual machine.

I am probably being a bit paranoid, but if anyone can think of a simple program that allows me to simply copy one partition to another purpose made (external) partition then please let me know!!

View 3 Replies View Related

Ubuntu Installation :: Can't Resize Partition After Cloning Disks

Nov 8, 2010

I bought an 1tb hard disk today and cloned my old 160gb ubuntu install to the new disk using gddrescue (from this tutorial [URL]) and everything worked fine. The problem is that I can't resize my home partition to fill the rest of the disk. I've tried using a live-cd and booting from my 160gb hard disk but I still can't resize the partition.

Here's the "sudo fdisk -l" output:

Quote:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

[Code]......

View 2 Replies View Related

Debian Installation :: Cloning Partition To A Bigger One

Dec 4, 2015

I have read several manuals and online html on how to clone a partition to a greater one, I am still not sure about what to do.

Code: Select all# df -k /srv /usr
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/md5        38445384  195236  36297128   1% /srv
/dev/md3         8648896 1088016   7121540  14% /usr

What is the recommended procedure to clone i.e. /dev/mdx (/usr) partition to a greater one, say /dev/mdy, to accommodate for growth, whilst preserving attributes including timestamps (and yes, that means also including ctime).All of # cp -ax SOURCE DEST, # rsync -ax SOURCE DEST and # cpio modify ctime.Some sites recommend dd, i.e.:

Code: Select all# dd if=/dev/mdx of=/dev/mdy bs=512 conv=noerror,notrunc,sync

URL....However, I am not sure what will dd copy do with end of partition, and will it see the remaining space on /srv (it's contents are dummy and will be overwritten).

View 8 Replies View Related

Fedora :: Cloning A Partition To A Bigger Drive?

Jul 28, 2011

When I first switched from windoze to Fedora I trimed a bit of space off the end of the HDD, formatted it to ext3 and installed Fedora 14 there. I have now completely rebuilt the machine and put a 2TB drive in. My intention was to upgrade to Fedora 15, but after a few weeks trying to get the new gnome to anything resembling useful, I gave up and decided to go back to the reliable 14.

I tried the old drive, and everything worked great, so I though no problem, clone that over to the new drive, and job done, no need to mess about for weeks getting all my settings back. I booted from the old drive with both connected and ran gparted, It sees both drives but won't let me copy the old partition. It complains about 'LMV is not yet supported' I tried booting from a gparted ISO with the same result.

How can I get this sorted? I've got work needing done, I don't have time to start from scratch (*AGAIN*),

View 10 Replies View Related

Applications :: Clonezilla - Cloning A Drive To A Partition

Oct 3, 2010

My dad passed away 2 years ago and he had a toshibia laptop, and today I've decided to start using it. I would like to reformat it to Arch Linux from Windows XP.

He has a 80gb hdd with everything on one partition (thats how windows does it). I would like to create another partition (~20gb, and I know how to do this) and have clonezilla clone the main partition and save it to the 20gb partition. This is because you can't clone and save to the same drive unless its partitioned. (I'm saying partition lot).

Anyway my fathers computer is very important to me, and having it remain intact as he left it is very very important to me. I know the easiest and most sarcastic response is to tell me not to use it, but I want to use this computer.

Does anyone have experience with clonezilla? Will it back up the ENTIRE HDD like it says it will, without missing any important documents and files scattered throughout the disc? And when I do finish the cloning, format, and at a later date restore using the image I copied, will it be like I never touched it?

View 1 Replies View Related

General :: Cloning A HD Or Partition Onto A Different Hard Drive

Nov 2, 2010

I want to move the entire contents of my backup HD to another HD. I could manually copy everything, but I was hoping to clone the entire backup hard drive. I tried to do it with Gparted, but as far as I can tell, I can't clone between drives, only between partitions on the same drive (I've done that before). So how can I do this in Linux? I think one of my drives came with a cloning utility on a CD, but I'm not sure I still have the CD.

View 2 Replies View Related

Ubuntu :: Cloning Root Drive From Large To Small Partition?

Nov 12, 2010

i am running ubuntu 10.10 and windows7 on a asus eee 1015. currently i have two partitions: 80GB for windows (NTFS) and 160Gb for Ubuntu (ext4).

I want to:

- shrink the windows partition (easy, no worries);

- Shrink the ubuntu partition

- join the space thus created in a third partition that i can use for storage, media etc accessible by both windows and ubuntu

The problem:

- i could not manage to get gparted live to run off USB stick (i get the unable to find medium.... error)

- even if i would get gparted to work and i succeed in shrinking the ubuntu partition as well, the two spaces reclaimed will be divided by the ubuntu partition, which means they cannot be joined in a third partition.

so here is what i want to do:

- shrink windows and create a new partition;

- format this new partition as ext4;

- somehow "clone" the data on my current ubuntu root into the new partition;

- format the current root as NTFS and use it as the storage partition

i am aware this may mean i would have to re-set grub etc but would the cloning of the partition be possible? that i would need to clone data from a 160G partition into a 40G partition.

BY THE WAY - forgot to mention that i have tried to load clonezilla off an USB drive and i get the same error: "unable to find medium..."

View 3 Replies View Related

Ubuntu :: Directly Cloning Old HDD To New One?

Mar 28, 2010

I was wondering how can I clone old hdd to new hdd directly. Is this right procedure?
sda is new hdd
sdb is old hdd

Code:
sudo sfdisk /dev/sda < sudo sfdisk -d /dev/sdb
cloning ntfs partitions.(X are ntfs partitions)

Code:
sudo ntfsclone --overwrite /dev/sdaX /dev/sdbX
cloning other partitions.

Code:
sudo dd if=/dev/sdbX of=/dev/sdaX bs=8MB

View 1 Replies View Related

Ubuntu Installation :: Cloning OEM To 20+ Machines?

Apr 26, 2010

We are giving away 20+ machines to 3rd world county and I was asked from the receiving party to install linux on them. What I don't want is to pop a cd into all of them and do the manually install.

I'm thinking of installing one computer the old fashion way and do the OEM-configuration on it afterwards. It would be nice to just clone the hard drives since the computer is identical right down to the hard drive.

View 7 Replies View Related

Ubuntu :: Cloning Drive With Dd From 10.10 Installer CD

Nov 1, 2010

I am trying to clone my internal drive on my laptop using the dd command after starting up my computer using the 10.10 installer CD. Nothing happens when I follow the instructions from this site: [URL] When I follow these instructions, it doesn't work. I know that I am not being specific here but all I can say is that nothing happens. What am I doing wrong. My internal drive is 250GB and the partition I created on my DOS formatted external drive is 250GB as well.

View 9 Replies View Related

Ubuntu :: Cloning Disk W/o Unmounting

Apr 18, 2011

I've spent the better part of an afternoon looking for a solution to a problem: backing up my installation of 10.10 as an image file to an external hard drive. My research has yielded a lot of suggestions for clonezilla, dd, and partimage/particlone, but those don't seem very appealing, due to a number of issues (can't backup live, copies free space as well, doesn't handle ext4, etc). Also why is clonezilla 150mb?

I'd like a simple solution that can clone an entire disk (used space only) to an explorable image file on a separate hard drive and be able to do it while the operating system is running on the disk. I used to use apricorn ez gig to do this on windows and it worked like a charm, but I can't seem to find a similar solution that creates and explorable .iso image file with linux. I've used superduer on osx, which is awesome and i wish there was something like that for ubuntu/linux.

View 3 Replies View Related

Ubuntu :: Disk Cloning With Clonzilla Versus DD

Jan 1, 2010

Is there any reason why is DD still prefer over clonezilla for disk cloning?

View 6 Replies View Related

Ubuntu :: Cloning Or Echoing Files And Folders

Jan 27, 2010

I need to backup my data through the cloning or echoing option, which means I want to have my new files/folders in the left copied to the right, replacing older files if that's the case, but I also need the deleted files and folders on the left to be deleted on the right.

I'm using Conduit right now, but it doesn't clone folders/files, also tried Synchrorep but the same issue. Should I try Unison or Rsync? Will they offer this option? Other options?

View 3 Replies View Related

Ubuntu :: DD And Cloning External Harddrives Of Different Sizes?

Feb 17, 2010

In the past, I have used dd to replace (as well as overwrite) hard drives.

If you do a direct clone of a drive, you are supposed to make sure the target drive is the same size as the source drive.

It is quite important that I am able to clone a failing drive (250GB), however, my only other drive available is a completely new 1TB external hard drive from a different manufacturer.

Is it still possible for me to safely clone the failing drive? If yes, how would I go about doing this? Make a 250GB partition on the 1TB drive?

If I use the TB drive as a "temporary backup", and once I have copied over with dd burn everything directly to DVDs, and then restore the TB drive to it's original state, will this be able to be done?

View 6 Replies View Related

Ubuntu :: Ghosting / Cloning From One Hard Drive To Another

Mar 1, 2010

Is there a utility app that will allow 'ghosting' your current Linux harddrive to another. For example, my current drive is 40Gb, I'd like to ghost/clone it to a 320Gb harddrive. Using an app like this saves re-installing the O/S, software, configuration and allows making a disaster-recovery drive.

View 3 Replies View Related

Ubuntu Installation :: Cloning 8.04 To Notebook - No CD - No Boot From USB

Mar 8, 2010

I have a busted XP notebook, no CD, no boot from USB. I have the option of booting from network, my provider wants to charge me to set up a static IP address I'm hoping to just plug in to my working 8.04 install with a cat5 cable or through a simple workgroup switch & get the basics installed where would I find such a procedure?

the gateway notbook hangs, part way through the restore [xp] process, I can only get to bios & restore, no dos prompt I don't care about any of the info or having XP I know the HDD may be bad

View 2 Replies View Related

Ubuntu :: Cloning Drive Speed With Dd Or Ddrescue?

Apr 22, 2010

I'm trying to make an image of my whole hard drive (320 GB) to save on an external hard drive. I'm using Ubuntu Jaunty Live CD to do it, with this command

Code:
sudo dd if=/dev/sda | gzip -c > /media/ExpansionDrive/imagedd.img
At the beginning everything is going fine, but after few hours the transfer rate is incredibly low. After 1/2 hour, 20 Gb have been copied.
After 1 hour, 27 GB
After 2 hours, 40 GB
After 4 hours, 54 GB
After 8 hours, 71 GB

Is it normal? I've also tried to use ddrescue, but I have the same problem. Is there any other tool to clone hard drive with a constant transfer rate?

View 1 Replies View Related

Ubuntu Installation :: Cloning To Smaller Disk?

Jun 3, 2010

I have my Mythbuntu 9.10 environment installed on an old 160GB PATA disk and have just purchased a new 64GB SSD that I want to transfer my installation to.In the past I've just used ddrescue to clone disks, however in this case the source disk is larger than the destination disk so it won't work. I only have a few GB of actual data on the 160GB disk, so the 64GB SSD is definitely going to be enough for me.

I guess I need someway of either cloning so that only the actual data and not the partition is brought across, or possible shrinking the partition(s) first on the source drive and then using the same ddrescue method I've used in the past.Just looking for some assistance on what method is the best/most reliable?

View 8 Replies View Related

Ubuntu :: Cloning Bootable Hard Disk

Feb 21, 2011

Recently my had disk crashed. It has taken me over a day to install and setup the drive - time I can't really afford. I'd like to know how I can clone a second as a bootable copy of the main hard drive and update from time to time. Therefore if the main hd fails again, I can simple boot from the second drive.How can I do this? I have two sata drives in the box, running 10.10 desktop.

View 1 Replies View Related

Ubuntu :: Cloning Bootable Hard Disk?

Mar 2, 2011

Recently my had disk crashed. It has taken me over a day to install and setup the drive - time I can't really afford.I'd like to know how I can clone a second as a bootable copy of the main hard drive and update from time to time. Therefore if the main hd fails again, I can simple boot from the second drive.

View 1 Replies View Related

General :: Cloning Using Clonezilla On HDD

Jul 28, 2010

I want to clone my fedora8 HDD using clonezilla.I have downloaded,and want to boot from that.I have created one partition sda8 with 740 mb and formatted with ext3 and mounted that on /mnt. I have extracted the files onto /mnt from clonezilla zip file. I appended the necessary lines told by website to the grub.menu.lst , after rebooting when i select that clonezilla from grub,it was telling unrecognized format and cant mount the partition.

how to mount the partition permanently in fstab. Tell me how to modify the grub file to work correctly to boot from that partition.

Output of fdisk

Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa95ea95e

[Code]....

View 2 Replies View Related

Programming :: Cloning USB Drives Using C++

Feb 23, 2010

I have a device running Linux, which has a master USB and 16 Slave USB's. I need to make the slaves identical to the master.

What i'm doing is reading bytes from the master by reading /dev/sd{master} and writing to /dev/sd{slaves} . I am doing this since I need to display progress of the operation.

Do you think this will pose any problems? Is there any better technique?

Also, if the source drives size is smaller than the dest drive, will it create any problem....or will the USBs still be identical after that..

View 3 Replies View Related

Ubuntu :: How To Create Bootable Cd With Disk Cloning Software

Feb 3, 2010

I'd like to have a bootable cd which then allows me to clone a hard drive, much like the "Ghost" application. I need to copy Fat32, NTFS, as well as the various Linux formats. I've not created a bootable cd before, so a step-by-step would be rather handy.

View 2 Replies View Related

Ubuntu :: Cloning A Large Disk With Little Actual Used Space

Aug 10, 2010

I need to clone a laptop drive to a desktop drive. The laptop drive disk is 150 gb, however, only about 8 gb is used. Is it possible to clone this disk to a smaller drive?

View 3 Replies View Related

Ubuntu Installation :: Cloning (10.04 Desktop) From The Old Boot Drive Onto The New SSD?

Oct 2, 2010

I would like to replace my old 100gb boot drive in my server with a new SSD...for obvious reasons. So what is the best way to clone the existing installation (10.04 desktop) from the old boot drive onto the new SSD? I have read some guides online that suggest using the live CD and various software packages but most of them say it will only work if you are cloning to a disk of the same size or larger, nobody seems to address taking an installation from a larger volume down to a smaller one - in my case a 100gb IDE onto a 30gb SATA SSD.

As this is a datadump, the only drives I really care about are the various 1.0/1.5tb drives that actually store the data, the OS drive contains nothing more than the standard OS, samba/webmin and a few monitoring tools. So I guess it's not the end of the world for me to start fresh and install 10.10 next week, but I would like to know for the sake of this upgrade and future ones if anyone can be of assistance. basic specs if needed: Athlon64 X2 3800, 2gb DDR500, Asus A8N SLI Premium (Nforce 4/Silicon Image 3114R RAID controller). OS is on a 100gb IDE (WD1000BB-00C) and I would like to toss it on a Kingston 30gb SSD (SNV125-S2/30).

View 5 Replies View Related

Ubuntu :: Permission Denied (cloning Hard Drive With A Img)

Dec 31, 2010

Code:
user01@ubuntu:~$ sudo gunzip -c /media/xbox/xbox_image.gz | dd of=/dev/sdc
dd: opening `/dev/sdc': Permission denied
[sudo] password for user01:

[Code]....

I'm getting Permission denied even though I'm putting sudo in front of the command but, instead of asking me for a pass word it just says Permission denied "then" it askes for a pass. I enter the pass and it just takes me to the

user01@ubuntu:~$

prompt. I enter the command a second time and it says Permission denied again.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved