You are not logged in.

#1 2006-06-06 01:12:49

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Can't install GRUB!!

[jack@nube ~]$ sudo fdisk -l

Disco /dev/hda: 80.0 GB, 80060424192 bytes
255 cabezas, 63 sectores/pista, 9733 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/hda1   *           1        6057    48652821    7  HPFS/NTFS
/dev/hda2            6058        9733    29527470    f  W95 Ext'd (LBA)
/dev/hda5            6058        9694    29214171    b  W95 FAT32
omitting empty partition (5)

Disco /dev/hdb: 80.0 GB, 80026361856 bytes
255 cabezas, 63 sectores/pista, 9729 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/hdb1               1        9729    78148161    f  W95 Ext'd (LBA)
/dev/hdb5               2        7181    57673318+   7  HPFS/NTFS
/dev/hdb6            7182        7217      289138+  83  Linux
/dev/hdb7   *        7218        9729    20177608+  83  Linux
[jack@nube ~]$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.
grub> root (hd1,7)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 d (hd0) (hd0)1+15 p (hd1,7)/boot/grub/stage2 /boot/grub/menu.lst"... failed

Error 22: No such partition

grub>

How can i configure grub (menu.lst)

Offline

#2 2006-06-06 01:26:21

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Re: Can't install GRUB!!

Arrrgghhh!!. :x  :x  sad

[jack@nube ~]$ sudo mount /dev/hdb7 /mnt
[jack@nube ~]$ sudo mount -o bind /dev /mnt/dev
[jack@nube ~]$ sudo mount -t proc none /mnt/proc
[jack@nube ~]$ sudo mount -t sysfs none /mnt/sys
[jack@nube ~]$ sudo chroot /mnt /bin/bash
[root@nube /]# install-grub /dev/hda /dev/hdb7
Install Device:         (hd0)           /dev/hda
Boot Device:            (hd1,6)         /dev/hdb7

Continue? [Y/n] Y
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> root (hd1,6)
 Filesystem type unknown, partition type 0x83
grub> setup (hd0)

Error 17: Cannot mount selected partition
grub> quit

Grub installation failed.

My menu.lst

# (0) Arch Linux
title  Arch Linux
root   (hd1,6)
kernel /boot/vmlinuz26 root=/dev/hdb7 ro
initrd /boot/initrd26.img

# (1) Windows
title Windows XP SP2
rootnoverify (hd0,0)
makeactive
chainloader +1


LILO works!! But i prefer grub.....

Offline

#3 2006-06-06 01:33:42

cdhotfire
Member
From: Ocala, Florida
Registered: 2006-02-13
Posts: 151

Re: Can't install GRUB!!

Have you tried "grub-install"?
But try checking your /boot/grub/device.map and make sure your harddrives in there.


[img]http://www.barbarawood.com/guestbook/images/smilies/koolaid.gif[/img]
"Ooooh Yaaaa!"

Offline

#4 2006-06-06 01:49:42

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Re: Can't install GRUB!!

[root@nube /]# cat /boot/grub/device.map
(fd0)   /dev/fd0
(hd0)   /dev/hda
(hd1)   /dev/hdb
[root@nube /]# install-grub /dev/hda /dev/hdb7
Install Device:         (hd0)           /dev/hda
Boot Device:            (hd1,6)         /dev/hdb7

Continue? [Y/n] Y
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> root (hd1,6)
 Filesystem type unknown, partition type 0x83
grub> setup (hd0)

Error 17: Cannot mount selected partition
grub> quit

Grub installation failed.

:?:  :?:  :?:  :?:

Offline

#5 2006-06-06 02:24:56

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: Can't install GRUB!!

It happened to me so I used lilo and booted happily ever after.
Dont look for names like Grub or Lilo. Use the one that does the Job!


Be yourself, because you are all that you can be

Offline

#6 2006-06-06 02:42:27

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: Can't install GRUB!!

As previously mentioned, try 'grub-install'.


/path/to/Truth

Offline

#7 2006-06-06 02:57:47

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Re: Can't install GRUB!!

Nothing works!.
And crash the entire hda1...i think will lost the very important data end windows xp. :cry:  sad
Now appear like "unknown partition".

Offline

#8 2006-06-06 07:00:49

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: Can't install GRUB!!

install lilo for the last time
The XP section is

other=/dev/hda1
    optional
     label=WindowsXP 

Be yourself, because you are all that you can be

Offline

#9 2006-06-06 09:00:59

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Can't install GRUB!!

/dev/hdb1               1        9729    78148161    f  W95 Ext'd (LBA)
/dev/hdb5               2        7181    57673318+   7  HPFS/NTFS
/dev/hdb6            7182        7217      289138+  83  Linux
/dev/hdb7   *        7218        9729    20177608+  83  Linux

This doesn't look right to me. Partition 1 (primary) is marked as an extended partition  covering the whole disk, blocks 1 - 9729. Partition 2 is divided into three (5, 6 & 7) but almost totally overlaps partition 1?

Your hda partition table looks OK though.

Offline

Board footer

Powered by FluxBB