You are not logged in.

#1 2011-08-29 05:10:23

alababi
Member
Registered: 2011-08-08
Posts: 4

reinstall grub, got error 21

Today I reinstalled windows 7 so I have to reinstall grub. Here is the result of my fdisk -l

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    92162047    46080000    7  HPFS/NTFS
/dev/sda2        92203008    92407807      102400   83  Linux
/dev/sda3        92438528   976773119   442167296    5  Extended
/dev/sda5        92470140   100663289     4096575   82  Linux swap / Solaris
/dev/sda6       100702208   151902207    25600000   83  Linux
/dev/sda7       151943168   561543167   204800000   83  Linux
/dev/sda8       561584128   976773119   207594496    7  HPFS/NTFS

Then I went to grub shell and ran root (hd0,1)  and got this output

grub> root (hd0,1)                   

Error 21: Selected disk does not exist

And I'm stuck at here. Have been googling around for hours but still cannot find the solution, hope you guys can help me. Please give me swift responses because this is very urgent.

Offline

#2 2011-08-29 05:39:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: reinstall grub, got error 21

Have you tried using <Tab> completion in the GRUB shell?  It might help you divine what it is GRUB sees.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-08-29 08:23:18

alababi
Member
Registered: 2011-08-08
Posts: 4

Re: reinstall grub, got error 21

ewaller wrote:

Have you tried using <Tab> completion in the GRUB shell?  It might help you divine what it is GRUB sees.

Please forgive my ignorance but can you explain more about that. FYI I'm using Archbang, and I only have Archbang liveCD at the moment ( but I will try to download the arch CD as well).

Offline

#4 2011-08-29 13:49:26

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: reinstall grub, got error 21

alababi, if you are using Archbang, you should ask on their forums. I am sure the good people there will help you.

https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Arch Forum Etiquette wrote:

Community technical support shall only be provided for official Arch Linux distribution media installations and the Arch User Repository. Threads concerning issues with derivate distributions, or operating systems other than Arch Linux are prohibited and will be closed.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB