LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub rescue problem (https://www.linuxquestions.org/questions/linux-newbie-8/grub-rescue-problem-4175574068/)

judoka 03-05-2016 05:11 PM

grub rescue problem
 
After my failed upgrade of Ubuntu 14.04 from 32 to 64 bit system. My boot no longer worked and when I reinstalled Ubuntu 14.04 64-bit by installing it on the free space available on the same hard drive, I rebooted and it booted into the broken 32-bit boot, which I couldn't use. So I loaded live CD and erased /boot folder from the /dev/sde3 partition that contained my 32-bit broken boot folder, since I figured that the old /boot interfered with the new installation and now the new boot folder that's in the new "formatted" partition /dev/sde4 would take over. But that didn't happen and I was faced with the terminal that said:
Code:

grub rescue>
I am faced with:
Code:

grub rescue>
and when I do:
Code:

grub rescue> ls
I see:
Code:

(hd0) (hd0,msdos6) ... (hd0,msdos1) (hd1) (hd1,msdos1) ... (hd4,msdos1)
I read another post here http://askubuntu.com/questions/49382...untu-partition and I tried for example:
Code:

ls (hd0,msdos6) /boot
but only got:
Code:

(hd0,msdos6): Filesystem is unknown.
I did this for all of the ones listed with the same result.

In the post KillBill says that he
Quote:

... fixed it by login in through a live USB and issuing 'update-grub' command
But I'm not sure how to do that since I have a lot of hard drives and the one that I reinstalled on '/dev/sde'. Would someone know how to go about it, and if so could you explain it in the detailed way how one would go about it?

aus9 03-05-2016 06:06 PM

Hi

grub2 counts hard drives from 0 so its 0,1,2 etc
but counts partitions from 1 so its 1,2,etc

Quote:

(hd0,msdos6) snip /dev/sde4
won't work

dev/sde4 is hd4,4 or hd4,msdos4.

The trouble is, you appear to have deleted the contents of /dev/sde4.

#################################################

so lets start from the beginning.

to go to 64 bit, you need more than 3G of RAM and a processor that can handle 64 bit instructions.

name your CPU please.

Leaping ahead....grub-rescue is not going to work if its booting files are now deleted.
Better off IMHO just doing a clean install.

but a clean install of 32 bit or 64 bit?

colorpurple21859 03-05-2016 06:29 PM

you would have to do something like this to get ubuntu to boot
Code:

set prefix=(hd0,6)/boot/grub/i386-pc
set root=(hd0,6)
insmod normal
normal
insmod linux
linux /vmlinuz root=/dev/sda6
initrd /initrd.img

notes;
Change accordingly to fit your needs. If things go really well you will get a grub menu after running the normal command. If things go bad will need a live cd to fix grub.

BW-userx 03-05-2016 06:30 PM

Quote:

Originally Posted by aus9 (Post 5510825)
Hi

grub2 counts hard drives from 0 so its 0,1,2 etc
but counts partitions from 1 so its 1,2,etc



won't work

dev/sde4 is hd4,4 or hd4,msdos4.

The trouble is, you appear to have deleted the contents of /dev/sde4.

#################################################

so lets start from the beginning.

to go to 64 bit, you need more than 3G of RAM and a processor that can handle 64 bit instructions.

name your CPU please.

Leaping ahead....grub-rescue is not going to work if its booting files are now deleted.
Better off IMHO just doing a clean install.

but a clean install of 32 bit or 64 bit?

OP has two more post that cover this same question. I suggest your look over these too. to get better updated to what is really going on...

http://www.linuxquestions.org/questi...ts-4175573951/


http://www.linuxquestions.org/questi...ve-4175574005/


All times are GMT -5. The time now is 05:30 PM.