On Fri, May 11, 2012 at 6:57 AM, Indulekha <indule...@theunworthy.com> wrote: > On Fri, May 11, 2012 at 03:13:52PM +0800, Bob wrote: >> >> So I ran an apt-get dist-upgrade today and it broke booting >> >> gurb-pc wasn't updated (it was last updated on my system on the 2nd >> of march) linux-image-3.2.0-2-amd64 however was updated & it ran >> update-grub as it should. >> >> https://help.ubuntu.com/community/Grub2#Command_Line_and_Rescue_Mode >> >> When I turn my PC on I end up at the grub> prompt & if I folow the >> instructions on the page above & type >> >> set root=(hd0,1) >> linux /vmlinuz root=/dev/sda1 ro >> initrd /initrd.img >> boot >> >> the system boots. once booted I run one of the commands below & reboot >> update-grub2 >> grub-install --root-directory=/ /dev/sda >> dpkg-reconfigure grub-pc >> >> only to end up at the grub> prompt again. >> >> I have nice sata removable hard drive bays so when I'm doing this >> the USB drive is the only drive connected to the system >> >> >root@USBHDebian:~# uname -a >> >Linux USBHDebian 3.2.0-2-amd64 #1 SMP Mon Apr 30 05:20:23 UTC 2012 x86_64 >> >GNU/Linux >> >> >root@USBHDebian:~# update-grub2 >> >Generating grub.cfg ... >> >Found background image: /usr/share/images/desktop-base/desktop-grub.png >> >Found linux image: /boot/vmlinuz-3.2.0-2-amd64 >> >Found initrd image: /boot/initrd.img-3.2.0-2-amd64 >> >Found memtest86 image: /boot/memtest86.bin >> >Found memtest86+ image: /boot/memtest86+.bin >> >Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin >> >done >> >> >root@USBHDebian:~# ls -la /dev/disk/by-id/ >> >total 0 >> >drwxr-xr-x 2 root root 160 May 10 22:40 . >> >drwxr-xr-x 6 root root 120 May 10 22:40 .. >> >lrwxrwxrwx 1 root root 9 May 11 02:40 ata-ST1000LM010-9YH146_Z110VXRS -> >> >../../sda >> >lrwxrwxrwx 1 root root 10 May 11 02:40 >> >ata-ST1000LM010-9YH146_Z110VXRS-part1 -> ../../sda1 >> >lrwxrwxrwx 1 root root 9 May 11 02:40 scsi-SSeagatePortable -> ../../sda >> >lrwxrwxrwx 1 root root 10 May 11 02:40 scsi-SSeagatePortable-part1 -> >> >../../sda1 >> >lrwxrwxrwx 1 root root 9 May 11 02:40 wwn-0x5000c500464bb542 -> ../../sda >> >lrwxrwxrwx 1 root root 10 May 11 02:40 wwn-0x5000c500464bb542-part1 -> >> >../../sda1 >> >root@USBHDebian:~# cat /boot/grub/device.map >> >(hd0) /dev/disk/by-id/scsi-SSeagatePortable >> >root@USBHDebian:~# grub-install --root-directory=/ /dev/sda >> >Installation finished. No error reported. > > Probably want to skip that "--root-directory" option, unless you're > trying to avoid the mbr for some valid reason... > Might want to stick with genuine Debian documentation, too, unless > you're actually running Ubuntu...
In the case of grub, there's absolutely no difference between Ubuntu and Debian, at least when comparing 10.04 and Squeeze. For 12.04, and perhaps earlier versions, "--root-directory" has been replaced by "--boot-directory" (by upstream not by Ubunical)... The "--root-directory=/" is superfluous and innocuous because it's the default. It has nothing to do with the MBR but with the location of "/boot/grub". When you install grub, are you installing to the MBR of the USB disk? Are there any other disks connected when you run "grub-install"? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=sy-zshmko4l374oy896xaatjxzep0kbfnxgw00snyn...@mail.gmail.com