CentOS 5 Hardware :: How To Clone CentOS Installation To Smaller Drive

May 9, 2010

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.

View 7 Replies


ADVERTISEMENT

Ubuntu :: Clone Bootable USB Stick To Smaller Drive?

Aug 22, 2011

I wanted to back up my 4Gb boot drive and the new drive I had was slightly smaller. Couldn't find any info on here and precious little on the internet but I have previously used this technique to clone an 8Gb disk onto a 4Gb one. Since I have gained a lot of useful info from this forum over the years its probably time I contributed something. I used my netbook but this would work equally well from a live CD. Note the disk has to be unmounted so you can't use the live system. Firstly your USB stick probably has 2 partitions one for "/" and one for swap.

The first step is to reduce the "/" partition on the source drive to a size smaller than your target drive. I used gparted for this. Next create a partition on your target drive that is the same size or bigger than your newly shrunken partition. I formatted this although I'm not sure this is necessary. Personally I just used the whole drive and used a file on a hard disk as swap. Next you have to use dd to copy the partition.What is important is that you are copying the partition not the drive. So your source would be /dev/sdx1 and target /dev/sdy1 (you will need to find your own values for x&y).

Once again be very careful that you get these the right way around or you will destroy your souce disk. Even better do it in two stages - copy your source to a file and then the file to the target. Now you have a replica of your original disk but it is not bootable. If you are planning to use a swap partition you may as well create it now. Remember you will probably have to change /etc/fstab to read the new swap - at least on my system this was referenced by UUID. No need to change anything for the replicated partition as the UUID came over with everything else.

View 3 Replies View Related

CentOS 5 :: LVM - Add The New Big Drive To The VG - Use Pvmove To Move The Smaller PV Onto The New PV

Apr 28, 2011

I have a volume group that is made up of a number of physical volumes. I am thinking of consolidating all the small physical volumes onto one big drive. Is there any benefit in this, besides making administration easier? How do I go about doing this? From what I have read, it looks like I should have to do the following

1. add the new big drive to the VG
2. use pvmove to move the smaller PV onto the new PV
3. use pvchange -xn to make sure the old PV can no longer be allocated
4. repeat for all the small PVs.
5. use pvremove to remove all the small PVs

Is this the correct procudure to follow?

View 4 Replies View Related

CentOS 5 :: Fonts Smaller After Latest Updates To Centos 5.6?

Apr 17, 2011

After doing an update a couple of days ago (had previously upgraded to 5.6), the font size in firefox (file forward reload, etc), terminal and the panel (using xfce) are significately smaller. Searching the web, mail lists and the forums have not resulted in finding anyone else with this problem. I did notice that glibc has a bug that is currently being worked on at Redhat but it is unclear if the font problem I am seeing is related. Note also, that the initial upgrade to Centos 5.6 was successful.

View 8 Replies View Related

CentOS 5 :: Installation Fails For Centos 5.6 With Marvel 88SE61xx Drive Controller?

Jul 29, 2011

I am trying to install Centos 5.6 on a motherboard with a built in Marvel 88SE61xx drive controller.NO drive arrays are configured using the Marvel BIOS configuration utility.During the install CENTOS displays loading MARVEL_PATA driver and it waits and waits and waits.Looking on one of the system message screens I get the following types of messages:qc timeoutfailed to identifyI/O errorLink is slow to respondSRST failed errno=16ata4: reset failed - giving upAny ideas as to how to get CENTOS to recognize the drives connected to the motherboard Marvell controller on a NON-RAID configuration?

View 1 Replies View Related

General :: Clone A Larger Disk To Smaller With Cp?

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

CentOS 5 :: Tool To Standardize All .jpg Sizes And Make Them Smaller In Size

Jul 4, 2010

If I open my 3.3MB .jpg file in Microsoft Paint and re-save it as .jpg it will right away loose it's size and go down to 1.5MB and still keep the good quality.

I have 100s of these picture files, so I can't set down and do it one by one in Paint.

I am wondering if there is any command in Centos 5.4 or tool that I can use to not only make these files size smaller but also to standardize their size to let's say 800 X 600. The latter is not really needed but it will be bonus if someone can guide me.

I am running a php photo gallery script and it takes way to long to load the picture hence the requirement to lower the size for all the files.

I know that there is "mogrify" and "convert" but I think they don't work without GIMP. I don't have GIMP installed and I do install it I think it goes on to install a lot of gnome libraries which I am afraid might break my server or overload it too much. My CentOS doens't have any GUI or gnome package to it and I want to keep it simple.

View 1 Replies View Related

CentOS 5 :: Clone Triple Boot HD?

May 6, 2009

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.

View 1 Replies View Related

Server :: Backup /clone CentOS Over Network?

Sep 30, 2010

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..

View 2 Replies View Related

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?

View 4 Replies View Related

General :: Tools To Clone CentOS With All Installed Software To Another Box?

Dec 21, 2010

