Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2 error: attempt to read or write outside of disk 'hd0'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
piedar
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2010
Posts: 82

PostPosted: Sun Jun 17, 2012 8:56 pm    Post subject: grub2 error: attempt to read or write outside of disk 'hd0' Reply with quote

When attempting to boot, grub2 drops me to a rescue shell with the message
Quote:
error: attempt to read or write outside of disk 'hd0'

The message also appears every time I try to access any directory lower than /.
Code:
grub rescue> ls
(hd0) (hd0,msdos1) (hd1)
grub rescue> set
prefix=(hd0,msdos1)/boot/grub2
root=hd0,msdos1
grub rescue> ls (hd0,msdos1)/
./ ../ lost+found/ data/ rtorrent/ dev/ bin/ home/ etc/ lib/ tmp/ sys/ mnt/ var/ sbin/ proc/ boot/ usr/ root/ opt/ run/
grub rescue> ls (hd0,msdos1)/boot

error: attempt to read or write outside of disk 'hd0'.
grub rescue> ls (hd0,msdos1)/etc

error: attempt to read or write outside of disk 'hd0'.

This happens even if I disconnect all other hard drives. I do not have a separate boot partition.
The only google result for the error message is the file containing grub error messages.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Jun 18, 2012 2:28 am    Post subject: Reply with quote

piedar,

That certainly looks nasty :(

Is this a new gentoo installation or did you upgrade from the legacy grub on a working installation :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
piedar
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2010
Posts: 82

PostPosted: Tue Jun 19, 2012 2:11 am    Post subject: Reply with quote

This was a drive that had been moved to a new machine after the old one's motherboard died - I'd thought they'd be compatible, but they weren't (P4->Celeron). Even after extracting a generic x86 stage3 over the old install, chrooting in, and rebuilding grub, the problem persisted. My guess is that the BIOS was incompatible with the size of my / partition. Long story short, I accidentally fubared the / partition trying to resize it to make room for /boot. This led me to install Debian, which will serve as a stop-gap until I replace it with some Gentoo-worthy hardware.

Last edited by piedar on Tue Jun 19, 2012 8:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Jun 19, 2012 3:59 am    Post subject: Reply with quote

piedar,

Thanks for that explanation - it certainly clarifies things :)

Good luck :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum