LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2016, 06:11 PM   #1
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Rep: Reputation: 16
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?
 
Old 03-05-2016, 07:06 PM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,298

Rep: Reputation: Disabled
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?
 
Old 03-05-2016, 07:29 PM   #3
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,214

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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.
 
Old 03-05-2016, 07:30 PM   #4
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,742

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by aus9 View Post
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub rescue problem. Mycroft9 Linux - Newbie 2 05-12-2013 01:26 PM
Grub Rescue Problem satheesh840 Linux - Newbie 1 10-23-2012 08:05 AM
Grub rescue problem tusharkumar Linux - Newbie 7 09-19-2012 01:42 AM
Problem with GRUB: partition not found. Grub Rescue?? genoboss Ubuntu 117 01-04-2011 08:56 PM
problem in booting..error: grub rescue> venki497 Linux - Newbie 9 11-08-2010 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration