cr0bar
December 14th, 2009, 05:07 PM
Beforehand, I had Ubuntu 9.10 installed first onto my drive, then I installed Windows 7 afterwards.
I followed this guide to re-installing grub2 and it worked without any problems whatsoever:
http://www.ubuntu-inside.me/2009/06/howto-recover-grub2-after-windows.html
But, now I removed 7 and installed XP in its stead in the same partition (after formatting). Following the same guide works up to the point of chrooting.
Enclosed is the relevant part of the terminal output:
ubuntu@ubuntu:/$ sudo fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090
Device Boot Start End Blocks Id System
/dev/sda1 1 5727 46002096 5 Extended
/dev/sda2 * 5728 11952 50002312+ 7 HPFS/NTFS
/dev/sda3 11953 24321 99353992+ 7 HPFS/NTFS
/dev/sda5 1 747 6000214+ 82 Linux swap / Solaris
/dev/sda6 748 5727 40001818+ 83 Linux
ubuntu@ubuntu:/$ sudo mount /dev/sda6 /mnt
ubuntu@ubuntu:/$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:/$ sudo mount --bind /proc /mnt/proc
ubuntu@ubuntu:/$ sudo chroot /mnt
chroot: cannot run command `/bin/bash': Exec format error
I followed this guide to re-installing grub2 and it worked without any problems whatsoever:
http://www.ubuntu-inside.me/2009/06/howto-recover-grub2-after-windows.html
But, now I removed 7 and installed XP in its stead in the same partition (after formatting). Following the same guide works up to the point of chrooting.
Enclosed is the relevant part of the terminal output:
ubuntu@ubuntu:/$ sudo fdisk -l
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090
Device Boot Start End Blocks Id System
/dev/sda1 1 5727 46002096 5 Extended
/dev/sda2 * 5728 11952 50002312+ 7 HPFS/NTFS
/dev/sda3 11953 24321 99353992+ 7 HPFS/NTFS
/dev/sda5 1 747 6000214+ 82 Linux swap / Solaris
/dev/sda6 748 5727 40001818+ 83 Linux
ubuntu@ubuntu:/$ sudo mount /dev/sda6 /mnt
ubuntu@ubuntu:/$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:/$ sudo mount --bind /proc /mnt/proc
ubuntu@ubuntu:/$ sudo chroot /mnt
chroot: cannot run command `/bin/bash': Exec format error