Could you please advice how to clone CentOS with all installed software to another box.

What tools should be used?

View 3 Replies View Related

Ubuntu Installation :: 'Bad Primary Partition' After G4u Big Drive To Smaller One

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

CentOS 5 Hardware :: Hard Drive Shuts Off Abruptly When Suspend On CentOS 5.4?

Dec 6, 2009

I've just installed CentOS 5.4 on my Thinkpad T43. Everything works fine except one thing that, when I suspend the machine, the hard disk is always shut off in a "hard way". The sound is similar to the one you would hear when shutting down the machine by keeping pressing on the power button.. this is no good.

View 3 Replies View Related

CentOS 5 Hardware :: Installing CentOS 5.3 Using Custom ISO And Drive Disk?

Nov 10, 2009

I am having new hardware and IDE driver for that hardware as drive disk image (it8213_centos53.img). CentOS 5.3 installation is working fine with drive disk image at USB and CentOS 5.3 at DVD. Our application uses CentOS 5.3 and we build a custom kick-start ISO for installations. Using that ISO client is going to install on all hardware boxes.

Note while installing :
a) No network connection is avalible.
b) No USB isavalible.
c) No floppy is avalible.
d) Only single CD-ROM is avalible.

So, is it possible to build single custom kick-start CentOS 5.3 ISO which contains dirve disk image and entire installation will be done using that image. If so please let me know the steps to build it.

View 2 Replies View Related

CentOS 5 :: Persistent Overlay Not Working On Ext3 USB Drive For CentOS 5.4

Dec 3, 2009

i am trying to get centos 5.4 installed and bootable on my 16gb flash drive, with persistent overlay using and ext3 formatted drive.i want to be able to boot into centos and be able to have all updates from yum, etc, saved when shutting down for my situation i cannot use vfat.

View 9 Replies View Related

CentOS 5 :: Installation Of Guest CentOS 5.5 DomU On Centos 5.5 Xen Dom0?

Aug 4, 2010

Problems with xen 3.1.2 creating and installing domU CentOS 5.5 I am trying to do a virt-install --prompt --paravirt, and the install error out while trying to download install RPMs. I have googled for xen centos virt-install and various permutations. I have found similar howtos for 5.4 and 5.3, but they resulted in the same outcome. I did find several posts with similar issues, but no solution was posted.[URL]..

View 4 Replies View Related

CentOS 5 Networking :: Ifcfg-eth0.bak File Created By Kudzu In VMware Clone Of 5.3

Jul 12, 2010

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:

[Code]...

View 4 Replies View Related

Ubuntu Installation :: Clone Physical Drive To Another One

Jun 27, 2010

My Ubuntu system drive is starting to throw up S.M.A.R.T. errors. I have two partitions on the drive (/home and /) and grub in the mbr. Is there a way to exactly clone this drive to another one so I don't need to reinstall or re-setup anything?

View 1 Replies View Related

Ubuntu Installation :: Clone / Expand To New Hard Drive?

Oct 28, 2010

I'm looking to move my 10.04 installation from an 80 GB HD to a 250 GB HD.

Last week, I successfully moved a Windows system from an 80 GB HD to a 320 GB HD using Clonezilla. However, I must have missed a command option, as I wound up with only 80 GB used on the new drive, and the remaining space unused. I used PartedMagic to resize the partition to use the full space, and all is now well.

Back to my Ubuntu move, on the second machine, I currently have three partitions - /, /swap, and /home. I'd like to expand / just a small amount, leave /swap sized as it is, and give most of the drive space to /home (as that is where I am running out of space). I think I have two options:

Option 1: Use Clonezilla to clone the drive (3 partitions), and then use PartedMagic to move/resize the partitions as desired.

Option 2: Use PartedMagic to set up 3 partitions to the sizes I want, then use Clonezilla to copy to the new partitions.

Option 1 seems to be the easier way. But, is there another option, a better way? Perhaps there's a command option in CloneZilla that I'm just not seeing, which would allow me to do the move in one step?

View 7 Replies View Related

CentOS 5 :: Install Centos From Hard Drive?

Aug 10, 2009

My dvd is broken. I always failed to install centos from network because of wrong configuration of tftp server. I'd like to install centos from harddrive. I got a litle application named grub4dos, I try to use it but never succeded. Therefore, I have tow questions:

1. How to install Centos from / through hard drive? 2. Where should I put the Iso file of centos or centos installation files, if i use grub4dos.

View 5 Replies View Related

Ubuntu Installation :: Is There Something That Can Clone Current Drive AND Update Menu

Mar 24, 2010

I've got a nice new faster hard drive and want to move my system to it.Is there something that can clone the current drive AND update the menu.lst with the appropriate device ID's so I can just take out the old drive and carry on as before?

View 1 Replies View Related

Ubuntu Installation :: Hard Drive Clone / Partition Copy?

Jan 16, 2011

