You are not logged in.

#1 2007-12-15 13:10:36

orie
Member
Registered: 2007-12-15
Posts: 13

grub broken since last system update

hi.

yesterday i did a full system update like every few days. but while trying to boot the system this morning, grub hangs with only "GRUB " printed.
booting the system with the arch installation cd works fine but now i'm not quite sure how to proceed without braking the whole installation.
trying to reinstall grub results in:

grub> setup (hd0,2)

Error 12: Invalid device requested
[root@ganymed flen]# grub-install /dev/sda3
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
The file /boot/grub/stage1 not read correctly.

i'm running arch on a macbook parallel to macos.

/dev/sda1 fat32
/dev/sda2 hfs+
/dev/sda3 ext3
/dev/sda4 swap

what else could i try before setting up a new system?

thx orie

Offline

#2 2007-12-15 14:37:58

floke
Member
Registered: 2007-09-04
Posts: 266

Re: grub broken since last system update

Offline

#3 2007-12-15 15:11:59

orie
Member
Registered: 2007-12-15
Posts: 13

Re: grub broken since last system update

i just did, but it didn't help.

again i get:

# grub-install /dev/sda3
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
/sbin/grub-install: line 435: cmp: command not found
The file /boot/grub/stage1 not read correctly.

(i need to have grub on my root partition instead of the mbr. otherwise i couldn't boot macos anymore)

like the wiki said, i checked /etc/fstab, but there seems to be nothing wrong:

# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom              /mnt/cdrom      iso9660 ro,user,noauto,unhide   0       0
/dev/dvd                /mnt/dvd        udf     ro,user,noauto,unhide   0       0
/dev/sda3               /               ext3    defaults                0       1
/dev/sda4               swap            swap    defaults                0       0

my entries in /boot/grub/menu.lst read:

# (0) Arch Linux
title  Arch Linux
root   (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro vga=773
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro
initrd /boot/kernel26-fallback.img

Offline

#4 2007-12-15 15:35:27

neo
Member
Registered: 2004-10-11
Posts: 11

Re: grub broken since last system update

I get the same error too. need some help!:/

Last edited by neo (2007-12-15 15:35:38)

Offline

#5 2007-12-15 15:41:49

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

Re: grub broken since last system update

I installed lilo... I gave up.

Offline

#6 2007-12-15 15:46:52

orie
Member
Registered: 2007-12-15
Posts: 13

Re: grub broken since last system update

in the german arch forums i found a solution for the grub-install error. just needed to install "diffutils".
now grub-install runs successfully. but the system still hangs at "GRUB ".

Offline

#7 2007-12-15 16:07:06

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: grub broken since last system update

This probably doesn't have anything to do with your reinstalling grub problem, but I had an issue a while back where I ended up having to add rootfstype= to my grubs menu.lst....

kernel /vmlinuz26 rootfstype=ext3 root=/dev/sdb3 ro vga=773


-- archlinux 是一个极好的 linux

Offline

#8 2007-12-15 16:40:29

ebirtaid
Member
From: USA
Registered: 2007-11-18
Posts: 52

Re: grub broken since last system update

orie I heard someone talking in the irc channel talking about grub changed the mapping on their box, youcould try pointing it at (hd0,3) and see if that helps, no promises though

Offline

#9 2007-12-15 17:08:01

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: grub broken since last system update

# (0) Arch Linux
title  Arch Linux
root   (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro vga=773
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro
initrd /boot/kernel26-fallback.img

You could try commenting out the root entry, and pass it in kernel entry with root=UUID=<insert UUID here>  instead.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#10 2007-12-15 17:11:55

orie
Member
Registered: 2007-12-15
Posts: 13

Re: grub broken since last system update

leigh, ebirtaid, tried both but no changes: grub-install without errors, system hangs at "GRUB ".
the strange thing is, that i don't even get the grub prompt.

//edit:

pelle.k: also no changes

Last edited by orie (2007-12-15 17:39:33)

Offline

#11 2007-12-16 05:17:57

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: grub broken since last system update

What bootloader do you use to boot macos? I think because grub is not in the mbr and not on the first partition, and if your using a different bootlaoder for macos, you have to chainload grub to boot into grub from the macos bootloader? Something like that. I never had to do that, so I'm pretty fuzzy about it, but I remember reading about something like that on the grub site.


-- archlinux 是一个极好的 linux

Offline

#12 2007-12-16 06:29:39

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: grub broken since last system update

grub-install might not be enough.
if your boot sector is trashed, then boot in to the installation with the arch cd. Then;

grub #this launches the grub shell

root (hd0,2)
setup (hd0,2)
quit

Last edited by pelle.k (2007-12-16 06:31:36)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#13 2007-12-16 08:26:10

luciferin
Member
Registered: 2007-05-10
Posts: 144

Re: grub broken since last system update

I had this same problem but though it was isolated to my install.  I'm actually running two Arch boxes but only one of them had a problem...  Grub install solved it for me. 

orie: As others are suggesting it sounds like you're using grub from the MBR, not /dev/sda3.  Is this the case?  You'll wants to do:

grub-install /dev/sda

Offline

#14 2007-12-16 12:46:35

orie
Member
Registered: 2007-12-15
Posts: 13

Re: grub broken since last system update

Leigh, luciferin: in the mbr i use apple's bootcamp to choose between /dev/sda2 (MacOS) and /dev/sda3 (Arch). then on sda3 i have grub to actually boot into arch. this combination worked fine for me up to now.

pelle.k: just tried that. again it ran successfully but no improvement. when running "root (hd0,2)" grub seems to detect an ext2 filesystem instead of ext3. could this be the problem?

grub> root (hd0,2)
 Filesystem type is ext2fs, partition type 0x83
 
 grub> setup (hd0,2)
  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,2)"... failed (this is not fatal)
  Running "embed /boot/grub/e2fs_stage1_5 (hd0,2)"... failed (this is not fatal)
  Running "install /boot/grub/stage1 (hd0,2) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
  Done.

Offline

#15 2007-12-16 17:15:34

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: grub broken since last system update

What happens if you downgrade grub, since everything *seems* ok when you install grub to the bootsector, but clearly it isn't?


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#16 2007-12-16 18:48:09

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: grub broken since last system update

take a look at this thread...
http://ubuntuforums.org/archive/index.php/t-541902.html

it looks very similar to your problem, especially the last post.


-- archlinux 是一个极好的 linux

Offline

#17 2007-12-16 19:58:54

orie
Member
Registered: 2007-12-15
Posts: 13

Re: grub broken since last system update

it's working again!

but i have no idea why. did the same thing as before (bootcd -> "grub" -> "root (hd0,2)" -> "setup (hd0,2)") and suddenly grub is working. whish i could tell you more.

Anyway, thank you all for your help! smile

Last edited by orie (2007-12-16 19:59:38)

Offline

Board footer

Powered by FluxBB