LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-16-2008, 06:09 PM   #1
DjPan
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
Question Cannot load Mandriva, grub problem


Hello, i was messing around with the partitions yesterday and i create a mess..

I've Vista and Mandriva 2008.0, and i have moved-resized some partitions and now i cannot boot into mandriva. i managed to restore the gfx grub menu, but it must be a problem with the Linux starting settigs..
if i edit some settings in the grub(i changed sda4->sda5 and so on) at the beggining by pressing F2, i can boot until one point, and im in the console, instead of starting normaly the Mandriva.

with the fdisk -l i get this:

/dev/sda1 NTFS ( Vista)
/dev/sda2 Extended
/dev/sda3 Hidden HPFS/NTFS (this might be the recovery partition 4 vista)
/dev/sda4 Linux/swap
/dev/sda5 Linux (Mandriva)this means (hd0,4) right?
/dev/sda6 Linux/swap

i tried to upgrade them using Mandriva dvd but it said that sda6 has some kind of problem and the upgrade couldnt start.


i tried to reinstall bootloader but i get this error:

http://img386.imageshack.us/img386/9...rob5op5.th.jpg



i dont get it, why grub is making root (hd0,6)..the correct path is root (hd0,4)

Any ideas wat i can do?



Thx
 
Old 06-16-2008, 06:21 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268

Rep: Reputation: 83
Could you post your grub file - /boot/grub/menu.lst

----------------------
Steve Stites
 
Old 06-16-2008, 06:35 PM   #3
DjPan
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
Could you post your grub file - /boot/grub/menu.lst

----------------------
Steve Stites
thx 4 the fast response..
heres the menu.lst

Code:
http://img386.imageshack.us/img386/2139/mandprob6eb5.jpg
i changed manually the gfxmenu to (hd0,4) and also the following (hd0,4)'s under title Linux..
also to be able to boot until 1 point to Mandriva, i changed the sda7 and sda4 to sda5

Last edited by DjPan; 06-16-2008 at 06:42 PM.
 
Old 06-16-2008, 07:13 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268

Rep: Reputation: 83
I think that you have your partition names scrambled in menu.lst. Here is the proper correspondence between the Linux partition names and the grub partition names:

Code:
/dev/sda1           (hd0,0)
/dev/sda2           (hd0,1)
/dev/sda3           (hd0,2)
/dev/sda4           (hd0,3)
/dev/sda5           (hd0,4)
/dev/sda6           (hd0,5)
You do not have a /dev/sda7. You do not have (hd0,6). You do not have hd1.

Quote:

i tried to upgrade them using Mandriva dvd but it said that sda6 has some kind of problem and the upgrade couldnt start.
I think that your discriptions of what each partition contains is incorrect. You do not have a /dev/sda7 and you do not have (hd0,6). So in your menu.lst the Linux, linux-nonfb, and failsafe title sections all have pointers to a non-existant partition.

Your windows1 title section point to an extended partition which is not bootable.

Your windows2 title section points to a non-existant hard drive.

So you need to get your menu.lst cleaned up and then try to boot again.

------------------
Steve Stites
 
Old 06-16-2008, 07:20 PM   #5
DjPan
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
I think that you have your partition names scrambled in menu.lst. Here is the proper correspondence between the Linux partition names and the grub partition names:

Code:
/dev/sda1           (hd0,0)
/dev/sda2           (hd0,1)
/dev/sda3           (hd0,2)
/dev/sda4           (hd0,3)
/dev/sda5           (hd0,4)
/dev/sda6           (hd0,5)
You do not have a /dev/sda7. You do not have (hd0,6). You do not have hd1.



I think that your discriptions of what each partition contains is incorrect. You do not have a /dev/sda7 and you do not have (hd0,6). So in your menu.lst the Linux, linux-nonfb, and failsafe title sections all have pointers to a non-existant partition.

Your windows1 title section point to an extended partition which is not bootable.

Your windows2 title section points to a non-existant hard drive.

So you need to get your menu.lst cleaned up and then try to boot again.

------------------
Steve Stites
yes, ur right, i used to have sda7..but i do have hd1 and its only for data, i dont have any OS on that disk..so i will delete extra titles from menu.lst

but i have a problem, i cannot edit the menu.lst, neither with the bootable DVD by entering to console mode, and nor with semi-booting mode that puts me in console.. the menu.lst file is read-only and i cant save it
 
Old 06-16-2008, 11:05 PM   #6
DjPan
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Talking

hey guys i cheated grub !!

With the Mandriva DVD i create a partition 2GB, i installed there Mandriva with only the needed files.
Then i boot 2 new mandriva and add to bootloader the sda5 (my old linux)
And it worked !! now i can boot to my old linux !
But the thing that didnt work is that, i tried to setup the grub again, using my old linux, and it cant overwrite the new grub..

any solution for this?

anw im pleased that i found a way to boot 2 my old Mandriva
 
  


Reply

Tags
grub


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
grub failed to load linux (grub think ext3 partition as fat) khairilthegreat Linux - Newbie 7 08-09-2007 12:12 PM
Mandriva 2005 - e1000 high load problem? khoosys Linux - Networking 1 03-10-2006 01:39 PM
Mandriva 2005 - e1000 high load problem? khoosys Linux - Hardware 0 03-10-2006 05:44 AM
Problem with GNU Grub, trying to load windows ProxyKing Linux - Games 4 06-10-2005 03:14 PM


All times are GMT -5. The time now is 04:22 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration