SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-12-30 17:49:32

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 192

[SOLVED] How to move GRUB2 bootloader...

Hi people,

I'm fixing up an old win xp computer. I wiped it clean and installed Lubuntu on it. After a succesful installation of the alternative lubuntu 12.10 32-bit ISO using unetbootin, guess what? The computer failed to start from the HDD.

I noticed that during the installation, the installer recognized the thumb drive as sda en the harddrive as sdb. After the installation was done, it asked me if I wanted to install the bootloader in the MBR, which I OK'ed. It seems it has installed it on the mbr of the stick. The only way to start the computer is to leave the thumb drive in and set the it as primary boot device. The pc then happily boots with a rattling hard drive...

Is there an 'easy' way to copy / move the boot loader to the actual computer HDD?

Below is the output of 'sudo fdisk -l':

Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156299375 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d45b5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   154269695    77133824   83  Linux
/dev/sda2       154271742   156297215     1012737    5  Extended
/dev/sda5       154271744   156297215     1012736   82  Linux swap / Solaris

Disk /dev/sdb: 4009 MB, 4009754624 bytes
23 heads, 23 sectors/track, 14804 cylinders, total 7831552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf7015406

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        8064     7831551     3911744    b  W95 FAT32

UPDATE:

I solved the issue by running 'sudo grub-install /dev/sda' Sorry for jumping the gun here and cluttering up the forum...

Last edited by Erik (2012-12-30 18:03:11)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo