move the boot-sector, how?

Olivier Nicole Olivier.Nicole at cs.ait.ac.th
Wed Jul 14 01:33:39 UTC 2010


Hi Herman,

> My system does not boot. Apparently the boot-sector is on the 15GB ATA
> drive. (I had to put back the 15GB drive).
> 
> I have a new (no-upgrade) 10.04 LTS. 64-bit system, 1GB mem.
> I guess I run Grub2.
> 
> I like to move the Ubuntu-bootsector from the old 15GB ATA harddisk to
> one of the 80GB harddisks. (so I can remove the old HD).
> How do I move the bootsector?
> 
> With GRUB2 I suppose.
> I installed grub ...... it has no 'version' cmd, so I am not sure I am
> running GRUB2.

>From synatic tool, if you install grub, it's grub 1, verion .97, if
you install grub-pc it's grub 2, version .98.

You need to know which of your 80 GB SATA disk has the Ubuntu root
partition.

You boot from your old 15Gb disk or from an Ubuntu installation disk,
using live CD/demo/try mode.

You open a terminal.

You need to mount your Ubuntu partition from you 80GB SATA disk;

   sudo mount /dev/sdXY /mnt

where X is a or b and Y is the partition number

Then you install grub on that disk:

   sudo grub-install --root-directory=/mnt/ /dev/sdX

More info in https://help.ubuntu.com/community/Grub2

Olivier




More information about the ubuntu-users mailing list