I have a very specific issue that I am having trouble resolving. I have an old laptop and a new laptop with a smaller HDD. I want to copy the windows partition from the new lappy to the old bigger HDD so I have room for Ubuntu. All of my files are on a Maverick install on the old lappy. How can I get all my files and windows to the old HDD and into the new laptop. I am a little stuck on this one because of my limited options.

View 8 Replies View Related

General :: CentOS 5 Installation - GRUB Installed On USB Drive

May 23, 2010

I installed CentOS via unetbootin and USB stick. Unfortunately, I can not now start my system w/o my USB usb drive.

View 1 Replies View Related

CentOS 5 :: A Twist On The Boot Installation USB Flash Drive?

Sep 23, 2010

A Twist on the Boot Installation USB Flash Drive Have made numerous attempts at making a bootable installation USB Flash drive for CentOS 5.5 but in one way or another they all came up short.Using dd to apply bootdisk.img to a flash drive per the installation instructions seems to take over the entire device even though it only needs about 10 megabytes.Using the method outlined in the Wiki article Set Up a USB Key to Install CentOS and other similar methods causes vmlinuz and initrd to load very slowly. About 50 seconds compared to normal of less than 10 seconds. The dots going across the screen is like watching paint dry.Data partition not accessible to Windows machines.

The following adaptation of the Wiki content article Set Up a USB Key to Install CentOS by Phil Schaffner overcomes the aforementioned short falls. Much thanks to those who created the original content sources and processes. None of the following is originally mine. I just altered it a bit to overcome the aforementioned short falls.

Overview: Objective of the following procedure is to create a CentOS bootable flash disk also containing install iso and kickstart file, that does not suffer from the aforementioned short falls. Partition 1 Installation iso, kickstart file and anything else such as post install scripts, etc. Partition 2 Boot Partition ~15 megabytes.

[Code]...

View 10 Replies View Related

Ubuntu :: Replace A Hard Drive With Smaller Drive?

Jan 20, 2010

I have ubuntu server acting as a router installed on a 60 gig drive, i'd like to use that drive in another machine and replace it with a 5 gig drive. how can i transfer from the 60 gig drive to the 5 gig drive?

View 9 Replies View Related

CentOS 5 :: Clone - Says An Error That "no Partition Found On Hard Disk"

Mar 23, 2010

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".

View 4 Replies View Related

Fedora :: Clone Drive - Tools Do Full Drive Copy?

Mar 22, 2010

I have a 120 gig drive that I'd like to clone before it fails completely. I was thinking I'd pull the drive from the server and build a separate machine that has it's own os installed and the source and destination drive. Does anyone know of any linux tools will will do a full drive copy? Additionally, If possible, I'd like to move to a larger drive. how I'd migrate the 120 drive to a 400 or so? 1 idea I have is to install os on 2 new drives to where it they will boot, Then boot with one and copy source to the newly created destination drive.

View 6 Replies View Related

CentOS 5 :: Install CentOS 5.2, And The Installation Ran Out Of Disk Space After Running For About 2 Hours?

Feb 18, 2010

I am trying to install CentOS 5.2, and the installation ran out of disk space after running for about 2 hours.I checked the FAQ, and it said 1.2 GB. The disk is 3 GB. The default install was selected, and I think that it checks for sufficient available disk space before installing. Still, it ran for quite a while before announcing that it was out of disk space.The Installation Guide is not very helpful, since there is a blank page where the disk space requirement is supposed to be. I just picked the default installation. A search of the forums on "not enough disk space" did not return much.

View 13 Replies View Related

CentOS 5 :: Centos Installation In Vmware Hangs At Selinux-policy-targeted?

Jun 14, 2010

i am trying to install centos 5.5 x86_64 as a guest OS in vmware server 2.0.2 using netinstall iso. Installation runs fine until the point, when it tries to install selinux-policy-targeted-2.4.6-279.el5.noarch, the whole virtual pc hangs at this.any ideas? i tried to google few things about this, but i have found nothing. this has happened 3 times in row, whole virtual pc always hangs at the same package. i dont have any other problems with vmware, gentoo runs and installs fine in it.i would prefer to do installation using netinstall.iso, it would take a lot of time to download all cds or whole dvd and all i require is a very basic set of packages.

View 7 Replies View Related

Installation :: Dual CentOS - Windows 7 Boot - Had To Delete CentOS Partition And No Grub Menu

Sep 19, 2010

3 partitions (in order): Windows 7, CentOS and shared data partition.

I need to increase the size of the Windows 7 partition (c:windowswinsxs seems to be something not easily remedied).

GParted didn't work in moving things around (bad sector) so I wiped out its partition (# 2 out of 3) and I was able to increase the size of the Windows 7 partition (I can reinstall CentOS easily and not much work lost).

Except ... no more grub menu (unsurprising). This incantation does allow me to boot into Windows 7.

Is there any way of rebuilding the grub menu short of reinstalling CentOS (5.5)?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved