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


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

Software :: Cloning Centos As An Exact Image?

Sep 1, 2010

what is the best software for cloning my centos as an exact image?

View 1 Replies View Related

General :: Cloning PC Image To External - Read Error

Nov 2, 2010

I have a pc I want to clone and it has 2 partitions sda1 which is vfat and sda2 ntfs. When I had mounted my external hdd it was seen as sdc1 and my Knoppix boot as sdb1. I tried using the following command to copy the pc image to my external but when it gets to 26Gb it gives read error.

mkdir -p mybackup
mount -t ntfs -o rw /dev/sdc1 ./mybackup
dd if=/dev/sda of=./mybackup/780.iso bs=4096 conv=notrunc,noerror

Where am I going wrong? Is there anything wrong with my above commands?

View 3 Replies View Related

CentOS 5 Hardware :: Cloning Image Of Hard Disk

Nov 7, 2010

I just invested nearly 12 hours configuring a CCTV system using CentOS 5.5 Server and Zoneminder. I have it setup just the way I want it. I would like to make a clone image of the drive just in case disaster strikes (lightning strike, failed hard disk, etc). In the Windows PC world, I use a program called Ghost to make a mirror image of a hard disk. I power the computer down, run Ghost to make a block level clone of the drive, then power it back up. Can I assume that will work with CentOS without problem?

In the computer now is a 320GB SATA drive. One partition on it is swap, and the other is ext3. There is no raid setup on the drive. I have an identical 320GB drive I could use and keep it in the computer unplugged from the power and not spinning. That way if anything ever happens, I can power down, move the power and data cable to the new drive and power it back up. Granted, I will lose any new config and database changes, but it will be a lot better than starting back at square 1 and reconfiguring the entire OS and software.

View 10 Replies View Related

Server :: Image Cloning Application (Running Backup Remotely)

Jan 14, 2010

I need to backup my active production servers (yeah it's too late now) with image cloning application that were running RHEL3-5. The problem is I need to run it remotely from my office. Most of the software I found either need to use bootable cd or need to unmount my partitions which is I wasn't allowed to since it's a production servers. I also tried dd but it consume too much time, sector by sector cloning and empty disk space also included so the file created also big in size.

View 4 Replies View Related

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 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 :: Mounting HDD Image Of LVM Partition

Mar 13, 2010

I have a dedicated server that Ubuntu 9.04 operating system has been installed on it. Before this dedicated server, I had another server that according to some reasons, it was put aside and I requested my datacenter support team to attach previous server's HDD to my new server in order to transfer its information to the new server's HDD. On the disks of previous HDD, Ubuntu 8.04 LTS OS had been installed and most of its capacity was full, but while I mounted that HDD on the new server, the contents of the primary partition were visible but the contents of the extended partition weren't visible. After some inspectings, I observerd that the extended partition type is converted to LVM. Before this, I didn't deal with this kind of partition. I tried to mount this partition but I failed. I read many articles about this problem and implemented instructions on the HDD but the LVM partition was never mounted that returns many different errors and even I pursued the reasons of this errors but non of these remedies didn't solve this problem. Since the datacenter had determined a specifies time for transfering information. then I had to return the SCSI HDD on the specified time, so I was forced to make an image of the hard disk by "TestDisk" software. I've made that image from the LVM partition which its capacity amounts to 150 GB but still I'm not able to mount the image according to instructions on the different related websitres. Since I'm really dummy in Linux Fle System field, I request you to help me to mount this image or extract its contents.

View 1 Replies View Related

Ubuntu :: Create An Image For OS Partition?

Oct 30, 2010

Ok, have a system with 10.10 with the things I need, I installed this OS on a laptop which has a 40gb drive. 32-bit version. Before installing ubuntu i had Windows7 and had split the drive in 2 partitions (20/20) and currently have an image of the Windows7 OS in the 2nd partition.

Anyway, when installing ubuntu i used the 1st partition that has Windows7 OS and made 3 partitions out of it:

-12gb partition for /root
- 3gb partition for /swap
- 5gb partition for /home

In the Windows world i use Ghost utility(DOS version) to image my single Windows7 partition completely. This works fine.

Since in ubuntu we usually create multiple partitions,

1-what utility can be used to create an image of the partition ?

2-do you JUST create the image of /root ?

I really want to create an image now that i can then restore if something happens to the OS and be back in business quickly without reinstalling ubuntu from scratch.

View 3 Replies View Related

Ubuntu :: Create A Image Of A Partition Using Dd?

Mar 25, 2011

I want to create a image of a partition using dd. The partition is 80GB but only 15 GB are used. I booted from a live CD and run this command to backup 20 GB

Code:

dd if=/dev/sda1 of=/mnt/backup/OLD_HDD/sda1.img bs=1M count=20480

The command finishes without problems but when I mount the image I'm cannot read the content :

Code:

# mount -o loop /mnt/backup/OLD_HDD/sda1.img /mnt/sda1/
# ll /mnt/sda1/
ls: cannot access /mnt/sda1/proc: Input/output error
ls: cannot access /mnt/sda1/usr: Input/output error

[code]....

View 4 Replies View Related

Ubuntu :: Expanding Partition And Restoring Image?

Mar 10, 2011

Here is the scenario:

I have triple boot
Win 7 32 bit on hard drive 1
Win 7 64 bit on hard drive 2
Data partition accessible by 3 OSs
Ubuntu 10.10 on hard drive 2

[Code]...

Everything is working great. I'm using Windows Boot Loader (used easybcd to attach Ubuntu).

I want to expand /dev/sdb3 to have more space for Ubuntu. I am able to shrink the data partition /dev/sdb2, which leaves an unallocated space. I have backed up /dev/sdb3 using Paragon software.

My question is, what is the best way to expand the /sdb3 partition into the unallocated space and restore the ubuntu image backup so that it will use up all the space (unallocated and current /sdb3)? I don't want to screw up since everything is working properly, I just want some more space.

View 5 Replies View Related

Ubuntu :: Can't Mount NTFS Ddrescue Image Of Partition?

Jun 14, 2010

I am trying to recover some important data from a 273 gig NTFS partition that was used in windows 7. The laptop was dropped and would not boot the next day. As an external drive I could see 2 smaller partitions (30 gig and 500 meg), but the main partition was RAW and requesting to be formatted... so I came to learn about Knoppix 6.2.1 as my live boot cd and ran ddrescue to recover an almost complete image of the bad partitionddrescue -n /dev/sdc1 /media/sda1/image.img /media/sda1/logfile.logI then ran it one more time:ddrescue -r 1 /dev/sdc1 /media/sda1/image.img /media/sda1/logfile.logthe image was made with 741 errors (amounting to 160 megabytes)So Now I have my partition as image.img which I want to mount.

First I tried
sudo mount -t ntfs -o loop /media/sda1/image.img /mnt/recovered
sudo mount -t ntfs -o loop,force /media/sda1/image.img /mnt/recovered

[code]....

View 1 Replies View Related

Hardware :: Mounting ISO Image To Partition

Feb 8, 2010

I wanted to know if it is possible to mount an ISO image to a partition and boot from that instead of a CD or DVD. I know it is easy to do it from a CD but I would like to know if I can also do it this way.

View 3 Replies View Related

OpenSUSE :: Mount An Image From A NTFS Partition?

Feb 5, 2010

I try to mount an image from a NTFS partition. Below is not working.

sudo mount /windows/D/img/XPLANE9.mdf /media/XPLANE9/ -t iso9660 -o ro,loop=/dev/loop0

View 2 Replies View Related

General :: Mount A Partition From Dd-created Image Of A HDD

Mar 7, 2010

I have an image of the entire disk created using dd. The disk structure follows:

The image was created using:

How would I, if it is possible, mount /dev/sda1 from the image so that I'm able to read the contents?

It's not an option to clone the HDD again, I know how to do it if I had only cloned the single partition by itself. I hope it's still possible with the current image.

View 3 Replies View Related

General :: Program To Make Image Of Partition

Mar 1, 2010

What is good program and that is easy to use to make a image of a linux partition

View 3 Replies View Related

Server :: Format Ext3 Fs On A Partition That Is Under Lvm Image ?

Sep 14, 2009

I have a lv image = /dev/vg0/server01. I create a partition using fdisk /dev/vg0/server01. Now, i have a partition under lv image = /dev/vg0/server01p1. how do i format /dev/vg0/server01p1 to ext3, it seems that the system doesn't recognize the partition under /dev. the purpose of this is to fully restore filesystem on domU (xen).

View 4 Replies View Related

Software :: Copy Partition Everyday To A Image?

Sep 1, 2009

I have 2 partitions on my hard disk1. sda1 is ext3 partitoins with MINT linux2. sda2 ntfs partitions with my files and movies I want to copy, make backup of my sda1 partitions and store it to file (image) in some folder in sda2.In windows I have made that many times with Acronis and ghost, but I dont know how to make it in MINT.Is there some manual that explain that.

View 13 Replies View Related

General :: Mounting A Multi-partition Disk Image?

Nov 16, 2010

I downloaded an raw SD card image that has two partitions. It caused some file system errors when I tried to dd it directly into an SD card. I am not sure if the card is defective or the image. Is there a way to examine this image without writing it to a physical card? Like trying to mount the partitions separately or checking the tables?

View 2 Replies View Related

General :: C - Mount NTFS Partition Image From File?

May 31, 2011

i need to mount at least for read access NTFS-based partition image on linux from a file. File is binary copy of a partition. Is there any libraries or resources for this?

View 1 Replies View Related

General :: Partition Layout For SSD One VirtualBox Image + 3 HDDs

Aug 21, 2011

Yesterday I got my new workstation featuring:

120 GB - OCZ Vertex3 MAX IOPS
300 GB - Western Digital Velociraptor (10k RPM, about 4ms avg. seek)
2x2TB Samsung Ecogreen F4

The system will be running Ubuntu with the main purpose of doing lots of Java development. Occasionally I have to develop Java in a Windows VM; for this I need fast VMs. I read a lot about SSD wear and maybe it is a bad idea to put the Eclipse workspace on the SSD, because of all the little writes the builds do. Perhaps the workspace (and thus /home) might find a better place on the Velociraptor which is real fast. How should I partition the whole thing to get the most out of it. LVM might be an option, too. Maybe putting a third partition on the SSD for one VirtualBox image. Currently I am thinking:

SSD: 2GB /boot, remaining space for / Velociraptor: LVM spanning the whole drive. 150GB /home Remaining Space for /virtualMachines or something like that Samsung drives (LVM over both or one Volume Group for each? - Latter would be better in terms of data security, because if one drive in a big volume group fails everything is lost)

View 1 Replies View Related

General :: Can't Copy The Disk Image Over To Ext3 Partition

Jan 6, 2011

I recently installed Linux to run a few Linux based tools on a disk images I have, and I can't seem to copy the disk image over to my ext3 partition.

The particular distibution I'm using is BackTrack 4 r2, which is Ubuntu based. I can't seem to find specifically which version of Ubuntu is being used. The disk image is 108GB. It is currently located on a NTFS partition on a SATA hard drive connected directly to the computer. The ext3 partition is located on a second SATA hard drive connected to the same computer. It has 200GB total. I do not remember exactly how much free space it had but "df -h" showed a lot more than 108GB. The computer has 4GB of RAM and I gave it 8GB of swap space.

At this point it has been running for more than 12 hours. This is far longer than I would expect it to take had I been copying the file under Windows. How ever I do not have much experience with Linux, so if it's supose to take this long please let me know. I am planning on letting it run until I wake up tomorrow.

"cp -v" hasn't been very verbose at all. The only sign I have that indicates the computer is still trying to do something is the HDD light on my chasis that has stayed lit this whole time.

View 4 Replies View Related







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