Try this:
chroot /mnt bash
mount -a
update-grub
grub-install /dev/sda8 # <- are you sure about this? (see below)
unmount -a
exit
About installing grub to a specific partition
If you do this, your boot loader needs to be aware that the partition has something interesting. Microsoft's bootloader is configured by editing c:\boot.ini
. You do this by first copying the bootloader into a file:
dd if=/dev/sda8 of=grub.bin bs=512 count=1
Then saving grub.bin
onto c:\grub.bin
then add something like this to your c:\boot.ini
:
c:\grub.bin="Linux (GRUB)"
If you don't understand any of that, don't bother. Read the next section.
About installing grub to the master boot record
Grub is the better boot loader. Putting it in the master boot record lets you use it to start Windows, instead of the other way around.
Before you continue, check your grub configuration file after running update-grub
to make sure it "knows" about Windows:
cat /boot/grub/grub.cfg # used for grub2 users
cat /boot/grub/menu.lst # used for grub1 users
Whatever you're using, look for lines that indicate something about Windows, and your (hd0,0)
device. When you're satisfied, simply chroot like before and then:
grub-install /dev/sda # <- note this installs to the "master boot record"
When you reboot, Grub will start, and you can pick Windows. If you had entries to boot Linux/Grub in your boot.ini
file, you can delete them now.
The only downside to this method is that Microsoft Windows may delete grub as part of a system update, or general incompetence. Using the ubuntu disk and simply re-running update-grub
and grub-install
may be easier than dealing with grub.bin
Best Answer
Try 'ubuntu' with an empty password. If that doesn't work, you're probably best recopying the squashfs.
Note that squashfs is readonly, I assume you mean you copied the unionfs that lies on top of the squashfs and the tmpfs?