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
ADVERTISEMENT
May 28, 2010
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?
View 4 Replies
View Related
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
Jan 1, 2010
Is there any reason why is DD still prefer over clonezilla for disk cloning?
View 6 Replies
View Related
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
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
Jun 14, 2009
just wanting to know if anyone has implemented Fog (fogproject.org) on openSUSE. We use it at work throughout our enterprise for reimaging machines and it works very well.
View 4 Replies
View Related
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
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
Jul 10, 2010
I need to clone a 160GB hard drive with Linux Mint 9 (not more than 10GB used) to a 30GB SSD that is partitioned carefully (aligned to cylinder boundaries) and is currently running Ubuntu (which I wish to overwrite with Linux Mint 9). The SSD has a /boot partition, / and swap. The source (160 GB) does not have a separate boot partition. Can anyone help me fill in the steps below? /dev/sdc will be the source (160GB) and /dev/sda is the target (with partitions 1,2 and swap on 5).
make a copy of /etc/fstab from the target drive before proceeding. Ready the target partitions. Can I reuse the existing destination partitions on the SSD? Ready the filesystems on each of the target partitions. /boot is ext2, / is ext4 and swap is already set up too. As I said, all contain data (Ubuntu) that I wish to overwrite. So what steps are needed here? Do I need to erase anything (files, etc.) before the copy/clone? next, use dd to copy MBR (right?) And exclude partition table:
Code:
dd if=/dev/sdc1 of=/dev/sda1 count=1 bs=446
Mount the source and destination drives:
Code:
mount -t ext4 /dev/sdc1 /mnt/source
mount -t ext2 /dev/sda1 /mnt/boot_target
mount -t ext4 /dev/sda2 /mnt/root_target
I suppose I can leave the swap partition on the target untouched. Copy the files from the source partition to the destination
Code:
cp -a /mnt/source/boot /mnt/boot_target
cp -a /mnt/source/ /mnt/root_target
then I assume I go to /mnt/root_target and delete the /boot directory, right? Change /etc/fstab to reflect the new partitions. I mount by label. Will my partition labels be intact after this? Do I have to make any changes to GRUB? Anything else?
View 14 Replies
View Related
Jan 17, 2011
I use dd in its simplest form to clone a hard drive dd if=INPUT of=OUTPUT However, I read in the manpage that dd knows a blocksize parameter. I was wondering whether there is an optimal value for the blocksize parameter that will speed up the cloning procedure?
View 4 Replies
View Related
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
Aug 18, 2010
I'm looking for some help on this issue. I have an image (Windows XP) made with CloneZilla of a 160Gb disk (used space = 11Gb) and I 'need' to restore that image to a smaller disk (120Gb). In order to try everything out I created a virtual machine in VMWare. I've tried about every option available in CloneZilla without succes. The latest thing I tried was using dd to just copy over the partition to a created partition on the smaller disk but when booting I got:
Code:Booting...Error loading operating system.Then I thought installing the image to a disk with the same size, resize the partition with GParted and make a new CloneZilla image, but for some odd reason (typical to Windows) when booting I get a BSOD, impossible to read. The BSOD happens when booting from the disk with the same size, before resizing the partition. This also is a virtual machine.Can anyone point out what I'm missing? Or, if anyone has succesfully done this, how did you go about it?
View 1 Replies
View Related
Jan 13, 2011
I am looking for an Open Source software making it possible to make a disk image of an Ubuntu installation as well as a Windows XP installation.I have checked out Clonezilla which almost solved the problem. However, the disk to which you restore needs to be the same size or bigger. I want to restore the whole thingo a smaller disk than the original.I am considering getting myself an SSD disk which will be considerably smaller than the 160 gb disk I have right now. I need it to work for Windows as well. Unfortunately I can't get rid of Windows quite yet I often participate in webinars on GotoWebinar and they do not support Linux ...
View 9 Replies
View Related
Mar 21, 2011
I cloned F14 with Clonezilla from 80GB to 320GB hdd(both sata disks), and then resized the partitions with GParted.But I can not boot into fedora on the new/bigger disk, it stops and the display writes "Loading stage 1.5" if I remember corectly,I tried to fix it with the live cd but with no efect.
Then i found Super Grub Disk live CD, and with that i tried to use their fix, which was the same as with the Fedora live cd i tried before, again no efect.Then i played around with Super Grub, and found the option to boot GNU/Linux indirectly, and with that metod i got results, found my menu.lst file and chose the kernel i wanted and it boots into desktop.
But i would need a more permanent solution, because now i allways have to use the same procedure with Super Grub Disk CD to boot into my Fedora 14.
View 3 Replies
View Related
Jun 21, 2011
I have an Ubuntu server and i've installed drbl-clonezilla to clone and restore pc, I have a 40 gigabyte image to be deployed on other pc's with larger hard drive ex. 160 GB or 240giga, my problem is that when I deploy the image on a larger disk I end up with a disk with a partition of 40 GB and the rest unallocated, how can i restore the the disk and use full disk space, the goal is to automate the process. In clonezilla-drbl there is the possibility to start a "prerun" and "postrun" fonction that could help complete the deployment process.
View 2 Replies
View Related
Apr 17, 2011
To make a full backup I run a live Knoppix DVD and clone the computer's HDD to an external HDD using the dd command. Is there a possible problem with the source being copied onto bad sectors on the destination disk? If so is there a way to prevent this from happening? A typical dd command I use looks like: dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror. Is this the recommended command for cloning to a disk of equal size?
View 1 Replies
View Related
Jan 22, 2011
I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller.
Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.
I never faced such problem with older versions of Ubuntu, is there any measure to fix it?
View 6 Replies
View Related
Jan 23, 2011
I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller. Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.
I never faced such problem with older versions of Ubuntu, is there any measure to fix it?
1. There is not any .deb in the /var/cache/apt/archives.
2. The total content of /var/log is only 167.6 MB, that won't be a problem.
View 5 Replies
View Related
Sep 27, 2010
I have a NETGEAR ReadyNAS NV+ with four 1TB drives in a RAID-5 array. This is our primary file storage. This has previously been backed up to a hardware RAID-0 array directly attached to our Windows server. The capacity of this backup array is no longer sufficient. So the plan was, take a bunch of 200GB to 320GB drives (And a 750) I had kicking around, chuck them in a couple of old SCSI drive enclosures I have collecting dust, attach them via IDA/SATA-to-USB adaptors to a USB hub, attach that to the server, create a JBOD array spanning the disks, and back up the NAS to that. Performance is not an issue as this is just to be used for backup, with the idea being as near to zero cost as possible (Spend so far = NZ$100�ish).
The first hurdle I struck was Windows not supporting Dynamic Disks on USB drives (Required to create a spanned volume). At first I resisted using another machine (i.e. a machine running Ubuntu) as I didn't want to dedicate a piece of hardware to backing up the NAS. I then decided it would be acceptable to do this via a VM, which is what I've done.So I have 10.04 running under VMWare Server 2.0.2 under Windows Server 2008 R2. The disks are all presented to the VM. I wasn't sure if I was going to end up creating the array under LVM or something else, but I noticed Disk Utility has an option to create an array, so I tried that. When I add two 250GB drives, the array size is 500GB. When I then add a 160GB drive, the array size drops to 480GB. Huh? If I keep adding disks (Regardless of order) the final array size comes out at 1.8 TB, as per the attached screenshot. Now with the following drives, I expected something more like:
160 + 250 + 250+ 750 + 250 +200 + 200 + 250 + 320 + 250 + 320 = 3.2TB
Am I missing something or making a false assumption somewhere?
View 4 Replies
View Related
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
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
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
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
Aug 12, 2011
Basically I have setup and configured a CentOS 5.6 system on one server, and will be getting a brand new server in about a months time I was wondering if there was a way to clone a system from one server to another so I don't have to add all the users again, the config files are not a issue as I can just copy them over, but having to re-do all the user accounts, smb accounts and folder permissions will be a pain.
View 3 Replies
View Related
Apr 2, 2010
I need to use the drive which currently hosts an Ubuntu 9.10 server install. The Os install was the default Ubuntu partitioning. It created sda1, sda2 and sda5, Linux, Extended and Linux/Swap partitions, respectively. The start and end blocks for sda2 & 5 are the same. I am trying to figure out which method of migration would be the best. I have used ddrescue to clone hard drives and am not sure how this would work when migrating to a smaller HD (Moving from a 74GB to a 36GB). Would it be a good idea to shrink the partition with Gparted or something? The OS is only about 3-4GB.
The other way I could migrate is to use the tar backup I made. It should have everything needed as I used the notes from the Ubuntu Backup How To page. I just don't know how this works when installing to a new hard drive. Would I need to create or edit the MBR of the new hard drive? Can a tar backup capture any of the MBR info?I guess it shouldn't make much of a difference as to which method I use so I am open to suggestions as to which to try and any suggestions as to things to make sure to do.
View 3 Replies
View Related
Sep 5, 2010
I have recently ghosted, using g4u, an 80 gig drive to a 30 gig drive. The data size is about 15 gig so no problem there.The system does work and it doing everything it should, except for some errors in dmsg log.The thing is though, that the system works! all the services are running and live.And i have years worth of customizations in this machine. Has been running for several years, so i dont just want to reformat and reinstall. Its hard to get linux the way you want it sometimes!So my question is this, is there a way to fix my partition or somehow tell the machine what the current boundries <i>should</i> be?
View 5 Replies
View Related
Aug 9, 2010
The company I work for use Ubuntu on the PC's that control the system they manufacture. To simplify and speed up the OS install we use a standard PC (all the same hardware) and install a disk image on each system. The disk image was produced from one of the systems and the network settings were set to use a Static IP
However every time we clone a system the network settings change from the static IP settings to Roaming Mode.
why this happens or if it is possible to have the static IP settings remain after the clone?
View 5 Replies
View Related
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
Feb 16, 2009
is there a way to clone an installation? I have a couple "master systems" which I want to replicate into other servers. In Solaris I can build a flar image from the first one and install from that image, I looked into cobbler and koan, but they seem to be more repo and kickstart oriented.I need a way to say "take this system as a base and build an installation image out of it".
View 3 Replies
View Related