Ubuntu Installation :: Clone 10.04 Server - GPT Partition And Grub

Feb 3, 2011

I have a bunch of computers with the same configuration, so I would like to install Ubuntu only to one master computer and later on just copy the partition layout and the filesystem unto other computers. Previously I was able to simply copy the partition layout (via the sfdisk utility), the filesystem (a simple "cp -a") and install Grub (via script). Now I had to use the parted utility to partition the 2TB drive and Grub2 is the default boot loader.

My questions are now:
1. How do I copy the partition layout from /dev/sda (master) to /dev/sdb (clone)?
2. How do I batch install install Grub2 to the other disk (e.g. /dev/sdb) ?

In Grub 0.97 it used to be something like that:
Code:
# GRUB the disk
grub --no-floppy --batch <<EOF_GRUB
root ($GRUB,0)
setup ($GRUB)
quit
EOF_GRUB .....

In Grub 2 I tried with:
Code:
grub-install --force --root-directory=/mnt/sdb1/ /dev/sdb
Only to get this error: .....

The Grub2 syntax is way different compared to Grub0.97. Yes, I do could use the Grub2-suggested option but since the partition layouts on both partitions are equal, I see little point in setting the BIOS Boot Partition option, since the master computer works without it and I don't remember any error message during the install.

View 9 Replies


ADVERTISEMENT

Ubuntu Installation :: Clone /dev/loop0 Install To A New Partition /dev/sda?

Aug 25, 2011

Installed Ubuntu from an iso and now can boot only from /dev/loop0 need to clone this to /dev/sda, is this possible if so what are the commands.

View 9 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

Ubuntu Installation :: Grub - Setup: Warning: Attempting To Install GRUB To A Partition Instead Of The MBR - Install - Lvm - Luks - Raid - Karmic Server

Mar 27, 2010

I'm running Karmic Server with GRUB2 on a Dell XPS 420. Everything was running fine until I changed 2 BIOS settings in an attempt to make my Virtual Box guests run faster. I turned on SpeedStep and Virtualization, rebooted, and I was slapped in the face with a grub error 15. I can't, in my wildest dreams, imagine how these two settings could cause a problem for GRUB, but they have. To make matters worse, I've set my server up to use Luks encrypted LVMs on soft-RAID. From what I can gather, it seems my only hope is to reinstall GRUB. So, I've tried to follow the Live CD instructions outlined in the following article (adding the necessary steps to mount my RAID volumes and LVMs). [URL]

If I try mounting the root lvm as 'dev/vg-root' on /mnt and the boot partition as 'dev/md0' on /mnt/boot, when I try to run the command $sudo grub-install --root-directory=/mnt/ /dev/md0, I get an errors: grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea. grub-setup: error: Embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.

Somewhere in my troubleshooting, I also tried mounting the root lvm as 'dev/mapper/vg-root'. This results in the grub-install error: $sudo grub-install --root-directory=/mnt/ /dev/md0 Invalid device 'dev/md0'

Obviously, neither case fixes the problem. I've been searching and troubleshooting for several hours this evening, and I must have my system operational by Monday morning. That means if I don't have a solution by pretty early tomorrow morning...I'm screwed. A full rebuild will by my only option.

View 4 Replies View Related

Fedora Installation :: Clone Partition And Restore It To Logical Volume?

Nov 17, 2009

I'd like to clone a partition, and then restore it to a logical volume. I have all three operating systems at my disposal (Mac, Windows, Linux Live CD) What is the best way to achieve this. The partition I am trying to resize is only 200MB, so I can store it on usb if need be.

View 9 Replies View Related

Software :: Clone Linux Partition To A Bigger Partition

Feb 16, 2010

Is there any software to clone Linux partition? No matter they are paid or free software, I'll need them. The problem is that if I clone a linux partition to a bigger or smaller partition size, it will crash.

View 6 Replies View Related

Server :: Clone Or Duplicate Installation To Other Machines?

Sep 20, 2010

I'm planing to get 4 dedicated, remote servers for my start up, the question I have is: how to do only one installation and then duplicate or clone this installation into all the other machines. I could install those 4 servers manually, but the problem is - we have a lot of things that our application needs, and later there will be more servers. So an automatic way to do that would be better. We are using Debian. Perhaps there's a way to create a "big package" that will contain all of the necessary software in it, then simply require from the hosting provider that all of our servers come with Debian installed, and then manually upload the "big package" and install it?

View 3 Replies View Related

Debian Installation :: Clone From 1 Server Be Used On Another Server?

Jul 15, 2010

If I clone a debian linux from a server to a harddisk, can I simply plug this clone harddisk to another server and boot it up to use as the primary OS disk for this server, even though the 2 servers may not be the same configuration, same make and model?

