PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 11:15:04 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Reinstalling grub (SOLVED)  (Read 1542 times)
agmcclard
Jr. Member
**
Offline Offline

Posts: 10



« on: March 10, 2011, 06:19:53 PM »

I did a stupid thing and now unable to boot Pclinuxos.  I installed another linux distro to try out after repartitioning my hdd to give it a little space.  The other distro's grub overwrote Pclinux's grub (which I knew it would) and now I cannot boot into my Pclinux.  I tried to pull up the menu.1st file on the other distro but even as root it showed nothing there but I know it is present cause I can see it when I go to /boot/grub I just cannot modify it.  I have a sata hdd and a fully updated PClinuxos that I do not want to lose.  If I can, I would like to remove the other distro but I need to get grub reinstalled to Pclinux parition before I can remove it.  I am running the Pclinux cd to post this.  I was hoping to be able to do this via the live cd.

The other distro uses grub legacy also and I know how to chainload but at this point could care less.  Pclinux has been the only OS on this laptop and will remain so after I get this solved.  Not worth losing my Pclinux and I know I should have backed up (my bad).  Any help would be appreciated.

Thanks,
Angela
Logged
T6
Super Villain
******
Offline Offline

Posts: 17000


i can rest now :D


« Reply #1 on: March 10, 2011, 06:24:54 PM »

i am not sure but in this case you should be able to load the livecd and form it search in the kmenu a tool called redo mbr that should be on more applications/configuration/redo mbr

if you have your normal mbr with the pclinux menu(the blue bull adn all that stuff from your original grub) i don't know what to do there
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #2 on: March 10, 2011, 06:28:24 PM »

Open a terminal and type in
grub

You get a grub prompt and then enter the following

find   /boot/grub/menu.lst


take note of the report you get.
Hopefully you will be able to determine from that which of the returned locations is the PCLOS one.

Then type the following

root   (hdx,y)    #  where the (hdx,y) is the PCLOS partition reported from the last command

setup  (hdx)      #  again where (hdx) is the boot drive


You should get back a report which ends with "Success"

Quit the Console.

Reboot and extract the live CD and hopefully you will boot into PCLOS.

regards.
Logged
agmcclard
Jr. Member
**
Offline Offline

Posts: 10



« Reply #3 on: March 10, 2011, 07:10:18 PM »

Just 19,

Thanks so much that worked like a charm and I learned something new.   Wink You are my Hero!  What was I thinking!!!

Angela
Logged
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #4 on: March 10, 2011, 07:58:34 PM »

Just 19,

Thanks so much that worked like a charm and I learned something new.   Wink You are my Hero!  What was I thinking!!!

Angela

You're welcome .......  glad it worked out for you.   Wink

Have fun!  Grin



regards.
Logged
davey
Hero Member
*****
Offline Offline

Posts: 889


« Reply #5 on: March 12, 2011, 06:09:10 PM »

Saved my butt, too. Thanks. I tried installing PCLOS enlightenment and everything went blooey. Now to try and figure out what happened. Got Error 22, whatever that is, when Grub tried to work. Anyway, all is well again, minus E17.
Logged
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #6 on: March 12, 2011, 07:08:58 PM »

In Konqueror location bar put

info:grub

Go to the Troubleshooting section that displays, and look at Stage 2 error codes to get an explanation of any Grub error you encounter.

Quote
22 : No such partition
      This error is returned if a partition is requested in the device
      part of a device- or full file name which isn't on the selected
      disk.



regards
Logged
Crow
Hero Member
*****
Online Online

Posts: 7269


OBJECTS IN MIRROR... ARE LOSING


« Reply #7 on: October 07, 2011, 02:27:15 PM »

Thank you Was_Just19 I messed my grub installing in another partition and didn't remember (from the last time  Embarrassed ) how to fix it.

The only thing: before using "find   /boot/grub/menu.lst" I had to use "su - root password"

Thank you again  Smiley
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
nkuruza
New Friend
*
Offline Offline

Posts: 5


« Reply #8 on: October 14, 2011, 04:26:05 AM »

Hi,
I have a similar problem as the owner of this post, I tried to follow you instructions but I get errors. the first one after executing 'grub' command is that when I type 'find /boot/grub/menu.lst' I get 'Error 15 : File not found'. And when I try to continue typing 'root (hd0,0)' I get 'Error 21:Selected disk does not exist'. And when I type 'setup (hd0)' I get 'Error 12: invalid device reequested' I am really confused right now I don't know what to do anymore.
Logged
Crow
Hero Member
*****
Online Online

Posts: 7269


OBJECTS IN MIRROR... ARE LOSING


« Reply #9 on: October 14, 2011, 06:30:08 AM »

That was happened to me, I used "su - root password"  before those instructions.

Good luck
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
johnmart
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 741


Make Love Not War


« Reply #10 on: October 14, 2011, 10:31:59 PM »

Hi nkuruza

If I read your post right you mispelled menu.lst

the .lst part is lowercase L not 1 (one)

Give that a try.

But, rereading your OP, i think an easier method would be;
From livecd,
menu>more applications>configuration>redo mbr

redo mbr should find your pclos install & give you options to boot it & the diostro that messed you up.
Hang in there.  Grin
Logged

Acer Aspire, Intel core2 2.20GHz, ‎Graphics nVidia ‎G98M [GeForce G 105M], 2gb ram, Wireless Intel Link 5100

Why, any 5 year old child could understand this.
Somebody bring me a 5 year old.
Groucho
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM