You are not logged in.

#1 2010-05-20 04:09:04

sausage
Member
Registered: 2010-03-23
Posts: 15

GRUB reinstall issues

so im trying to have windows and and arch on the same hard drive.

I installed arch a while back and I installed winodws a few hours ago.  My friend told me I needed grub to get back into arch, but, I can't install it.

I go into a liveCD, type grub, type root (hd0,0) , type setup (hd0) and it does its thing.

Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "install /grub/stage1 (hd0) /grub/stage2 p /grub/menu.lst "... succeeded
Done.

and then I reboot and nothing's changed, YAY for failures....

Offline

#2 2010-05-20 04:17:07

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: GRUB reinstall issues

Show the output of

sudo fdisk -l

Offline

#3 2010-05-20 04:42:37

sausage
Member
Registered: 2010-03-23
Posts: 15

Re: GRUB reinstall issues

well, somehow it works now, after like 4 tries, it goes into grub.

I edited /grub/menu.lst to show Windows but I don't know how to get it to start, it just reloads grub when I hit enter on it

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004dee5

   Device Boot      Start          End       Blocks   Id  System
/dev/sda1   *           1          13      104422   83  Linux
Partition 1 does not end on a cylinder boundary
/dev/sda2               14          1003  104422   83  Linux
Partition 2 does not end on a cylinder boundary
/dev/sda3               1004      4630  104422   83  Linux
Partition 3 does not end on a cylinder boundary
/dev/sda4               4631      9729  104422   7    HPFS/NTFS
Partition 4 does not end on a cylinder boundary

Last edited by sausage (2010-05-20 04:46:41)

Offline

#4 2010-05-20 08:46:47

boogy
Member
From: /dev/random
Registered: 2010-05-20
Posts: 37
Website

Re: GRUB reinstall issues

You can mount the partition with the live CD and type :

grub-install --root-directory=/mnt/mountedDrive /dev/sda

I think I got the command right, correct me if I'm wrong
This should work better then the grub shell commands

Last edited by boogy (2010-05-20 08:47:34)


Where there is a shell, there is a way

Offline

Board footer

Powered by FluxBB