View 2 Replies View Related

Ubuntu :: Re-Creating Grub After HD Clone?

Apr 9, 2010

I tried to recreate my Grub setup after restoring a backup tar file to a new hard drive. Here is what I did.

I created a tar backup of my working 9.10 server install. I used fdisk to create the same partition structure as the old hard drive:

sda1 Primary bootable ext4 (83)
sda2 Extended
sda5 Linux / swap (82)

I mounted the new drive with the newly created partitions on the current system and extracted the tar backup to the new sda1 partition. I then recreated all the directories which were excluded in the tar backup (mnt, media, home, proc, sys, etc).

I then shut down, unplugged the old OS hard drive, plugged the new hard drive into the same cable as the old OS HD and powered it up. It told me that there was a GRUB error.

I did some looking around and found that I could use an Ubuntu Live CD to fix/install Grub on that hard drive. I burnt a 9.10 desktop CD, booted, installed Grub and here I am.

I am having a difficult time figuring out the GRUB commands.

This is what I was planning on doing:

Code:
1. Pop in the Live CD, boot from it until you reach the desktop.
2. Open a terminal window or switch to a tty.
3. Type "grub"

[Code].....

View 8 Replies View Related

Ubuntu :: Using DD To Clone Vista HD And Recovery Partition?

Aug 14, 2010

I'm using dd to clone a Windows Vista hard drive and recovery partition with zero luck. I duplicated the partitions with gparted then used dd to copy each partition and then the master boot record. Nothing............. no boot.

Code:
dd if=/dev/sdb1 of=/dev/sda1
Code:
dd if=/dev/sdb2 of=/dev/sda2
Code:
dd if=/dev/sdb of=/sda bs=512 count=1

View 3 Replies View Related

Fedora :: Clone Partition And Put It On Another HDD?

May 7, 2010

Is there a way to clone a partition (40GB) and put it on another partition (on a another hdd) with the size of 20GB? The partition that is cloned is using only 3 GB of 40 GB.

View 2 Replies View Related

General :: Backup Program To Clone The Partition Of Ubuntu?

Mar 9, 2011

I am looking for Backup Program to clone the partition of Ubuntu.

View 7 Replies View Related

General :: Clone HDD That Has EISA Configuration Partition

Feb 25, 2011

I am trying to clone a HDD which has Windows Vista installed. There are two patitions in in:
9.3GB EISA Configuration
65GB NTFS (the C: drive as windows calls it)
I am going to clone the entire hard disk with clonezilla, I am not sure what the EISA partition is and if it can be cloned(then restored) using clonezilla. I did google it, its probably some kind of a recovery partition of some sort.

View 14 Replies View Related

Software :: Clone Partition To Create A Backup?

Jun 28, 2011

i want clone my linux partition for create a backup. i want use dd command but i have some question.my linux partition is 30GB and linux only used 10GB of it if i use dd command for create a image i must have 30GB free space? can i use dd command in X window or i must first exit from linux and use live cd? in fedora i use dd command for create a backup when linux is running but after restore some command like su not work!!!

i use some tools like partimage for make a backup but it show me an error about block 0!!

View 1 Replies View Related

General :: Partition Type / Size Quirks After DD Clone

Apr 26, 2010

I decided to clone my OS partition to another hard drive using dd (without any special options). I created the target partition before cloning (25GB) but it shows up as 21GB (source/original partition's size) in df, as well as ext2 instead of ext4.

View 2 Replies View Related

Ubuntu Installation :: Grub Won't See Win 7 Partition?

May 25, 2010

Just installed 10.04, loving the new theme and default background. My problem is that Grub won't detect my Win 7 boot. I installed it the way i normally do, seemed to work for the last few times. I put in my Windows recovery disc to try and fix the MBR but that failed as the disc wont even see my Win 7 install. I have included my boot info script file.

View 9 Replies View Related

Ubuntu Installation :: Sh:grub> After Redimensionning A Partition?

Sep 12, 2010

I resized a partition and now I boot directly into GNU grub rescue

Code:

sh:grub:>

if I type

Code:

sh:grub> linux /boot/vmlinuz-2.6.32-22-generic
sh:grub> initrd /boot/initrd.img-2.6.32-22.generic
sh:grub> boot

I have the following messages :

Code:

Gave up waiting for root device. Common problems:

- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)

ALERT! does not exist. Dropping to a shell!

[code]....

View 7 Replies View Related

Ubuntu Installation :: Grub Partition Selection ?

Oct 5, 2010

Installing 10.10 RC dual boot with Win7. Is there no place in the installer to specify where Grub will be installed? I don't want it installed in the MBR I want it in the partition with / (I usually only create two partitions for Linux / and swap). I prefer to chain load grub from my windows bootloader.

View 4 Replies View Related

Ubuntu Installation :: Why GRUB Reinstall Using A Partition Instead Of MBR

Dec 28, 2010

I'm trying to re-install Grub2 on a dual boot (Win/XP & Ubuntu 10.10) system which will not boot. I am following the guide here:

Code: [URL] This guide explicitly states that the procedure will re-install GRUB to the Master Boot Record, overwritng whatever is there. However, the final step results in this warning message: "grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea....."

I guess I agree - that's not what I want to do. Where is the defect in the procedure and how do I overcome it? If I try alternative advice, available in the forums, by using the command

Code:
sudo grub-install /dev/sda
then I receive the error message

Code: grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?) Looking at the mount command output, I think the required device is mounted.

View 8 Replies View Related

Ubuntu Installation :: Find Out Which Partition Got GRUB?

Jul 4, 2011

i have 500 GB SATA drive with windows 7 and Ubuntu 11.04 500 GB drive divided in 3 partitions on one partition thers is windows 7 and on 2nd Ubuntu now i'm installing a software it's asking where you want to load your Grub and i don't know in which partition my GRUB is. my question is is there any way to find out which parition got my Ubuntu GRUB?

View 3 Replies View Related

Ubuntu Installation :: Grub Refuses To Install On Partition

Jan 29, 2010

I have messed up my partitions really bad and grub refuses to install. Here's how it looks:
Code:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2432 19430617+ 83 Linux
/dev/sda3 2433 60801 468848992+ 5 Extended
/dev/sda5 2433 2930 4000153+ 82 Linux swap / Solaris
/dev/sda6 2931 53535 406484631 83 Linux
/dev/sda7 53536 60801 58364113+ 7 HPFS/NTFS

Initially there was only Linux (Karmic) on this hdd, on what is now sda2 to sda6, current sda2 being the boot partition. Now, I decided to install Windows XP and using GParted I created an NTFS partition at the end, sda7. But it wanted to have his loader on the first one, so (now this is probably stupid what I did) I cut 100MB from Linux root and put it as NTFS at the beginning, making it sda1, boot and letting windows install it's loader there. I figured I can just reinstall grub on it later (think I have missed some tutorials). As you can probably guess, it won't. I formatted sda1 to ext4 now. What I do is run the Live CD (9.10), use terminal, then do

Code:
sudo -i
mkdir /media/boot
mount /dev/sda1 /media/boot
grub-install --recheck --root-directory=/media/boot /dev/sda1
and it goes

