You are not logged in.

#1 2009-11-04 09:07:03

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Grub Error 22 (solved)

I need to recover data from a computer where the boot from CD does not work. (do not ask)
I wanted to install Archlinux on my usb key it seems the installation went fine* but I am doing something wrong while installing GRUB and when I reboot I got an `Error 22'.

From the host system I did `grub-install (hd2)' I got:

Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)    /dev/fd0
(hd0)    /dev/sda
(hd1)    /dev/sdb
(hd2)    /dev/sdc <-it seems correct and the usb key did blink

I edited the usb_key_mount_point/boot/grub/menu.lst putting a single menu option:

timeout   5
default   0
color light-blue/black light-cyan/blue

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26]
root   (hd0,0)
kernel /vmlinuz26 /dev/disk/by-uuid/c648a030-b35c-4ec8-9c80-b43cb9a3e184 ro
initrd /kernel26.img

I set root (hd0) because if I understood correctly when booting from usb key the usb key becomes the first drive. and the c648... is indeed the uuid of the usb key.

I sought via google about the error `error 22' but I got only solutions like `Remove GRUB and install the Windows boot manager' I have no such thing I hope there is another solution.

Thanks for any insight.
etb


*Thanks for the genial -r option of Pacman: developers you are the best!

Last edited by ezzetabi (2009-11-04 21:56:01)

Offline

#2 2009-11-04 21:55:46

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Grub Error 22 (solved)

Thanks to anyone who thought about the problem.
I got the solution: grub was confused by the fact that I formatted making an ext2 filesystem and I did not updated the partition's system id.

Offline

Board footer

Powered by FluxBB