Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-17-2009, 04:26 PM   #1
LQ Newbie
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
How to get "dd" created copy of bootable Ubuntu partition to boot on other drive

Hi all:

Here's my setup:

Compaq NC6400
120 gb internal hard drive (which i wish to leave alone)
2 Western Digital USB Drives, each with 250 gb

On USB Drive 1 (3 partitions):

Ubuntu 9.04 installed in the first partition (ext3 at 30 gb)
Linux swap on the second partition (ext 3 at 4 gb)
Remainder of disk on the third (vfat)

On USB Drive 2 (3 partitions):
Slightly larger partition than partition 1 on drive 1 with "dd" created copy of drive 1 partition 1
2 other partitions, both ext3.

The current goal is to be able to backup the ubuntu partition from Drive 1 onto Drive 2 and boot from it on Drive 2, without copying over the entire disk, as I've got other plans for the remaining space.

BUT -------------------

I'm having a horrible time getting the copy of Drive 1's first partition to boot off of Drive 2. And I'm not sure why.

I've been playing with grub-install and fixmbr and looking through the tutorials. Just when I seem to get close, there's a funky error that seems to come up.

Currently, I'm thinking I need to reinstall grub, but am running into a wall of "error 15" messages in trying to follow this advice under "Let Grub do your research for you" using the find command:

and that of the grub manaul.

At the same time, frustratingly, I can easily view the files in question via konqueror (using a knoppix live cd) on Drive 2 (drive one unplugged).

So ... I'm not sure what to do at this point. This doesn't seem like rocket surgery, but I'm stumped as to what to do next.

Help please.

Old 06-17-2009, 05:15 PM   #2
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
If you've copied the drive, then yes it sounds like you need grub on the drive's MBR to boot. I do this by running "grub" (from any install, be it on your other drive or from a Live CD) and then run "root (hd0,0)" (It may be "(hd1,0)" for you for example). Then run "setup (hd0)" (changing the number to represent your hard drive). If you press tab along the way it should give you a list of possible options and drives. Once you're done, type quit to come out of grub.

If you install it on the wrong drive, there's no harm done if it's already got grub on it, but it would mess up a Windows drive.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I find "boot.img" to copy to my diskette? zahrul Linux - Newbie 9 01-02-2010 04:10 AM
can longer copy files to my empty USB pen drive on DSL - "no space left on device" misterfever Linux - Newbie 11 03-18-2009 03:42 PM
"i8042.c: Can't read CTR while initializing i8042" when USB drive is bootable in BIOS openSauce Linux - Hardware 3 05-14-2008 07:18 PM
Can I make a bootable TAPE using "dd" or "GHOST" from RedHat Enterprise Linux AS 4 rrojo7229 Linux - Server 3 12-20-2007 07:53 AM
Ntfs-Fuse copy error Debian "Sid" / Ubuntu "6.06" animefriik Linux - General 0 10-06-2006 09:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration