Ubuntu Servers :: Restore Image Via Clonezilla-drbl Smaller To Larger Disk?
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.
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?
I'm trying to restore an image from a 40gb partition(6gb used) to a 100gb partition. I set everything up in gparted and and restored the partition image with clonezilla. In gparted, the partition shows the full 100gb partition with 6gb used, however when I boot windows and open the properties on the C: partition, it shows that it's only 40gb. Is there some setting to restore the partition image and use the full 100gb?
I've been using python's PIL (import Image in py2.5) and the command line utility ImageMagick to add text to images and compose images. I can't figure out how to get the composed image not to crop. That is, suppose I compose A onto B to create C. A is short and wide, while B is tall and narrow. I'd like C to be tall and wide, but instead it has the same dimensions as B.
The width of A is determined by dynamic text. My current solution is to get the width and height of A and B, and then create a maximally sized image, T, onto which I compose B and then A.I'm just wondering if there is some way to streamline this. Can ImageMagick do this for me? These operations take a non-trivial amount of time.
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?
I used Clonezilla an older version not the latest to backup an entire NTFS Windows XP drive to DVD last year. I have a series of three (3) of these DVD's but now cannot restore the backup image back to the same PC. The problem is that when booting with Clonezilla I don't have an option to restore from a CD or DVD drive since the computer comes with two working CD/DVD drives that are detected by the BIOS when the POST is displayed. I used one of these drives to boot with Clonezilla and the other one containing the backup image Disk 1 of Disk 3. Clonezilla only detects the two hard drives and a USB drive which is removable. Is there a bug in the restore process because it allowed me to backup the entire image of the hard drive onto a DVD last year but this time around there are no CD or DVD drive options available to choose other then the CD drive Clonezilla was used to boot up.
we have a Win NT4 system used for an important application used at two places. At one place it has gone bad. I want to create an image from good system and restore it at the second location. Is it possible to do this using "clonwzilla live cd"? Does it harm the good system? Can I save the created image to an USB drive?
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 ...
Simple question, which implies lot of complexity, unfortunately : how to install Clonezilla and mount multi-partitions cloned image disk under DEBIAN ?
Wishing that one day Linux would be so easy and complete as Windows. But we are gaining more users, so Linux will have more apps
Using Samba I have looked into the file that stores all my web sites, there were a few strange files that get larger and larger all the time. File names are _Za01716 and _Za01820, they are nearly 50mb in size now. I know these are not Log files so what are they and can I delete them?
I am having a problem finding a piece of software. I've searched a lot and still have not come up with an answer. My situation is as follows: I have an image file the I wish to restore to my USB flash drive but so far I've had no luck doing this. I was wondering if there was a program/command that could help me restore the disk image.
I'd like to create a boot floppy or CD to restore an image from a harddisk over the network, and it should work possibly automatically. A normal, non-IT user should be able to do it in our branch abroad.
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:
I recently had to restore my system via clonezilla due to hdd failure. I frequently back up my /etc/apt folder as well as some other configuration files and settings that I use in my system to bring my restored image up to date with my ever changing preferences, etc.
I noticed the problem when I replaced the etc/apt folder with my backup version. After replacing the folder, I ran 'sudo apt-get update' and imported a list of all my previously installed software. Then I ran 'sudo apt-get upgrade'. I didn't get any errors at all during any part of the update and upgrade process.Then this popped up in my panel, and won't seem to go away.
I just backed up a complete copy of my C drive which has been partitioned 3 ways to have both windows and Linux mint on it with the loader which comes up when the computer is turned on. My question is that recently I used Norton ghost to backup my system and it failed to reinstall the grub. Will clonezilla reinstall the boot loader on my drive if I make a complete restore of the entire C drive. Is there any thing else I should be concerned about upon restore which I should take into account? I'm fine now but am asking concerning the future possibility of a restore.
restore of Win XP partition - he wants to be able to "press the button" and restore the whole partition with XP using Clonezilla. Is it possible - to do this restore without Clonezilla CD? And he's planning to have 3 partitions on his HDD:Windows XP system partition partition for backing up system partition partition for personal data
I'm having a problem figuring out how to clone and restore partitions from images on a test host, ie. I have different Linux and Windows images in sda2 that I need to restore on sda1 to run tests.
Here's a typical scenario: 1. On a brand new hard-disk, create two partitions, one to hold the OS to run tests, and a second to hold Clonezilla images 2. Install XP in sda1 3. Boot with Clonezilla Live, and save sda1 into an image in sda2 4. Install Linux: It installs GRUB as boot loader in the MBR 5. Save Linux into an image in sda2 6. Restore XP: By default, Clonezilla doesn't restore XP's boot loader, and leaves GRUB to boot XP :-/
How can I force Clonezilla to restore the boot loader in the MBR (while leaving the partition table as-is), so that Linux=GRUB and Windows=NTLDR always?
i've just installed an ubuntu server 10.10 with drbl and clonezilla everythink seems to works fine, i was able to create a new images and i was able to deploy the new images to 6 pc's at the same time via braodcast, but to deploy again the images after each braodcast session i have to stop and restart the "opt/drbl/sbin/dcs" command.i've reinstalled ubuntu again, i've changed the swicth and tried a new network card but problem still persist.
I'm working with Clonezilla to back up my test server, I want to store the image to a partition in our network, for example: my computer. But it still doesn't work. These are my steps:
I reboot my server with Clonezilla CD. I choose device-image I choose ssh_server I choose my network device with dhcp mode I provide the IP of my computer and port 22, then my username I choose the path to my hard drive, like /home/username/backup
But after I type my password to connect, Clonezilla says "remote host has disconnected. Clonezilla image home directory /home/partimag is not a mountint point! Failed to mount other device as /home/partimag! Are you sure you want to continue?"
I try to connect to my computer from another machine, it works, but I don't know why Clonezilla can't.
I have long been using clonezilla as my backup/restore software and have never had a problem with it before, ever. Today I backed up my entire disk (windows 7 and Ubuntu 10.10) and upgraded to 11.04 to try it out. I didn't like it, so I decided to restore the backup. Now I can't boot my computer. It gets to a black screen and nothing happens. No error message, nothing. I can still boot from a live USB (which is what I am using now), and I can also boot from a Windows Live CD. I tried using the MBR repair on Windows and reinstalling Grub through the Ubuntu Live USB. Neither of them have worked. Do you have any ideas what the problem might be?
In 2010 I want to build a new linux box. I currently have a dual-boot system... IDE1 = WinXP 200GB Master IDE1 = Opensuse 11.0 Slave 80GB
I have cloned both drives with CloneZilla (CZ) and restored with it aswell. My 80GB is a Western Digital Caviar Model (WD800BB-00JKC0). The drive I'm thinking of buying is a WD Caviar SE (WD800AAJB) [URL]. Will my restore images work with this drive? Its a 80GB but the model numbers differ. Does it make a difference?
I've been working on getting another OS installed on my computer for one of my classes (OS specific assembly instructions). To get this OS running, I had to start using a GPT rather than a MBR table. I backed up my Ubuntu partition (ext4) using the old-fashioned dd command. I've since been able to get everything working again after a dd restore.
The problem is that my original Ubuntu partition was only about 50GB and the dd image only takes up 40 GB. After I restored the image to the new drive (146BG), gparted is reporting 119GB used and only 26GB free. What can I do to reduce the size of my install to 40GB again?
When looking at the disk in baobab, it says the the filesystem is only 47.2 GB and that only 20.9 GB has been used. This is likely what the old partition's breakdown was. So my new question is: How can I make the filesystem capacity (47.2 GB) equal that of the partition that it is on (146 GB)?
I am trying to upload some pics on my Facebook account using Firefox. When I click on Facebook's file upload icon, Firefox bring up a 'File Upload' window. I noticed that smaller image file is previewed on the lower right hand corner, while bigger image file is not. Is there anyway I can change this behavior or maybe change what Firefox is using to browse my files?
I am running Fedora 10 and would like to move from my 40gb hard disk to a larger (320gb drive). I would like to take an exact image of the smaller drive and put this on the bigger drive.
My parents bought a new hard drive for a laptop that I've owned for several years. It's much larger than the current one, so I plan on splitting it up to dual boot it with Ubuntu.I have no problem with partitioning a drive (I always keep a LiveCD handy), but my question is this: how can I go about moving the existing partition to the new drive? This is a laptop, so I can't simply plug the new drive into another slot.
Also, even if I manage to move it, will Windows still work on the new drive in a larger partition? I've had this laptop for quite a while, and I've lost the recovery discs that came with it a long time ago. I also have a lot of software without CDs to reinstall them with. This makes not reinstalling Windows a high priority.
I am a noob at Ubuntu. I currently have 8.04 and I am looking at upgrading to 8.10 and beyond. I want to make a recovery disk with Clonezilla so if something goes wrong with the upgrade I can go right back to where I am now. I have a 16 Gig thumb drive that I want to boot Clonezilla from. Then I want to burn an image to my DVD burner. I am stuck at one point in the process. I am reading the instructions from[URL]..
This part is where I am stuck is step 4.To make your USB flash drive bootable, first change the working dir, e.g. "cd /media/usb/utils/linux", then run "bash makeboot.sh /dev/sdb1" (replace /dev/sdb1 as your USB flash drive device name), and follow the prompts to finish that. My USB drive is named M-S325 so if I enter cd/ media/M-S325/utils/linux in terminal I get the error no such file or directory. I know it is something stupid simple I am doing wrong, but I am stuck. What do I need to do to make my UBD drive bootable with Clonezilla ?
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?
Tuesday night I wanted to make a backup of my Ubuntu ext4 partition via Clonezilla so I configured that an image had to be made and it would be saved on the NTFS external disk. But it said it needed 23 hours to create a 5gb backup, so I resetted my computer as this took too long. But after this, Ubuntu nor Windows recognized my drive.
I called Seagate and they told me after troubleshooting 30 minutes, that there is no option of fixing the drive and I had to send it to RMA. What could be wrong? Clonezilla works via a bootable ISO on Debian. The disk drive is still spinning. I already rebooted the external drive, but it's not working. In Linux the disk is no longer mounted and cannot be mounted:
Code: brw-rw---- 1 root disk 8, 16 2010-03-12 00:50 /dev/sdb brw-rw---- 1 root disk 8, 32 2010-03-12 00:50 /dev/sdc brw-rw---- 1 root disk 8, 48 2010-03-12 00:50 /dev/sdd brw-rw---- 1 root disk 8, 64 2010-03-12 00:50 /dev/sde
What could have happened? Would the data still be accessible on the internal drive? Did I just loose 1.5TB data that was stored on the external disk?
I'm something of a Linux noob I must say. I run a community centre and we've been donated 50 ex government PCs to use in basic computing classes. The machines are HP DC7600 CMT tower base units, all with Windows XP Pro license stickers and blank hard drives obviously. set up a Ubuntu machine to clone Windows XP Pro onto a load of identical machines?
I could install all of them from disk and install drivers from pendrive but that would take forever! I like the idea of seting one up as I like it and cloning it across the LAN. Would save a massive amount of downloading updates for each client too. So far I've followed this guide: [URL] I can only get as far as stating up the drbl service (if that is the correct term?) but the terminal says something along the lines of "unknown command"So far I have one fully built base unit to use as the image, one running Ubuntu 10.4 and a 16 port switch (so I can clone 14 at a time?)
I am using Ubuntu and looking for a good editor to edit a file that is > 4GB. I just need to put content at the end and beginning of the file. I suppose I could use something like
cat "text to add" >> huge_file
To append to the file. Is that the route to go? What about prepending? In general, what is the best route if I wanted to edit somewhere in the middle?
I've tried VIM and it fails miserably. I assume emacs and nano would be even worse. What else is there? I assume to accomplish what I am looking for, the editor would have to be specifically designed for this by not keeping the entirety of the file's contents in memory.