Quote:
Now, when trying to boot into linux it tries and then stops with only a black screen - just cannot boot into linux but CAN still boot into Windows7,
|
Two possible things: Either your grub is pointing to a wrong partition; or it is pointing to a mismatched kernel. Are you using initrd? Which OS installed the grub? How was grub installed? How far does linux go each time you attempt to boot into it?
Quote:
Have tried knoppix but will not mount disk
|
This is a separate problem. What error it gives? how did you install knopix?
Quote:
The mbr is of course on the windows7 partition.
|
The MBR is not contained in a partition, it is generally at the beginning sector.
Quote:
Would like to know if there a safe way to restore the mbr in attempts to recover entry into linux partition.
|
First you create an MBR backup. But since you are not running a linux (is knopix still running? from where, partition or livecd?) you will need to run at least a linux from a liveCD. Try
Linux Mint LiveCD here and boot it up from CD/DVD drive. Once running you can back up your current MBR by this--
First mount a partition where you can write and keep the MBR backup file (this is very small file).
Example:
Quote:
sudo mount /dev/sda8 /mnt/tmp
|
Then backup the MBR--
Quote:
--# dd if=/dev/sda of=/mnt/tmp/myMBRbackup bs=512 count=1
|
Having done it, check your backup file by this command:
Quote:
--# file /mnt/tmp/myMBRbackup
|
It returns an enumeration of addresses in the first 512bytes in the first sectors.
======
In case you want to restore the backup into the MBR just issue this--
Quote:
--# dd if=/mnt/tmp/myMBRbackup of=/dev/sda
|
Reboot into the current situation. That's assuming you have not altered anything in the partition distribution of the entire hard disk.
Hope this helps Goodluck.