Lithium Rain
August 5th, 2009, 04:49 PM
So long story short I must have screwed up when I installed ubuntu to an external hdd connecting to my current box, because I get grub error 21 and have to use super grub disk to boot at all (and I can't figure out how to use the disk to fix it... :\ ).
Anyway, I followed the instructions found here: https://wiki.ubuntu.com/KernelTeam/Grub2Testing
(from which I'll just copy/paste) but I'm stuck after I do the following:
$sudo fdisk -lmount each to see which /dev/sda has what. Once you done that you need to mount your root 1st, in my case /dev/sda2
$sudo mount /dev/sda2 /mntif you ls your /mnt you should see /boot, /dev, /home etc from your HDD. Now mount your /boot in my case it is on a separate partition called /dev/sda1
$sudo mount /dev/sda1 /mnt/bootNext you need to bind mount all your devices from USB to the HDD...
$sudo mount --bind /dev/ /mnt/devchroot into your HDD system and fix things...
$sudo chroot /mnt
So I do all that. It all looks good and tells me what I need to know.
So far, so good. But when I attempt to do the next thing,
now you can run the command grub-install again to install grub to your /dev/sda
$sudo grub-install /dev/sda
$sudo grub-install --recheck /dev/sda
Hit CTRL+D to get out of the chroot, unmount dirs in LIFO order, /mnt/dev, /mnt/boot and /mnt. reboot the system and you are good to go!
It fails. It tells me
/dev/sda: Not found or not a block device.
So I thought maybe I need to append 1 on it. But I get the exact same thing trying to do it to /dev/sda. It's already mounted; mtab tells me so.
I'm really at a loss here...not quite sure what to do...I'd appreciate any help. :)
Anyway, I followed the instructions found here: https://wiki.ubuntu.com/KernelTeam/Grub2Testing
(from which I'll just copy/paste) but I'm stuck after I do the following:
$sudo fdisk -lmount each to see which /dev/sda has what. Once you done that you need to mount your root 1st, in my case /dev/sda2
$sudo mount /dev/sda2 /mntif you ls your /mnt you should see /boot, /dev, /home etc from your HDD. Now mount your /boot in my case it is on a separate partition called /dev/sda1
$sudo mount /dev/sda1 /mnt/bootNext you need to bind mount all your devices from USB to the HDD...
$sudo mount --bind /dev/ /mnt/devchroot into your HDD system and fix things...
$sudo chroot /mnt
So I do all that. It all looks good and tells me what I need to know.
So far, so good. But when I attempt to do the next thing,
now you can run the command grub-install again to install grub to your /dev/sda
$sudo grub-install /dev/sda
$sudo grub-install --recheck /dev/sda
Hit CTRL+D to get out of the chroot, unmount dirs in LIFO order, /mnt/dev, /mnt/boot and /mnt. reboot the system and you are good to go!
It fails. It tells me
/dev/sda: Not found or not a block device.
So I thought maybe I need to append 1 on it. But I get the exact same thing trying to do it to /dev/sda. It's already mounted; mtab tells me so.
I'm really at a loss here...not quite sure what to do...I'd appreciate any help. :)