You are not logged in.

#1 2008-04-30 02:14:29

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

[SOLVED]Help!! Reinstalling grub

I was partitioning the hard drive on my laptop and damaged grub. Now I get loading error 22.

I followed the instructions for reinstalling in the wiki and this is the error I get.

[Arch Linux: /]#grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.

Any help?
I followed all the instructions, and the mounting commands went without error. My arch partition is sda6. My vista partition is sda3. The menu.lst file still exists, but grub was damaged when I eliminated my ubuntu partition and moved arch back 40GB.

Last edited by Raccoon1400 (2008-04-30 21:59:54)


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#2 2008-04-30 03:05:15

Ruckus
Member
Registered: 2007-02-17
Posts: 204

Re: [SOLVED]Help!! Reinstalling grub

Raccoon1400 wrote:

I was partitioning the hard drive on my laptop and damaged grub. Now I get loading error 22.

I followed the instructions for reinstalling in the wiki and this is the error I get.

[Arch Linux: /]#grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.

Any help?
I followed all the instructions, and the mounting commands went without error. My arch partition is sda6. My vista partition is sda3. The menu.lst file still exists, but grub was damaged when I eliminated my ubuntu partition and moved arch back 40GB.

I'd throw the install CD back in and run the setup, but ONLY do the install grub step. skip all others. I had to do this last week because windows broke grub.

Offline

#3 2008-04-30 06:20:03

keratos
Member
Registered: 2008-04-27
Posts: 138

Re: [SOLVED]Help!! Reinstalling grub

# grub-install --recheck /dev/sda

Offline

#4 2008-04-30 10:13:57

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: [SOLVED]Help!! Reinstalling grub

I tried both suggestions and get this.

[Arch Linux: /] grub-install /dev/sda
Probing devices to guess Bios drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.

grub-install -recheck /dev/sda gives this:
[Arch Linux: /] grub-install /dev/sda
Probing devices to guess Bios drives. This may take a long time.
/dev/sda7: Not found or not a block device.

Note: in between trying these commands, I removed ubunutu from grub. Ubuntu was erased during my partitioning.

Last edited by Raccoon1400 (2008-04-30 10:30:06)


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#5 2008-04-30 10:22:36

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: [SOLVED]Help!! Reinstalling grub

Sda7 is not a partition on my drive. It is mentioned in grub in the arch entry, though.
D I need to mount my vista partition too, or just the arch one?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#6 2008-04-30 10:36:17

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: [SOLVED]Help!! Reinstalling grub

When
i mount both, I still get
/dev/sda7: Not found or not a block device.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#7 2008-04-30 11:27:39

keratos
Member
Registered: 2008-04-27
Posts: 138

Re: [SOLVED]Help!! Reinstalling grub

This smacks of a hack!

Have you been trying to "overlay" Arch on top of an existing Ubuntu install. Was the disk paritioned for ubuntu and are you trying to reuse any of the partitions.  Whilst possible, you need to know what you are doing because linux stores system maps and device maps - you canto just simply reuse paritions.


In my view you have got lost somewhere and dont really know what you have done, thus it would be difficult for anyone to assist ou if that is the case.

You should reinstall and make sure you delete all paritions and allow arch to reconfigure the drive.

For the time it has taken you to post these issues, you could have reinstalled.

Offline

#8 2008-04-30 19:53:58

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: [SOLVED]Help!! Reinstalling grub

Simplified partition layout:

old layout :
vista:sda3 ubuntu:sda4
yesterday
vista:sda3 ubuntu:sda4 arch:sda6
today:
vista:sda3 arch:sda6

I don't want to reinstall. It took me a long time to get everything up and running. I think it can be avoided.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#9 2008-04-30 20:06:19

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: [SOLVED]Help!! Reinstalling grub

hi, I don't know if it can help but I've heard of this:
http://supergrub.forjamari.linex.org/
I never tested it anyway
good luck

Offline

#10 2008-04-30 21:34:50

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: [SOLVED]Help!! Reinstalling grub

With the help of super grub disk, I restored grub.
I figured out why the bootloader had been lost.
When I partitioned, I deleted sda6. Arch was sda7
Arch became sda6 because the old sda6 was deleted. Arch though it was sda7 when it was sda6. I had to edit grub and fstab to correct that.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#11 2008-04-30 21:53:16

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [SOLVED]Help!! Reinstalling grub

Glad you got it working. Please amend [solved] to your thread's title. wink

Offline

Board footer

Powered by FluxBB