How do I move ubuntu 11.04 from disk 1 to disk 2

Asked by tomdean

I searched, but, found no answer.

I have a new HP Envy 17 64-bit laptop with two drives. It seems to have a heat problem. HP support seems to think the BIOS is getting corrupted and wants me to upgrade it. To do an upgrade I have to put windows 7 on the first disk. I tried virtualbox but, could not upgrade the BIOS from there.

I have Ubuntu 11.04 on the first disk, with quite a few packages. I tried duplicating sda to sdb and reinstalling grub on sdb. It would not boot.

I want to move my Ubuntu installation to the second disk, install wondows on the first disk, do the upgrade, and use the first disk for something...

How do I move Ubuntu 11.04 from the first disk to the second disk?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
tomdean
Solved:
Last query:
Last reply:
Revision history for this message
Joe Burgess (joemburgess) said :
#1
Revision history for this message
tomdean (tomdean) said :
#2

I believe the disk drives are two drives in one case.

Anyway, I want to move Ubuntu from disk 1 to disk 2 and then install windows 7 on disk 1.

HP wants me to do this for warranty issues....

Revision history for this message
delance (olivier-delance) said :
#3

How did you cloned disk ?
How did you installed again Grub2 ?

You should:
  1-installed Windows on first disk (new one). Windows installer will put its own bootloader
  2-switch both disk making Ubuntu first and Windows second.
  3-reinstall Grub2 from CD. Grub2 will be put on first disk. During installation Windows will be detected and a boot menu will be made with both Ubuntu and Windows. And Windows disk will be UNTOUCHED.

https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB2

Don't hesitate to request more data.

Revision history for this message
tomdean (tomdean) said :
#4

I cannot switch disks.

I cannot install windows without first getting ubuntu on the second disk

Revision history for this message
delance (olivier-delance) said :
#5

How did you cloned disk ?
How did you installed again Grub2 ?

Revision history for this message
tomdean (tomdean) said :
#6

I cloned the disk with clonezilla.

sudo mount /dev/sdb1 /mnt
sudo grub-install --root=/mnt /dev/sdb

Revision history for this message
tomdean (tomdean) said :
#7

On Fri, 2011-07-22 at 18:46 +0000, delance wrote:

I decided to re-install Ubuntu 11.04 on sdb. I saved some files
from /usr/local and home. I saved the package list with dpkg-query. I
chose to import my account from sda

Next, I plan to divide sda into 200G for Windows 7 and 400G for FreeBSD.

I will install windows on the first partition, as is is limited to...
Then, I will boot the DVD and reinstall grub.

Lastly, I will use dpkg to install the packages I initially had.

I will post the results.

I need to figure out the moving from one disk to another problem. I
believe this is at least the third time I have faced it... I hate
windows but for some reason always have to reinstall it!!!! Maybe I
should hate the computer manufacturers, too?

tomdean

Revision history for this message
michael (yellupcm-gmail) said :
#8

To find out if bios is what is causing heat problem, have you considered, bios update without DOS.
http://www.mahalo.com/answers/anyone-know-how-to-get-a-bios-update-for-my-motherboard-if-im-running-ubuntu
http://ubuntuforums.org/showthread.php?t=318789
http://tech.groups.yahoo.com/group/ilug-goa/message/20689
I have not tried this, but seems to have a lot written about it. This will not help warranty problem. It would show if bios update will fix heat problem, without installing Windows.

Revision history for this message
tomdean (tomdean) said :
#9

I installed ubuntu 11.04 on sdb and copied the files I needed to save from sda to sdb
I installed windows 7 on sda (disk0)
I booted the ubuntu 11.04 DVD

    sudo mount /dev/sdb1 /mnt
    sudo grub-install --root-directory=/mnt/ /dev/sdb
    If that returns any errors run:
    sudo grub-install --recheck --root-directory=/mnt/ /dev/sdb

Rebooting, the system went straight to windows. I managed to screw up the windows installation on sda. Now, nothing will boot.

Revision history for this message
tomdean (tomdean) said :
#10

I used the windows DVD to restore the MBR.

Now, I have
  windows 7 on disk 0
  ubuntu 11.04 on disk 1 (sdb)

I have reinstalled grub on sdb. But, that does not change the MBR or windows boot.

I would like to have grub on sda to boot
    windows from disk0 part 2
    freebsd from disk 0 part 3
    Ubuntu from disk 1 part 1 (sdb1)

So far, I have not found a way to do this.

Revision history for this message
tomdean (tomdean) said :
#11

Ok, I finally managed it. The laptop really has two disk drives! toshiba MK6461GS

  installed Ubuntu 11.04 on sdb
  installed windows 7 on disk 0, leaving half for a future FreeBSD install

  booted windows 7
  downloaded and installed easyBCD. There is a free version.
  In easyBCD, add a new entry, linux and select grub 2
      I named it 'Ubuntu 11.04' But, that does not matter.

All done.

Thanks for all the help.

tomdean