CentOS 5 :: How To Clone 5.4 With 2 HDDs Into 1 Larger Capacity HDD
Jun 18, 2010
Currently, I installed CentOS 5.4 into 2 HDDs in my PC. I have bought a larger capacity HDD and would like to clone/image everything over and retain my settings and preferences. How can I do it?
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?
The installer can't see my raid controller (I assume) as I'm getting the following error:"Error opening /dev/mapper/isw_jbhgjgjj_Vol0: No such device or address"It just sees them as 4 individual drives: sda, sdb, sdc and sdd.Please note that I have set up the RAID 5 in the controller bios interface and the image name is Vol0, which it seems that it tries to load but for some particular reason it can't.I have also tried different bios settings and nothing worked.
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 have been using SLES 10 SP1 so far with about 6TB Raid system without problems.I have upgraded the OS to CentOS 5.3 i386 and I have noticed the kernel can not recognize raid system larger than 2TB.Is there any parameters that I have to set ? or the i386 distribution simply does not support larger raid, so I have to use x86_64 version, instead?
I am having problems seeing SAS drives using Supermicro AOC-SAS2LP-H8IR adapter. The operation system is CentOS 5.6 64bit version. The operation system is installed on a SATA drive and the motherboard is an Intel Board "Classic Series" "Rockfish" G43 - Socket LGA775. From the OS I cannot see the drives. BIOS does see the PCI card and it ends there.
I'm having an issue with formatting the HDDs during the CentOS 5.5 installation.I've set up a hardware RAID1 with 2TB HDDs using FastTrack TX4650 (http:url... as a RAID controller.Then I tried to install CentOS 5.5 32-bit version using this configuration. I preloaded the required RAID drivers for the CentOS and started the installation. Everything went fine until the part where the CentOS formats the HDD - it took 12 hours and the process still goes on. I cannot determine whether the install process is stuck or the HDD is still being formatted.how long the formatting should take considering the above mentioned configuration?
I am trying to clone the hard drive to a slightly smaller hard drive in the same computer, same setup.What software or commands do you use to clone the entire system and resize the partition automatically?The original HD is a little larger than the destination HD. The source partition only has about 20 GB in use and the rest is blank.
I have 2 partition, a small 100MB boot partition and another 500GB LVM partition.I can't just clone from the original disk to the new disk. (for another long reason) I need to make an image of the original disk on an external USB drive first, then move that image onto a new disk.I have tried creating an image of the whole disk with Clonezilla, but then the restoration didn't work because the target drive is smaller than the original.
I am running CentOS within VMWare on my Lenovo T61p laptop. This laptop has Windows XP Pro installed on it. My problem is that the resolution in CentOS within the VMWare is way to small. There are only two selectable resolutions, both are way to small. How can I get additional larger screen resolutions?
I have a CentOS 5 based Linux system with a 3Ware 9550SU RAID card and four 500GB drives set up in a RAID5 array (3 in the array and 1 hot spare).
I want to 'replace' these drives with four 2TB drives without data loss. My server case has a total of 8 drive bays all hot-swap and all attached to the RAID card, this means I have four empty drive bays on the RAID card.
One thought is to put the four new 2TB drives in the empty drive bays, configure them in a new RAID5 array. Then the question is now to I "mirror" the original RAID5 array over to the new one?
This is just a thought though, I am not sure it will work. In short my question to this forum is how do I accomplish this upgrade?.
just started a new gig and trying to push CentOS out as part of a triple boot option on our mac intels. i have done some google'ing but haven't come up with much. this would make the whole process 10X easier.
I have a finely working CentOS server. I want to clone the complete OS (over network) so that I can use it for same functionality on several other machines..
I run a VMware clone of CentOS 5.3, I observe that kudzu [i.e. /etc/init.d/kudzu, from /etc/rc3.d/S05kudzu or /etc/rc5.d/S05kudzu] detects a MAC address change on eth0 and then creates a /etc/sysconfig/network-scripts/ifcfg-eth0.bak file. This .bak file is identical to the original ifcfg-eth0 file except for the value of the HWADDR [i.e. MAC address] parameter. I would be unconcerned but for the fact that /usr/bin/neat indicates that both ifcfg-eth0 AND ifcfg-eth0.bak are 'Active'. The following solution may help others with the same (or similar) problem:
I have just clone from my previous IDE hard disk to a bigger IDE hard disk with clonezilla. However, when I boot my system with the new hard disk using the installation disk, it says an error that "no linux partition found on hard disk".
I'm working on a server and noticed that the to RAID5 setup is showing 4 Raid devices but only 3 Total devices. It's on a fully updated CentOS 5 system that only has three SATA drives, as it can not hold anymore. I've done some researching but am unable to remove the fourth device, which is listed as removed. The full output of `mdadm -D /dev/md2` can be see below. I've never run into this situation before.Anyone have any pointers on how I can reduced the Raid Devices from 4 to 3? I have tried
I have a 650 GB ext3 LVM partition with RAID 1 on. The partition is 85% full, but the system says "no space left on device" - where did the 15% go?I ran "tune2fs -m 0 /dev/mda1", so it is not the space reserved for the root - so Nautilus reports the same free capacity as GParted now.Some more info:- Ubuntu 9.10 x64- GParted says 650 GiB, 104.83 GiB free- Nautilus says 104.8 GiB free- The system thinks the disk is completely full - I cannot even create (touch) a new empty file
change as I salvaged an old old computer and got it back into working order. Windows 7 kills the computer and the media being served is sluggish and slow.
The computer spec are as follows: Asus A8N32-SLI Deluxe Bios 1303 Asus Nvidia En210
I have two HDs, one is a 80gb OS drive(Parallel ATA) and the other is a 1T storage drive (SATA). Well after each reboot they swap between /dev/sda and /dev/sdb, over and over again. One boot the OS is /dev/sda and the next its /dev/sdb, same goes for the second drive. This makes it difficult to setup fstab so it will mount the large storage drive on boot.
I'm having a little trouble with a mdadm RAID array at the moment in which the four hard drives in the array change their /dev/sdb /dev/sdc /dev/sdd/ /dev/sde placement on every reboot.
Recently installed Ubuntu, I've got 2 * 500GB HDDs, mounted and partitioned, but I don't have read/write access to them, only root does.. How can i get access to save files and create folders etc?
I have a site that users upload files on. Its on a dedicated server with 2 HDDs and the first HDD is 97% full, is it possible to use the other HDD for the files users upload? if so how?
First of all, this isn't really a problem for me, but I'm just curious. In the past when I started a data CD project, I remember that k3b used to start me with a "blank CD" of 700MB and then expand to a "blank DVD" of 4.4GB when the amount of data exceeded the capacity of a CD. Normally I just make an ISO image for the CD and burn on another machine (for a reason not relevant here).
Today, it started me off with a "blank DVD" right away. It's not a problem because the ISO format isn't different and the data is under 700MB anyway. How come? Ah wait, I think I know what it is, there's a DVD+RW in the drive at the moment so k3b got too smart and assumed that I wanted to write to it, even though I selected Create image only.
Just rebuilt my file/print server using an ECS 945GCD-M Atom motherboard. Running it under 9.10 (2.6.31-20) using the same cable and port on my Netgear switch that my old server connected to at 1GB/s without issue (old server's NIC was Intel-based).
Found the driver is an AR813x, & downloaded & installed the latest driver from here (1.0.1.9). sudo lshw -C network now shows that it's using the new driver, but still sitting at 100MB/s:
my laptop battery capacity has gone low due to constant charging or whatsoever reason. previously it was at 62% and within 2 months its gone down to 32%. I use the laptop atleast for 18hrs every day. so is ther any solution to prevent my battery from losing the capicity.
i use dell studio 15 laptop, with 3 gigs of ram, lithium ion battery(56Wh), ati card, using compiz, p8600 processor. i use this for app development and for listening to music and videos.
I've recently completed a fresh install of 10.04 on a home file server and upgraded the hard drives in my storage array. My PREVIOUS hardware was:
Old version of Ubuntu (I forget which one exactly, but I know I had missed a few upgrade cycles)
3X 500 GB Seagate Baracuda's (for the array) Areca 1220 Hardware RAID controller Intel Core 2 Duo 6600 320 GB Seagate for the boot drive
I was running that hardware for about five years or so and it was rock solid. After the upgrade the hardware specs are:
Ubuntu 10.04 Areca 1220 hardware RAID controller 4x 1000GB Samsung Intel Core 2 Duo 6600 320 GB Seagate for the boot drive.
The fresh install of Ubuntu 10.04 went remarkably well. The drivers for that raid controller are in the kernel, which is great. I was able to access the old array after upgrading Ubuntu. Now I am trying to create a new array with the four 1000 GB drives in a RAID 5. Obviously that gives a maximum storage capacity of 3 TB, greater than the 2 TB threshold that seems to be so important. I've been doing some digging and here is where my questions start:
it appears as though gparted doesn't support file partitions greater than 2 TB, correct?
it also doesn't seem as though parted supports ext3 or ext4, is that correct?
If this is the case, how do I create a partition with ext4 that is greater than 2 TB?
I can see the array volume in gparted (which is a relief) but it lists the size as 2.73 TiB, which I find curious because that is over 2 TB, but not the full capacity of the volume. I can also get to the volume in parted. But I see in the parted documentation that using the makepartfs command is discouraged and instead, one should use the command mkpart to create an empty partition, and then use external tools like mke2fs ( to create the filesystem.
how to proceed from here. What does the community think is the best course of action to create a partition of 3TB in ext4? Then I need to change fdisk to automatically mount the array at every log in, right?
I have window 7 and Ubuntu 10.04 on my laptop.As you know if I extend the capacity of my ubuntu partion in window, I will lose ubuntu and I should reinstall it.I want to know if there is a way for extending my ubuntu partition from 20 Gb to 30 Gb without loosing ubuntu and windows?