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


ADVERTISEMENT

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

Ubuntu Installation :: Grub Prompt After Creating Persistent USB Backtrack 4 R2?

Jan 30, 2011

I have the following problem. I tried to make a persistent USB Backtrack 4 r2. I followed the steps according to the instructions and did not noticed any errors.

fdisk /dev/sdb
Command (m for help): d
Partition number (1-4): 1
Command (m for help): n
Command action

[Code]...

I can boot from USB because when i use Unetbootin everything works fine. Although it'snot persistent in that situation. I seachered the web but i can't find the solution. I have run a script which i ran into on Sourceforge.net. The results are in the attachement. But unfortunately i am real Newbie on linux so..

View 6 Replies View Related

Ubuntu :: Creating Bootable Disk For Existing Grub On Flash Drive?

Aug 5, 2010

I wish to create a bootable disk for my existing grub legacy. I do not have a floppy drive. Could this be done on a CD-RW or flash drive?

View 1 Replies View Related

General :: Creating A Grub2 Boot-cd With A (grub.cfg) Menu?

Sep 13, 2009

Here is how I created a Grub2 boot-cd with a (grub.cfg) menu:

mkdir /tmp/cdroot
mkdir /tmp/cdroot/boot
mkdir /tmp/cdroot/boot/grub
cp /boot/grub/grub.cfg /tmp/cdroot/boot/grub
cd /tmp

[code]....

NOTE: The above proceedure assumes you already have a grub.cfg file. If you don't, create one in the /tmp/cdroot/boot/grub directory

View 6 Replies View Related

Ubuntu :: Use DD To Clone One Disk To Many

Jan 25, 2011

I was thinking about make a clone machine. I was thinking about use a old computer that have some SATA connection. One disk is source and then I add some other disk to destination. I going to have Linux on USB stick. I have look at dd and it look nice but what I can see it only use one disk to another.
Code:
dd if=/dev/hdx of=/dev/hdy
is it possible to add more then one destination?

View 7 Replies View Related

Ubuntu :: Clone USB Stick To Another?

Jul 28, 2011

I have linux installation which is on USB flash drive...there are two partitions. how to clone it to another USB. I tried manualy creating partitions on new flash drive and manualy copyng files but this doesn't work.

View 2 Replies View Related

Ubuntu :: Can DD Completely Clone An SD Card

Mar 19, 2010

I have come across an issue when cloning an SD card.I have a SheevaPlug, which is a low power ARM based computer. I used an Intel based HP laptop running Ubuntu 9.04 to clone the 4GB SD card of the SheevaPlug. The card contains 2 partitions: the boot image, and the root filesystem. I did this using dd directly from one 4GB card to a second 4GB card (sudo dd if=/dev/sdb of=/dev/sdc), and also by dumping the first card to an image file and then from the image file to the second card.

The process worked successfully in that the SheevaPlug seems to run fine off the cloned card, but here�s the strange thing: when I use Gparted to examine the original card, it shows it has 2 partitions. However, when I do the same with the cloned card, Gparted detects no partitions at all. Ubuntu seems to mount the partitions fine as well. Anyone have any idea what might be happening? I thought DD was supposed to perform a bit-for-bit copy of the whole device given the parameters I used, and that Gparted should therefore show identical results no matter which card it was looking at

View 9 Replies View Related

Ubuntu :: How To Clone Monitor Resolution For TV

Jun 23, 2010

How to change the resolution of my tv to be the same as the monitors. I mean cloning ..

View 9 Replies View Related

Ubuntu Installation :: How To Create Clone In USB

Oct 2, 2010

I have Ubuntu 10.04 installed in my desktop and is working fine. I would like to clone the Ubuntu with all my settings etc to a USB Flsah drive so that I can take it with me during travel.I don't want to reinstall in USB FLASH rather I want asis Desktop Ubuntu in USB FLASH.

View 1 Replies View Related

Ubuntu Installation :: Best Way To Clone / Transfer OS Across HDD

