CentOS 5 Server :: Make A Disk Image Of An Active Partition?
Jul 13, 2010
Is there any way to make a disk image of an active partition? I have to get a complete backup (partitions, MBR, all data files) of my server without bringing it down to do it. I want to have a backup that, in the event of a system failure of any sort, I can quickly restore onto a new, bare hard disk and have the system back up and running. The windows equivalent of this would be something like Drive Image XML, this is the functionality I am looking for.
I need to make a disk image of Jaunty. Something like Acronis True Image or Norton Ghost in the Windows contingence. I have tried Remastersys and Ghost 4 Linux. The former simply created an ISO file, which is 1/10th of the size of my hard drive and I do not know how to restore my computer using the ISO. The latter seems to be stuck at 0% even after leaving my PC on for 4 hours and verifying that all the settings are correct.
There is a disk 500 gb, it is broken on /boot and on /root and on /dev/sda1 and /dev/sda2. Whether prompt it is possible to redistribute a disk without loss of data namely it is necessary to make/boot and two equivalent on disk volume.
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?
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.
1. Make a disk image of my 9.10 system (formatted ext3, btw) on my Syology CS407 NAS so I can do a bare metal restore. Why is this a couple of clicks on my Mac and Windows boxes, but so far not easy on Jaunty? Did I miss something?
2. Drivers. Why can't I just have an automatic wrapper for Windows drivers so I can use any printer or scanner, or a simple point and click driver install for native drivers? I have my ethernet connected Brother MFC-7820N, and the Samsung CLP-315 that runs off my CS407 installed and working on my Jaunty, but it was way more work than expected. What is the easy, automatic or point and click way to install drivers?
3. Graphics drivers. I have decent cards in my big boxes, Nvidia GTX 200 series. But when I get kernel updates, I have to uninstall and reinstall the graphics driver. Is there an easy way to keep this working?
4. Is there one flavor of linux distro that has a really consistent standard for user interface? I like to be able move things around, but do like my menus to be consistent (and do I ever hate the MS ribbon!). I've really only tried Ubuntu.
Linux installs have come a long, long way from the old days, and are such a point and click operation that I just wonder what I'm doing wrong. Someone is bound to have sorted these things.
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.
Am quite new to Ubuntu (10.04) and have recently reinstalled XP. I want to make an image of my windows partition to save time and effort when wanting to restore this. I read the Ubuntu documentation on Drive Imaging [URL]..community/DriveImaging and am wondering if I've done things ok?
I've booted using the Live CD. Windows is on sda1 and is a 50GB partition. I have a hidden ntfs partition on the same hard drive at sda9 of 10GB. The first time I tried this I got an error regarding my output file saying "Not a directory". I'm assuming that was because I hadn't mounted sda9. It also reported an error saying permission denied on sda1. I then mounted sda9
Code: sudo mount /dev/sda9 /mnt
I then changed to root as I thought not being in that was why I was getting the permissions error.
Code: sudo -s I've then done the following; Code: dd if=/dev/sda1 bs=1024 | gzip > /mnt/sda1.bin.gz
The terminal window is just showing a flashing cursor in the bottom left corner under the above command line input. Is the fact that my mount partition being smaller than my windows partition going to cause a problem or will gzip solve that? My Windows install occupies about 7.5GB of the 50GB partion.
I'm not sure if dd is just taking a long time to complete the task???
i have debian system in which i have mounted the OS on a ext-3 system . I have got a partition of 60 gb , which is formatted to ext-2 partition . Even if I mount , i cant write anything into it . How can i change that ? How can I make the disk writable?
I would like to put my ubuntu system (the one on my partition) in a usb drive, so that way I can take it everywhere I go. The reason for this is because all of the programs I have and the configuration I currently have in my ubuntu (I should say "macbuntu"). That is:
burg boot loader (I probably don't need this one!) x system plymouth theme || also windows 7 original plymouth theme mac4lin 1.0 aqua GTK theme and emerald theme mac ultimate icon theme mac4lin 1.0 cursor theme (working even with compiz) gnome global menu compiz packagers ppawith all the extra stuff telepathy ppa for empathy, having all the extra stuff working also win2-7-pack_v-9.1 And lots more stuff!
I don't want my personal documents though (text docs, music, videos, pics 'maybe few pics'), just configuration files and programs. Can this even be possible?...
the HDAPS system in IBM / Lenovo Thinkpad laptops is, in principle, supported by the hdaps kernel module. However, it is actually *useless* since it refuses to load on current models which report Lenovo as vendor ID instead of IBM The alternative is the tp_smapi module which, according to ThinkWiki, is strongly recommended anyway. It is not available in any CentOS repo, so I tried to compile it. However, I get the following error:
/root/devel/tp_smapi-0.40/tp_smapi.c: In function tp_suspend: /root/devel/tp_smapi-0.40/tp_smapi.c:1241: error: PM_EVENT_HIBERNATE undeclared (first use in this function) /root/devel/tp_smapi-0.40/tp_smapi.c:1241: error: (Each undeclared identifier is reported only once /root/devel/tp_smapi-0.40/tp_smapi.c:1241: error: for each function it appears in.) make[3]: *** [/root/devel/tp_smapi-0.40/tp_smapi.o] Error 1 make[2]: *** [_module_/root/devel/tp_smapi-0.40] Error 2
I would prefer to use a linux server for authentication but I will need the same configuration features.I have been looking for a good guide to setting up CentOS as an alternative to Active Directory, but have not found one yet.The features I want to see.
1. works with Windows clients. 2. Network Home folders (does not neessisarly need to hold profile information) 3. Logon scripts for clients. 4. shared printers 5. shared folders. 6. can log linux boxes in with the same credentials and logon scripts.
okay so we have multiple servers running CentOS and multiple people who need access to these machines for various tasks. i would like to be able to use the credentials from Active Directory (running on server 2008) to give them access to these servers without having to go through each server and add these people into permission groups. basically a single sign-on for all of these servers depending upon what permissions were granted in Active Directory. how do i go about doing this?
I was working to integrate Centos 5 and AD 2003 R2, this is my set up Windows side:
1. Install Identity Management for Unix, (Windows R2 already includes the Unix attribute not entirely necessary to install IMU, but it makes easier to configure the attributes from ADUC, when IMU is installed the Unix attributes TAB is shown in the user properties)
2. Configure the Unix attributes for every user account that will be authenticating from centos.
3. Create an user account to be used as a proxy for ldap, a regular user would be enough. Password never expires.
4. Create a computer account for every centos host; assign this computer account as pre-windows 2000 account.
5. Assign a value of 4128 to the user account control property for the computer account.
I would like to build a bootable system image on an attached hard disk on a running CentOS machine.The hard disk would be moved to a headless server, where only SSH access would be available. It seems that all the documented install methods assume that the installation runs on the taget machine. In this case, I would like to create a bootable system image of CentOS on a running host system. The new install mage would generally have a newer version of CentOS than the running host system where the image is created. Also, I would prefer to do a text-based install.
The reason for all this is that I have network access to several remote machines. I can ask disks to be moved between machines, but I have no physical access. In order to do software testing, I would like to have several system disks with different installed CentOS versions. It would be easer if I could build the system disks on one single machine. The hardware an all machines is very nearly identical.
I've added httpd to runlevels 2-5 using chkconfig, and also double checked it using ntsysv, but it still won't run on startup, even though it works just fine when started manually (using "sudo service httpd start").The results of "chkconfig --list httpd" show it is on for levels 2-5, and I've confirmed the current runlevel to be 3. I've found no errors in the logs (neither Apache's nor the system's), but maybe I'm looking at them wrong...My machine is a VPS (on VMWare) running CentOS 5.5 32bit. For additional information, see the output of getinfo.sh: http://pastebin.centos.org/35570I would greatly appreciate help on this, as it is delaying our NGO from moving servers.
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 currently in the middle of developing an automatic system which can provision Linux VMs automatically.Let's say I have a disk image which has a Linux distro installed on it. How would I change the root password on that, without having to boot the OS?It would be nice if I could just simply run passwd with some switch to point to the /etc/shadow file on the (mounted) VM disk image..
My all production PC r running under ADC windows2008 server. Recently I implement a file server in CentOS 5. Now I want to integrate Samba (File sharing) using Active Directory so that all access permission to file server comes from AD's permission.
We have some servers that run in very harsh environments (research vessel) that need to have high-availability.We have software RAID 1 for some measure of resiliency, along with proper data backups (tapes etc), however we would like to be able to break out a new server and re-image it (including RAID setup) from a known good copy if the hardware completely fails on the production box. Simplicity of the process is a big plus.I am interested in any advice on the best way to approach this. My current approach (relatively new to Linux administration, totally new to MDADM) is to use DD to take a complete gzipped copy of one of the RAID'ed devices (from a live CD): ode: dd if=/dev/sda bs=4096 | gzip -c > /mnt/external/image/test.img then reverse the process on the new PC, finally using Code:mdadm --assemble to re-create and re-build the array.
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).
I'm a subscriber of a Linux magazine who sends me 2 dvds of Linux distros each month. I wanna try some of those just for some time pass. The issue is that out of 52 GB partition on which Fedora 11 is installed, 42 GB is free. I want to have around 10 GB space from that 42 GB so that I can install CentOS 5.3. how shall I partition my disk?
i have Cent OS 5.2 CD (6) with me. I need to install it in my hard disk. I have already installed Windows XP in C: partition. I need to install Cent OS in D: partition. During installation process its asking for hard disk partition. In this regard, how to select the partition. I have C,D,E and F partitions and C,E and F are in common use. So i have to install Cent OS in D partition.
How can i create quota for specified user : mr.X for any specified partition. I have 10 partition, and give mr. X access for only 2 partition and give him different quotas: says 800MB on sda13 and 3GB on sda14.
Previously I have Centos 5.3 installed. Eventually I upgraded the systems to Centos 5.4 Now is it possible to generate an ISO and burn into a DVD to make a new copy of Centos 5.4 installation disk? This is far better than downloading.