Code:
grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.
grub-setup: error: Cannot read `/grub/core.img' correctly
also, when I do update-grub it says "grub-probe: error: cannot find a device for /."
I tried installing grub on sda2 and flagging it as a boot and still no-go.

View 4 Replies View Related

Ubuntu Installation :: Windows Partition Missing From Grub

Jan 30, 2010

I was defraging windows xp and the power want off now I can only boot into ubuntu from Grub.

View 3 Replies View Related

Ubuntu Installation :: O/S Grub - Unable To Mount Win Partition

Mar 22, 2010

had a dual O/S win Vista 64bit & unbuntu 9.10 64bit.

1. Had a virus on my Win vista side, anti virus could help (virus kept replicating itself - to halt all progs from running).
2. In the End Win Vista would start & was only used Unbuntu for about 2 days.
3. Tried to repair Win Vista, but noting worked.
4. Couldn't mount Win partition through unbuntu either - needed to copy some files across.
5. Eventually formatted Win partition side & re-installed Win Vista 64bit.
6. The problem now is that the grub option to select the O/S choice isn't there, thus i can't use Linux.
6b. The computer loads only Win vista 64bit (Like there usn't a Linux)
7.Checked at the disk management prog - could see my linux space but have no access.
8. Used a live Linux cd to access linux partition, just to check - it worked.
9. how can i acccess the Linux O/S as normal?

View 1 Replies View Related

Ubuntu Installation :: Grub Missing - Able To Boot Into Partition

Apr 10, 2010

I had a dual boot system(WinXP and Ubuntu). But something happened and I was not able to boot into my Ubuntu partition. It gave GRUB missing error. I tried reformatting the dedicated 40 GB ubuntu partition to NTFS and again try to reinstall ubuntu. But now, when I install ubuntu through boot time install, it shows that my whole hard disk is empty( but I have windows XP on whole hdd at the moment) and do not give any other option but to use whole hdd.

Alternatively when I try to install it inside windows, then after rebooting it shows, no root file system defined error and neither gives any option to do so also ( this method worked earlier o my PC). At the moment, It still shows ubuntu and windowsXP at OS choice menu at boot time but when booting in ubuntu, it shows GRUB missing. (I don't have any ubuntu installation on my hard disk at the moment).

View 5 Replies View Related

Ubuntu Installation :: Updated Grub But Still Won't Recognize 2nd Partition?

Jul 24, 2010

So I am experimenting with other linux distros.....I just installed a small partition with OpenGEU, the one still based on Ubuntu.....now it wont recognize Mint. Ubuntu Studio is next on my list, but before I invest any more work I want to make sure I can add more partitions to grub, not just the most recent linux partition...

I think that future distros of linux should have a fix for this....if you install linux it should detect every other operating system on the disk, not just windows plus the most recent linux install.

install /boot separate? I always create a / and /home partition but never separate boot. Does that make life easier?

View 9 Replies View Related

Ubuntu Installation :: Cannot Use Separate /boot Partition With Grub 2

Aug 25, 2010

While installing with a separate /boot partition I cannot get two distinct copies of ubu installed on one machine and be able to choose between them. Each is installed on a different hard drive. x64 versions. I've had this issue both ways:

Stepsinstall mythbuntu
install ubuntu
Result

Two entries in grub. Both cause ubuntu to boot

Stepsinstall ubuntu
install mythbuntu
Result

Two entries in grub. Both cause mythbuntu to boot Grub 2 is so unfriendly for fixing these things. I don't know where to make changes. Ok, Grub 2 is very powerful, maybe it's the lagging documentation, or lack of tutorials that is the problem. But I don't know how to fix this. Do I start over without the /boot partition? Do I bail on ubu?

View 9 Replies View Related

Ubuntu Installation :: Deleted Partition Now Getting Grub Rescue

Sep 10, 2010

I have ubuntu in sda7. sda6 had bt4, sda3 had Win7. From Win7 I removed sda6. Now when I start my computer I get grub rescue. How can I tell grub that ubuntu in sda6 and not in sda7 anymore or how can I create sda6 again so ubuntu goes sda7.

View 1 Replies View Related

Ubuntu Installation :: Grub Is Unable To Find Partition

Oct 4, 2010

I have a 9.10 ubuntu desktop on a tower (bought 2004) working fine, and wanted to add a 10.4 server on an additional partition. After install, I stated grub may be newly written, as the list of os was fine. After reboot I got "grub rescue>" I managed to get the system working again, and now I have a grub2 menu list stating correct entries. But when I select the server entry the boot fails telling "disk not found" (The UUID of the partition given is correct, and also shown when accessing the partition from the 9.10 desktop (this needs an additional authentification when mounting) grub shell command ls does not show the partition, all other tools (life-CD, working installation, gparted etc.) do show it normally, I cannot find any difference. The partition is on the beginning of the disk

View 3 Replies View Related

Ubuntu Installation :: Grub Error 13 From Chainload To New Partition

Jan 3, 2011

I have a machine with two disc but only one is involved in the boot. It is hd0 / sda. On this I have several partitions, first I have a partion (sda1) with grub-legacy and a menu.lst file that boot by chainloading my ubuntu 10.04 on partition sda4 (with ext4 and grub 2). This works without any problems. Today I was doing a larger upgrade of my mythtv install so I first copied sda4 to sda3, did all the neccessary changes in /etc/fstab and a grub-mkconfig (so that the grub.cfg on sda4 also included sda3 kernel). The chainload manage to nicely chainload to sda4 and when I select the newly copied kernel on sda3 it boots. Now inside the booted kernel/ubuntu on sda3 I again do the grub-mkconfig so I get a correct grub menu. I add a new chainload to menu.lst on sda1 so that I can go direct from that to my new partition.

when I chainload to the sda3 (hd0,2) partition I get grub-legacy error 13 invalid or unsupported executable format. No grub2 menu from sda3 shows up and the boot halts. The grub.cfg files on sda3 and sda4 are identical besides the uuid and hd0,3/4 references.

View 1 Replies View Related

Ubuntu Installation :: Edit Grub To Boot Different Partition?

Feb 3, 2011

I'm dual boot with Vista(TM) and UBUNTU(tm) and ran out of space on Ubuntu partition:I booted Ubuntu 10.04LTS live CD and shrank the VISTA. It would NOT let me grow the extended partition? So now I have:

sda1 ntfs /media/TOSHIBA_SYSTEM_VOLUME 1.46GB
sda2 ntfs /media/SQ004588V03 88GB
sda4 ext3 THIS IS MY NEW PARTITION 15GB

[code].....

View 9 Replies View Related







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