apt-get upgrade and grub issue
Karl Larsen
klarsen1 at gmail.com
Thu May 6 18:48:46 UTC 2010
On 05/06/2010 11:32 AM, Goh Lip wrote:
> On 05/07/2010 12:58 AM, stan wrote:
>
>> On Thu, May 06, 2010 at 08:12:43PM +0800, Goh Lip wrote:
>>
>>> On Thu, 6 May 2010 07:19:27 -0400
>>> stan<stanb at panix.com> wrote:
>>>
>>>
>>>
>>>
>>>> It's a brand new plain vanila install, that I did from scratch .
>>>> So, I am assuming that the current default is grub2, right?
>>>> This machine was not upgraded, or anything like that, it was just
>>>> installed from teh CD, with all defaults, and apt-get updatetd
>>>> a time or two, and yesterday morning, when I went to do another
>>>> apt-get upgrade, I ran in to this issue.
>>>>
>>>>
>>>
>>>
>>> If you have a grub rescue cd, boot into lucid and at terminal
>>> sudo update-grub
>>> sudo grub-install /dev/sda
>>>
>>>
>>> If you don't have grub rescue cd. boot livecd and follow instructions
>>> from
>>> http://grub.enbug.org/Grub2LiveCdInstallGuide
>>>
I went to this location and they had this:
Commands list
This is a list of the commands executed in order,
1.
*sudo fdisk -l*
2.
*sudo mount /dev/sda1 /mnt*
3.
*sudo mount --bind /dev /mnt/dev*
4.
*sudo mount --bind /proc /mnt/proc*
5.
*sudo mount --bind /sys /mnt/sys*
6.
*sudo chroot /mnt*
7.
*(optional, only if you're on Ubuntu/Debian) apt-get install grub-pc*
8.
*grub-mkconfig -o /boot/grub/grub.cfg*
9.
*grub-install /dev/sda* (try *grub-install --recheck /dev/sda* if
it fails)
10.
*Ctrl+D* (to exit out of chroot)
11.
*sudo umount /mnt/dev*
12.
*sudo umount /mnt*
I believe 2. should be "sudo mount -t ext4 /dev/sda /mnt"
Steps 3. 4. 5. are not needed. At 8. you can use "update-grub" which is
the same as he shows see "man update-grub". 9. is bad if grub-install
/dev/sda fails. The man page shows nothing like this.
The rest are fine.
All definitive web pages are not accurate.
73 Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
Key ID = 3951B48D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100506/6be553b9/attachment.html>
More information about the ubuntu-users
mailing list