Currently there is an issue happening on the production environment and not happening in dev. so I would like to recreate it in dev by creating a image of prod and restore it in dev. the hardware are the same as well as the RAID. My question is  a. what the best tool to use to do that? b. when creating the image, does it require any downtime? c. I presume that i need to do some configuration changes once the restore is done? d. after the restore, would the logic/physical mount be eased?  Plus I am new to Ubuntu, have tried tar way to do. it seems that it caused lots of issues. I have gave up on that due to time limitation.   Thank you so much.   Bing
44652
I'm a new Linux user. I've reinstalled my Wubi from scratch at least ten times the last few weeks because while getting the system up and running (drivers, , etc.) I've broken something (X, grub, unknowns) and I can't get it back to work. Especially for a newbie like me, it's easier (and much faster) to just reinstall the whole shebang than try to troubleshoot several layers of failed &quot;fixing&quot; attempts. Coming from Windows, I expect that there is some &quot;disk image&quot; utility that I can run to make a snapshot of my Linux install (and of the boot partition!!) before I meddle with stuff. Then, after I've foobar'ed my machine, I would somehow restore my machine back to that working snapshot. What's the Linux equivalent of Windows disk imagers like  or ?  Note: I found a similar question:
82856
I've made a bit of a balls up...  When attempting to create a bootable Ubuntu usb drive I accidentally ran dd on my main system drive :(  sudo dd if=/path/to/image.img of=/dev/rdisk1 bs=1m   I realised what I'd done pretty quickly but everything seemed fine so I re-ran the command on the correct drive /dev/disk2 and thought "phew not sure how I got away with that"... Then things started going wrong... I could continue using the applications I had open but opening anything new / accessing the hdd caused that thing to lock.  Sadly I haven't been using time machine, lesson learnt!   I spoke to AppleCare who said I need to reformat the machine but I'm really hoping there's some way to restore whatever 1m I destroyed (I'm assuming something to do with the partition information). Wishful thinking?  Also, AppleCare told me to restart, which means I can only user repair mode utils.  Help!
33043
I am using Ubuntu 14.04.  I ran in terminal sudo apt-get update. Then I rebooted the system. And now I see:   ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell initramfs:_   I can't boot up LIVE Ubuntu from USB flash drive. Yes, I double checked BIOS setup and the USB flash drive is OK and runs on another machine. Right now I am going to buy a  DVD and burn a Live DVD from another laptop.  sudo blkid gives me:   /dev/loop0: TYPE="squashfs"   /dev/sda1: UUID="xxxx" TYPE="ext4"    /dev/sr0: LABEL="Ubuntu 14.04.1 LTS i386" TYPE="iso960"      /etc/fstab has the same UUID="xxxx" and there is a line with:   errors=remount-ro 0      I tried using boot-repair but I still can't log in to Ubuntu.  I don't want to reinstall Ubuntu, because I have a lot of data there.  Do you have any advice how this can be solved?
65883
I usually back up before formatting and doing a re-installation of Ubuntu, it was in the process and then obviously stopped prematurely but I was thinking all my data was transferred.  After installing formatting the drive and sticking a fresh Ubuntu on there I proceed to transfer the files from my memory stick to my hard drive, some files are there but most of my 6 years worth of pictures are gone. Is there any way I can get these back? I don't know what to do, I feel absolutely crap :/  Any help would be very appreciated.
51400
I was trying to setup a Microserver with two 1TB harddrives as a software RAID. Somehow it didnt work and now ubuntu 14.04 is not starting. My problem is that I dont see the drives anymore when I go through the installation process again!  On boot I can see, that there are two working drives inserted, but I cant see them while being in the "partitioning menu" during the Ubuntu server installation.   There is no data on those drives, so I am looking for some way to erase them completely, so they show up again. From the installation I could switch to an Almequist (ash) shell.  How can I get my drives back?  Thanks!
38051
Setting up LVM Snapshot as a backup/restore point in ubuntu. Why? Well, as I see it, with all the great usefulness of Linux, its biggest drawback is with its mixed up way of installing apps. All the dlls go to one directory. All the configuration files to another. And the binaries are also put in a bunch. Yes, Windows works the same way more or less, but with the nature of system/server software installed on Linux, being that most of the software installed is only about 95% mature at any given time, messing up your system twice a month is very probable.. Of course, we can backup the system before and after each installation, but that takes a million years. System backups (as oppose to just data/files backup) requires you to turn off you computer and use some form of bootable live CD and a backup media. And, if the drive is more than 15% full, it might take a long time to do the backup, even with modern hardware. So, how can this be done?
54072
I've got ubuntu server on my "home server" with 5 software raid 0 partitions and one software raid 1. I have to reinstall OS. Is it possible to do that without losing existing partitions with data?
95645
I have a blank hard drive. I also have a Windows 7 system image backed up on an external hard drive. I don't have a system repair disk (SRD) and also don't have Windows 7 disk. I only have the recovery disks that came with my laptop. There is no option in the recovery disk to restore from a system image. So, I am forced to use the old stuff in the recovery disk.   I have few questions:    Can I restore my system from an image on a USB based HDD, without any SRD? Can I create an SRD in a windows 8 system for a windows 7 system? I know this might sound strange, but what if an SRD is just a collection of backup utilities? If no microsoft based answer is there, then is there any commercial software which can do this instead?   I don't even have access to an original Windows 7 disk right now. So, that option is ruled out too.
34502
I have backups up everything, but I'm still uneasy about the process and would like confirmation. I'd rather do this one time correctly. I want to shrink /dev/sda6/ by 200GB and reallocate it to /dev/sda2. I boot a LiveCD and turn off LinuxSwap (locked otherwise). I've been reading that it is very hard to move &quot;left&quot; when partitioning and other AskUbuntu threads are confusing me. Do I need to resize /dev/sda6 by 200GB &quot;preceding&quot; (rather than &quot;following&quot;), and then resize /dev/sda4 by 200GB? A little guidance would ease my nerves of messing everything up. Thank you ahead of time.
59052
I just re-built my desktop. I have a brand new 2TB drive and I'm also re-using a 250GB drive with Windows XP installed. The problem is that the XP drive has a virus that was causing the computer (before the re-build) to reboot swiftly and unexpectedly after Windows starts.  I have yet to turn on my re-built computer!  I am currently not worried about losing the data on the XP drive. My desired end-result would be a re-image of XP on the 250GB drive and to install Ubuntu 12.04 on the new 2TB drive.   What order should I do things in order to get to that point? I need to (in some order):   See that my new setup can POST Configure the new hardware Re-image the 250GB drive with Windows XP Install Ubuntu 12.04 on the 2TB drive   ... without having the virus cause any more problems. Understanding the reasoning behind the process would be very helpful.  Thanks!
96403
Is there a standard way (or standard tools) to migrate physical machines into LXC containers for Ubuntu? I'm working with 12.04.5 machines. I have come across      But it is specifically for debian. The procedure seems to be   copy root file system delete unneeded files configure container   It seems like an easy process but I am totally new to LXC and hoping for something a little less error prone. Another idea I had was to create an ubuntu container from a template and then copy over that file system. I bet plenty of /etc would be wrongfully clobbered though.
76944
I have a draft of requirements that look like this:   Production database should be copied in real-time to "Pre-prod" database The Pre-prod database should be available to read and update It should be possible to make schema and data changes to Pre-Prod Schema and data changes on Pre-prod should not effect Prod   The databases will be on the same SQL Server instance.  I'm wondering what approach to take? Transactional Replication seems the best option, but applying schema changes to a subscriber seems like a recipe for disaster.  Mirroring is out because the mirror will not be available; log shipping is out for similar reasons.  Are there any other technologies I should be considering?
65878
I've used git clone to make a local copy of a GitHub repository containing a  I'd like to use. The local copy contains all of the source for the program; but as a newbie to Ubuntu, I've no idea of what tools or steps are involved in compiling and installing the driver.   I'd really appreciate if anyone could provide a step-by-step guide?
100965
I've mounted the ISO file using a virtual drive application. When I open the virtual drive with the Ubuntu ISO mounted, I only have the option of restarting to be able to do anything. However, I couldn't boot from the ISO after restarting.  Is it possible to boot from a mounted ISO file from the first place? Or do I have to burn the image and boot from the physical CD?
37561
I want to create a DEB file manually. I would like to just provide a folder which contains data to install, and a script to be executed after installation.  Is this possible?
16660
Ubuntu n00b here.  I have created several disasters of the first order already.  I am getting ready to try to install opera - it is a very long and arduous process.  I am afraid - no - I am absolutely certain that I will damage something important.  How do I create a system restore point?  Does such a thing exist?
114633
First of all I'll say I'm using:  Oracle Database 11g Express Edition Oracle SQL developer  What I'm trying to achieve Create a backup and restore it, so for example I can delete a table after a backup and then restore the backup to recover that table. What I tried step by step Step 1 First I entered to RMAN and used the following statements connect target; shutdown immediate; startup mount; configure controlfile autobackup on; backup database;   So for now I'm connected to the database and it's only mounted, and the backup has finished correctly. You have above what I got after executing the backup. Step 2 Now I execute startup dba; because I want to initiate the database, so I can connect with Oracle SQL Developer and for example delete a table.  As you can see I don't have now tables because I deleted the only I had (before the backup I had the table &quot;regions&quot; of the HR schema so that's inside the backup I guess). After all of this I close the connections in sql developer, because I don't know if it's going to create errors, but I want to avoid them. Step 3 Now I want to start trying recovering the backup and I execute this because I read that both for backing up and restoring, you must leave the database in the &quot;mount state&quot;, so I go to RMAN and execute only this now: shutdown immediate; startup mount;  Step 4 And now in this step the real recovery, I execute this: restore database;   recover database;   Now I should execute the following but it's returning this error: alter database open;   So, I execute this instead: alter database open resetlogs;   Step 5 Now that all is done and opened, I'll check if the table is recovered in sql developer.  And no, it's not there. I hope all the info was clear