apt-get upgrade and grub issue

Tom H tomh0665 at gmail.com
Thu May 6 19:18:17 UTC 2010


On Thu, May 6, 2010 at 2:48 PM, Karl Larsen <klarsen1 at gmail.com> wrote:
> On 05/06/2010 11:32 AM, Goh Lip wrote:

>> http://grub.enbug.org/Grub2LiveCdInstallGuide

> I went to this location and they had this:
>
> This is a list of the commands executed in order,
>
> sudo fdisk -l
> sudo mount /dev/sda1 /mnt
> sudo mount --bind /dev /mnt/dev
> sudo mount --bind /proc /mnt/proc
> sudo mount --bind /sys /mnt/sys
> sudo chroot /mnt
> (optional, only if you're on Ubuntu/Debian) apt-get install grub-pc
> grub-mkconfig -o /boot/grub/grub.cfg
> grub-install /dev/sda (try grub-install --recheck /dev/sda if it fails)
> Ctrl+D (to exit out of chroot)
> sudo umount /mnt/dev
> 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.

Your 2nd step is totally wrong. You have to mount a partition not a
disk and that partition might not have an ext4 filesystem.

grub-install can fail; "--recheck" makes grub-install ignore grub's
device map and probe the device again.

Just because you don't understand a set of commands does not mean that
they are incorrect or unnecessary...

The last command will fail; the rest is more or less OK.




More information about the ubuntu-users mailing list