Restoring my Linux/GRUB2

Soldato
Joined
17 Aug 2005
Posts
7,615
Location
Swindon
Ok so I had Win 7 installed on an SSD and Ubuntu and a different drive. I use to get the grub boot at startup to select what OS.
I bought a new SSD so installed a fresh version of Windows 7 and lost my loader.

I have tried a few different ways of trying to get it back but have been unsuccessful.

This is from bootloader
http://paste.ubuntu.com/1248069/

I tried booting to live cd
sudo gurb
find /boot/stage 1 etc..
root (hdx,x) no avail.

Have tried mounting the drive dev/sdd -- root-directory=/mnt

Didn't work either and think a few other methods but haven't been able to get it sorted.

Any ideas of what I can do?
Thank you!
 
I have no idea! I am a total Linux noob so it has all taken me ages! I thought I had it sorted yesterday it seemed to work, well I made it further than before and had no mnt errors, restarted back to grub>
 
sounds to me like you might want to do this from the livecd
mount /dev/sdd2 /mnt
grub-install --boot-directory=/mnt/boot /dev/sdb
your system seems to do what one of mine does, the drive that is seen as sda in linux (the first, usually plugged in to the first sata port) isnt the one its set to boot from in the bios.

[EDIT]this is assuming the original boot priority is restored from the start of the thread :)
 
Last edited:
Back
Top Bottom