LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Debian Squeeze Grub2 Problem -> error: out of partition (https://www.linuxquestions.org/questions/debian-26/debian-squeeze-grub2-problem-error-out-of-partition-855106/)

michalng 01-09-2011 12:20 AM

Debian Squeeze Grub2 Problem -> error: out of partition
 
Boot up my laptop and got and error message
Quote:

error: out of partition.
Shutdown the laptop and restart and somehow grub let me boot into Debian.

In Debian, I did a update-grub2 and got this error
Quote:

Generating grub.cfg ...
/usr/sbin/grub-probe: error: out of partition.
Any idea what is wrong here?

EDDY1 01-09-2011 01:27 AM

I'm not sure but isn't grub2 transitional?
Even though you have grub2 it's grub-pc.
try
"update grub"
if you have sudo configured
"sudo update-grub"

michalng 01-09-2011 01:43 AM

Hi Eddy,

as I've said, grub allows me to boot into Debian so didn't know what's causing the error message on bootup which mysteriously disappeared now.

suspect it's due to the "aptitude upgrade" that I've done earlier on.


anyway, tried what you mentioned "update-grub" and things seems okay,
in fact, "update-grub2" is also okay now.

Quote:

update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
done

update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
done
and I really don't feel good about it, even though everything's working now :(

kevinbenko 01-09-2011 01:46 AM

EDDY1:

/usr/sbin/update-grub2 is a shell script that executes update-grub
/usr/sbin/update-grub is a shell script that executes grub-mkconfig

hence grub-mkconfig == update-grub == update-grub2

=============================================================

Now, as to the original error itself, I haven't a clue, yet.
Unfortunately, the grub2 documentation is scarce, but getting better, and even that documentation that does exist becomes more obsolete every time they update grub2.

I would suggest taking a look at http://www.gnu.org/software/grub/ and wading through their documentation for your error, as grub2 is currently a moving target.

EDDY1 01-09-2011 02:41 AM

Thanks kevinbenko that's useful information.
That's exactly why I question my answer because I just wasn't sure if update-grub2 was a valid command.


All times are GMT -5. The time now is 02:02 AM.