i get the best results in these scenarios by using a live cd that matches the new install, combined with chroot. E.g.
0. Ideally, update your live boot media to something more recent than alpha2 first; if bandwidth is an issue, try using zsync and a daily image from cdimage.ubuntu.com. Write back if you need more directions for that.
1. Boot your 12.10 live media, and open a terminal window
2. Run
sudo fdisk -lu or
sudo parted -l to see what the device names and partition numbers are. I'll assume your linux root partition is /dev/sda3 in what follows; adjust as necessary.
3. Mount the root and/or boot partitions of the new install, starting with root. E.g.
Code:
sudo -i
mkdir /fixme
mount /dev/sda3 /fixme
4. Prep a chroot environment, still all as root
Code:
cd /fixme
for fs in proc sys dev; do
mkdir $fs
mount -o bind /$f $f
done
chroot .
if /boot is a separate mount point, you'll need to do something about that now, e.g.
mkdir /boot; mount /dev/sdaxx /boot.
5. Now fix grub. I'm assuming you want it on that mbr of the first disk
here is what i get after follwing your direction... My ubuntu is in /dev/sda5
Code:
grub-install /dev/sda
buntu@ubuntu:~$ sudo -i
root@ubuntu:~# mkdir /fixme
mkdir: Cannot create directory `/fixme': File exists
root@ubuntu:~# mount /dev/sda5 /fixme
root@ubuntu:~# cd /fixme
root@ubuntu:/fixme# for fs in proc sys dev; do
> mkdir $fs
> mount -o bind /$f $f
> done
mkdir: Cannot create directory `proc': File exists
mount: Special device overlayfs does not exist
mkdir: Cannot create directory `sys': File exists
mount: Special device overlayfs does not exist
mkdir: Cannot create directory `dev': File exists
mount: Special device overlayfs does not exist
root@ubuntu:/fixme# chroot
chroot: Missing operand
try `chroot --help' for more information.
Root@ubuntu:/fixme#
Bookmarks