Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Mandriva Linux Help > Problem re-installing GRUB

Forgot Password?
 Mandriva Linux Help   For help and discussion about Mandriva (formally Mandrake) Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-14-2009   #1 (permalink)
Just Joined!
 
saurabh.nigam's Avatar
 
Join Date: Sep 2008
Location: Indiyah!
Posts: 10
Unhappy Problem re-installing GRUB

I ran
Code:
fsck
cause it was showing some probs in getting started
it asked
Code:
This may damage your filesystem y or n?
y
I answered yes
After that i couldn't use GRUB
Grub said
Code:
Grub loading stage 1.5.

Grub loading, please wait...
Error 17
So i used mandriva 09 dvd for rescue & had to restore Windows bootloader


Now when I used Mandriva DVD to rescue
I selected re-install Grub bootloader
it answered

Code:
Installing drivers.........SATA controller

Installing drivers.........IDE controller

Please wait finding your root device
running: vol_id /dev/loop0
running: vol_id /dev/sda
running: vol_id /dev/sda1
running: vol_id /dev/sda2
running: vol_id /dev/sda3
running: vol_id /dev/sda4
running: vol_id /dev/sda5
running: vol_id /dev/sda6
running: vol_id /dev/sda7
running: vol_id /dev/sda8

Couldn't find your root device:-(

Guessmounts failed at /usr/sbin/install_bootloader line 28

I also ran
Code:
fdisk -l
mkdir realroot
mount /dev/sda5 realroot
grub-install --root-directory=realroot /dev/sda
but it answered
Code:
/sbin/grub-install:line 595:expr:command not found
/sbin/grub-install:line 587:test:-gt:unary operator expected
/sbin/grub-install:line 597:test:-eq:unary operator expected
Please help
saurabh.nigam is offline  


Reply With Quote
Old 05-14-2009   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
Boot up from LiveCD of any distro and post the output of fdisk -l command here.
Quote:
So i used mandriva 09 dvd for rescue & had to restore Windows bootloader
Is Windows OS working fine?
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 05-15-2009   #3 (permalink)
Just Joined!
 
saurabh.nigam's Avatar
 
Join Date: Sep 2008
Location: Indiyah!
Posts: 10
Yes devils casper
my windows is working fine
I cant enter my mandriva
saurabh.nigam is offline   Reply With Quote
Old 05-15-2009   #4 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
Something is wrong with Mandriva's partitions only. Boot up from LiveCD and post the output of fdisk -l command here.
Code:
su -
fdisk -l
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 05-15-2009   #5 (permalink)
Just Joined!
 
saurabh.nigam's Avatar
 
Join Date: Sep 2008
Location: Indiyah!
Posts: 10
Unhappy

I used mandriva rescue cd

Code:
fdisk -l
Disk /dev/sda:80.0GB      80026361859bytes
255 heads ,63 sectors tracks,9729 cylinders
Units=cylinder of 16065*512=8225280bytes

Disk Identifier:0x00000001
Device               Boot       Start          End            Blocks         Id          System
/dev/sda1           *            1               1912       15358108+     7         HPFS/NTFS
/dev/sda2                         1913         5736               . .            7         HPFS/NTFS
/dev/sda3                         5737         7011                ..             7         HPFS/NTFS
/dev/sda4                         7012         9729                 ..           5         Linux
/dev/sda5                         7012        8286                   ..          83       Linux
/dev/sda6                         8287        9083                  ..           83       Linux
/dev/sda7                         9084        9243                  ..           82       Linux swap/Solaris
/dev/sda8                         9244        9729                    ..         83        Linux
I also used Super GRUB DISK but no results
saurabh.nigam is offline   Reply With Quote
Old 05-15-2009   #6 (permalink)
Linux Engineer
 
Join Date: Oct 2007
Location: Tucson AZ
Posts: 838
Your fdisk line for sda4 looks different than the normal. The Start (7012) and End (9729) numbers indicate it is an Extended partition containing sda5, 6, 7, 8. The ID (5) indicates a paratition "05 DOS 3.3+ Extended Partition" which "Supports at most 8.4 GB disks: with type 05 DOS/Windows will not use the extended BIOS call, even if it is available. See type 0f below. Using type 05 for extended partitions beyond 8 GB may lead to data corruption with MSDOS".

Usually the type partition for Extended is "0f" or "f". Don't know how this Extended partition was created or how to change it, but it seems like a good possibility as the source of the problem. Happy googling.
yancek is offline   Reply With Quote
Old 05-15-2009   #7 (permalink)
Just Joined!
 
saurabh.nigam's Avatar
 
Join Date: Sep 2008
Location: Indiyah!
Posts: 10
Well Yancek
you ought to check this link-lissot.net/partition/partition-05.html

I dont think there is anything wrong with sda4
Well I think problem is that my device sda6 is not labelled as '/' hence unable to be loaded by grub
Any kind of help are open
saurabh.nigam is offline   Reply With Quote
Old 05-15-2009   #8 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
I agree with yancek regarding Extended Partition. Lets verify it. Check if you can mount /dev/sda6 partition in LiveCD.
Code:
su -
mkdir sda6
mount -t ext3 /dev/sda6 sda6
ls sda6
Post error message here, if any.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 05-15-2009   #9 (permalink)
Just Joined!
 
saurabh.nigam's Avatar
 
Join Date: Sep 2008
Location: Indiyah!
Posts: 10
Devils casper i mounted sda6 successfully
Code:
mkdir sda6
mount -t ext2 /dev/sda6 sda6
ls sda6
Code:
ls sda6
  Recycled              lost+found
then i reused Super GRUB Disk
it showed
Code:
findf /boot/grub/menu.lst       grub/menu.lst     /boot/grub/grub.conf
Error 15:File Not Found
saurabh.nigam is offline   Reply With Quote
Old 05-15-2009   #10 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
/dev/sda6 partition is empty. Mount all Linux partitions and check which partition has Linux OS files. Post the contents of /etc/fstab file here.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 07:29 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2