Dec 23, 2010

What's the best way to transfer across one hdd to another? I want to avoid setting up my kubuntu 10.10 instance again and hoping there's a way to easily clone it across.

View 2 Replies View Related

Ubuntu Networking :: Mac Address Will Not Clone?

Apr 7, 2011

Bit of a strange one, to get internet I have to clone my MAC address on eth0. I'm using Ubuntu 10.10 64bit and have had a couple of strange problems.

1. If I run macchanger after login and set the mac to the correct one everything works perfectly. But as soon as I reboot it reverts back to the old mac.
2. If I use the network settings (i.e., the tray icon in the top right) to spoof the mac, then I get no connection. Eventually it does connect (I'm talking about a 10 minute wait) then I get kicked off after a few minutes.
3. If I edit the /etc/network/interfaces files there is no setting for et0. All that is in the file is:
auto lo
iface lo inet loopback
If I add the settings for et0 then I get the same problems as in 2. The settings I've been adding are.
auto eth0
iface eth0 inet dhcp
hwaddress ether 01:02:03:04:05:06 (obviously with a different MAC)

View 2 Replies View Related

Ubuntu :: Backup Or Clone Install To Usb Hd?

May 25, 2011

I have ubuntu 10.10 installed on 1TB HD. I would like to back up the full hd, on a 2TB usb HD I have. I would like an easy way to clone/backup the full installation, so if my hd fails I would be able to book the usb hd to get files or do a full reinstall. I have tried dd, but not certain if it worked correctly.Also tried clonezilla and that did not work

View 6 Replies View Related

Ubuntu :: DD Disk Clone For Some Partitions

Jun 11, 2011

I have a 160Gb Hard drive with 3 partitions. sda1, sda2, sda3. sda1 & 2 are just under 20 GB each. the other 120 GB is free space. I have so many 40GB hard drives! I would like to copy (with dd) the MBR, sda1 & 2 to a 40GB hard drive and be able to just use that so I can free up my 160GB hard drives. Typically when I want to clone something, the drives are equal or larger than the original. I'm not too sure about this, and if I use code (show below), will I also get the MBR? #where sda is the 160gb with 3 partitions and drive sdb is a 40GB drive with 2 partitions.

Code:
dd if=/dev/sda1 of=sdb1
dd if=/dev/sda1 of=sdb1
Also, is there a way I can do this with 1 line, or have both dd operations running simultaneously?

View 2 Replies View Related

Ubuntu Networking :: Git Clone Is Very Slow

Aug 2, 2011

git clone is very very slow..This internet is capable of 630 kb/s and git is only cloning it at 30kb/s-80kb/s from git://kernel.ubuntu.com/ubuntu/ubuntu-natty.git and I am trying to make a custom kernel. I am the IT for my company. And I am trying to make a new kernel for our linux server. I am still somewhat new to Linux, but I know for a fact over the several T1's we have fused it shouldn't be this slow.

View 1 Replies View Related

Ubuntu Servers :: How To Backup Or Clone

Aug 9, 2011

I have a file server running in an office that's mostly used for file sharing and a scanner saves pdf files to the server. I'm running the latest LTS ubuntu server edition and I really only have ssh installed and samba. My question is that I've done so much to the server as far as premissions and configuration and I'd like to make a clone of this to another computer and not sure how I would do this?

I'm not sure if clonezilla or something like this can perform this task? I basically just have a very old computer and now I have another very old computer that I want to make into a spare just incase something happens to the original. Any recommedations on how I would accomplish this?

View 3 Replies View Related

Ubuntu :: Clone A Hard Drive Using Dd & Netcat?

Jan 7, 2010

i'm trying to clone a hard drive using dd & netcat.

Quote:

on target:
nc -l -p 1333 |dd of=/dev/sdb
on source:
dd if=/dev/sdb |nc 192.168.0.5 1333

However after a while since the process was initiated I get a

I/O error in filesystem ("....") meta-data dev ...block 0x..... ("xfs_read_buf") error 5 buf count 512 XFS: size check 2 failed

Further digging showed that the target hard drive was less in space by 100 kb. Both are 1 T drives seagte but different models, hence the diff in space maybe.The data on the original drive is only 900 GB.

View 6 Replies View Related

Ubuntu :: Backup Or Clone The System Daily Using Ssh?

Feb 13, 2010

I have ubuntu 8.4 can i backup or clone the system daily using ssh ??

View 3 Replies View Related

Ubuntu Servers :: How To Clone System On Different Hardware

Feb 19, 2010

I am getting a new server and would like to avoid the typicall install process of OS and applications.How can I clone my actual server on a new one that has different hardware?

View 9 Replies View Related

Ubuntu :: Best Choice To Clone Or Backup System?

Mar 2, 2010

I am new Ubuntu. I have a new Dell Mini10 running that I have configured and running. I want to clone or backup the system at it's current state. I have been looking at the options and Clonezilla seems to be recommended often. Are there other choices that are easer or better? My real goal is to make a bootable DVD that will restore my system back to the point it was cloned.

View 2 Replies View Related

Ubuntu :: Backup Software That Can Clone A Directory?

Mar 28, 2010

I'm looking for software that can backup all the files in my /home directory including hidden files.

I liked Lucky Backup, but it puts everything in a tar file, meaning that the backup fails if the file gets too large (4 GB I think). I would prefer to avoid using tar/archives anyway, as often I only need to recover 1 file from a backup (an archive holding my 50 Gb of data would take ages to open).

Does anyone know of a program or a way to get rsync or the like to copy all the files in a directory, including hidden files, into another directory ( so I end up with effectively a carbon copy of the original). Disk space is not an issue so I don't need to compress anything. I'm not bothered whether its a fancy GUI-based program or a rsync command, just so long as it can save my previous files from.... myself.

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

Ubuntu Installation :: Any Way To Clone Wubi Install?

Dec 3, 2010

My wife's laptop has XP on it, I installed Ubuntu using wubi apparently. I thought I had made a separate partition and made a true dual boot system but I guess I didn't. Is there a way to clone the wubi install to it's own partition and add the boot loader after or am I going to have to do a fresh install and set everything up again? I am surprised that she has taken to Ubuntu as well as she has, I thought she would hate it but she actually prefers it to windows now..

View 2 Replies View Related

Ubuntu :: USB Disk Clone With Dd But Still Not Exact Copy?

Dec 11, 2010

I'm trying to clone a 2GB USB memory stick to another stick just like it (same size and brand). The src drive has three partitions, one fat, one ext2 and one encrypted (in that order). It also has an mbr. I create the clone using the following command:

dd if=/dev/xxx of=/dev/xxx bs=512k conv=noerror,notrunc

Once it's done the mbr, the ext2 and the encrypted partitions seem fine, but the fat one is slightly modified on the clone. Here is a hex dump of the (broken) clones fat partition followed by a dump of the original partition.

"Clone":
0000000 3ceb 6d90 646b 736f 7366 0000 0402 0001
0000010 0002 0002 f800 00bc 003e 0040 0000 0000

[code]....

View 3 Replies View Related

Ubuntu Installation :: Image Clone Will Not Boot

Jan 18, 2011

My HDD crashed (it wasn't completely disastrous, though). I was able to get my Ubuntu 10.10 partition of the disk with dd_rescue. I can see all of the data in the partition and everything. dd_rescue reported that there were no errors.Now, I have a fresh HDD, and I copied the image that I created with Gparted, and turned the boot flag on. I turn my system on, and all I get is a flashing cursor in the corner of the screen.I get the feeling that this would be easy for a seasoned user, but I'm not sure where to go. I originally got some information about cloning partitions here: [URL] But, it doesn't tell you how to reload the image after you make it.

View 2 Replies View Related

Ubuntu Installation :: Clone A USB Startup Disk?

Apr 19, 2011

I often run various computers from my Ubuntu 10.04 USB startup disk. Every now and then, people get interested and want a copy of their own. Since I have installed a few extras (VLC, codecs, flash etc) on the disk, not just the out of the box 10.04, I would like to create a clone of the USB startup disk, to give away. How can it be done?

View 2 Replies View Related

Ubuntu :: Natty - Can't Clone My Drive Since Upgrade?

May 19, 2011

I have not been able to clone my drive since the upgrade to Natty. This was never a problem for me in 'any' previous distro. I have a dual boot Windows 7/Natty system; and I never have a problem with the Windows partition getting cloned. partclone (Clonezilla) crashes about an hour and 15 min into the cloning of the Ubuntu partition. I'm getting a "buffer-overflow" error. I'm using clonezilla-live-1.2.5-35-amd64; and have been since Lucid. I've recently downloaded clonezilla-live-1.2.8-42-amd64.iso and am burning it to DVD now. I don't know if this is going to help; but I'm ready to try anything; as this is my only means of disaster recovery! During the reboot into Natty, I received some error messasges stating that there were inode problems. I don't know if this was on the source or destination drive; as I still had the destination drive connected to my USB port. Then I started thinking... What package, that wasn't there in Maverick, that is present in Natty messes with inodes???

Then I thought ZeitGeist So I ripped it and everything connected to it out-by-roots and tried running Clonezilla again; but no luck...Has anyone else had this problem; and what can I do about it I've replaced all of the relevant hardware; and two days and $500 later, I still don't have a solution.

View 9 Replies View Related

Ubuntu Installation :: How To Delete Directory After Git Clone

Jun 25, 2011

I have a couple of beginner questions;I have checked out some source code in a directory, not inside the home directory, using: Code:git clone git://git.videolan.org/ffmpeg.git ffmpeg-gitI moved the folder around (was not originally in the right directory), and now would like to delete it and start from scratch. How can I do it without creating issues with git? (I don't see ffmpeg-git in Synaptic)More generally, what is the best way to delete old folders related to obsolete or malfunctioning software, or even unsuccessful attempts at installing software ? Can I do 'delete' in the file manager? or just sudo rm <folder name> ? Or is there hidden issues?Another related question: When manually installing packages not available in Synaptic, for example, from downloaded tar.gz, what is the recommended directory structure. For example, is it better to use, for example: /home/<program name>/source to unpack the source code/home/<program name>/build to build the software?as opposed to using folders in the root directory? Is there a tutorial on the subject of best practice for directory structure?

View 2 Replies View Related

Hardware :: Ubuntu 8.4 Desktop - Clone To Sandforce SSD

Jan 10, 2011

I have a Ubuntu 8.4 desktop (ZOTAC) test rig that works OK. The OS was first installed on a 60Gb ATA hard drive and subsequently cloned to a separate 120Gb SATA hard drive using ddrescue running for this purpose from a Ubuntu CDRom. As prescribed in dimitar.me/clone-disk-drives-with-ubuntu . . . ,this required simply:
sodu ddrescue -v /dev/sda /dev/sdb

This all worked and the resulting 120Gb drive installed on its own was bootable and fdisk showed that both the 60 and 120 drives had identical EXT3 partitions. Next, I installed a 60Gb SSD (Microcenter G2 series) as a copy destination (/dev/sdc) in the same way as I had used the 120GB drive. Then I wrote a partition on the SSD with
cfdisk -z /dev/sdc followed by W and, as before,
sodu ddrescue -v /dev/sda /dev/sdc

This all worked and fdisk showed that the SSD had the expected cloned partitions. But the SSD would not boot and moreover would not mount because mount stated that the drive did not recognize the EXT3 partition parameter nor any other partition type. Please note that I am not trying for efficient use of the SSD by manipulating partition boundaries and block sizes; I just want it to accept a clone write like a hard drive does.

View 7 Replies View Related







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