Forum

The time now is Tue Feb 09, 2010 7:01 pm

Become a registered member of the Mandriva community.It takes only 5 mns and it's free ... Learn more ...
Problem re-installing GRUB

 
Post new topic   Reply to topic    Mandriva Forum Index -> Security & System Administration
View previous topic :: View next topic  
Author Message
PostPosted: Sat May 09, 2009 8:00 am    Post subject: Problem re-installing GRUB Reply with quote

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
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Sat May 09, 2009 11:39 am    Post subject: Reply with quote

Boot a live CD and edit /boot/grub/menu.lst

Remove all the UUIDs and replace them with the actual dev name as in /dev/sda1, etc.

Then boot your mandriva DVD and reinstall grub.

Hopefully that will work and you didn't hose anything running fsck. error 17 basically means that grub can't find the partition you want it to boot.
_________________
the animal rescue site

Life is Simple-
Eat, Sleep, Adopt a Dog
Germ
Site Admin, Mandriva
Germ

Joined: 04 Jan 2002
Posts: 7930
Location: USA

Back to top
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat May 09, 2009 6:56 pm    Post subject: Problem reinstalling bootloader Reply with quote

Hi germ
I tried that with a Damn Small Linux live cd but i got the menu.lst full of dsl entries title & a single entry for my Windows bootloader

Well i went back to mandriva DVD & tried
this
Code:
rpm -q grub
:package grub is not installed


Code:
rpm -i grub-0.92-7.i386.rpm
:mkdir cannot createdirectory '/boot' :File Exists

Am i on right path? Sad
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Sat May 09, 2009 7:59 pm    Post subject: Reply with quote

Boot the DVD and choose Rescue, then reinstall grub from the menu.
_________________
the animal rescue site

Life is Simple-
Eat, Sleep, Adopt a Dog
Germ
Site Admin, Mandriva
Germ

Joined: 04 Jan 2002
Posts: 7930
Location: USA

Back to top
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat May 09, 2009 8:03 pm    Post subject: Reply with quote

if the rescue thing doesn't work and/or the editing of menu.lst is a problem, you can always fake an upgrade with the DVD, this will do nothing but, once the setup "realizes" there's no package to install, just reinstall the booloader. This always works.
Logos7

Logos7

Joined: 06 Mar 2009
Posts: 1592
Location: France

Back to top
View user's profile Send private message
PostPosted: Sat May 09, 2009 11:57 pm    Post subject: Reply with quote

"grub-0.92-7.i386.rpm" ?

What Mandriva are you going to boot with it?
_________________
I'll try

Smile
linux oid

Non Figura

Joined: 24 Jan 2008
Posts: 342

Back to top
View user's profile Send private message
PostPosted: Sun May 10, 2009 2:22 am    Post subject: Reply with quote

Yep. That is a tad on the old side.
teknokraft
BANNED
Non Figura

Joined: 14 Jun 2006
Posts: 18840
Location: hell'ngone USA

Back to top
View user's profile Send private message
PostPosted: Sun May 10, 2009 6:28 am    Post subject: Reply with quote

To @Germ
I tried using Rescue menu its output is there in my first post
Code:
Couldn't find your root device:-(


To @Logos7
How to do fake install
Do you mean Installing linux again

To @linux oid
I am using Mandriva2009

I also checked my /etc/fstab
Code:
/dev/ram3 / ext2 defaults 1 1
/dev/fd0 /mnt/floppy autodefaults noauto 0 0
none /proc proc defaults,noauto,ro 0 0
/dev/cdrom /mnt/cdrom auto defaults,noauto 0 0
[/quote]
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Sun May 10, 2009 9:25 am    Post subject: Reply with quote

saurabh nigam wrote:

To @Logos7
How to do fake install
Do you mean Installing linux again


yes, no big deal if you choose the upgrade option, it won't take more than 5 minutes, and you'll have a brand new bootloader...working.
Logos7

Logos7

Joined: 06 Mar 2009
Posts: 1592
Location: France

Back to top
View user's profile Send private message
PostPosted: Sun May 10, 2009 9:33 am    Post subject: Reply with quote

I dont see any upgrade option Logos7
How to do it
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Sun May 10, 2009 10:12 am    Post subject: Reply with quote

saurabh nigam wrote:
I dont see any upgrade option Logos7
How to do it


are you using the "One" CD or the "mdv free" DVD? may be the option doesn't exist with "One" (I've never used it)...if you run the DVD (free), your install should be detected and you got the upgrade option.
Logos7

Logos7

Joined: 06 Mar 2009
Posts: 1592
Location: France

Back to top
View user's profile Send private message
PostPosted: Sun May 10, 2009 10:57 am    Post subject: Reply with quote

I am using Mdandriva 2009.0 DVD

I also tried Super grub Disk
but got following errors
Error 15
/etc/fstab/ not found
/boot/grub/menu.lst not found
Sad
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Sun May 10, 2009 11:12 am    Post subject: Reply with quote

saurabh nigam wrote:
I am using Mdandriva 2009.0 DVD

I also tried Super grub Disk
but got following errors
Error 15
/etc/fstab/ not found
/boot/grub/menu.lst not found
Sad


too bad I can't check that, I got rid of my 2009.0 DVD and a couple of other now useless and outdated distro medias yesterday. So I don't know if the option to upgrade existed on the 2009.0 DVD, but I think it did. The 2009.1 does anyway. May be time for you to download it and do a real upgrade. The thing I'm afraid of is in your case the old 2009.0 install became corrupt for some reasons and won't be detected. Anyway it can't harm to move to 2009.1 now, it's a lot more stable, than 2009.0 was (KDE 4.1>>>>4.2)
Logos7

Logos7

Joined: 06 Mar 2009
Posts: 1592
Location: France

Back to top
View user's profile Send private message
PostPosted: Mon May 11, 2009 5:27 pm    Post subject: Reply with quote

Well everything seems to fail now
All efforts in vain
So i think I should reinstall my Mandriva
Can i get back my previous softwares & configurations ?
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Mon May 11, 2009 5:33 pm    Post subject: Reply with quote

saurabh nigam wrote:
Well everything seems to fail now
All efforts in vain
So i think I should reinstall my Mandriva
Can i get back my previous softwares & configurations ?


do yourself a favor, install 2009.1 now, not 2009.0. Ok just launch any live CD to make a back up of your home data, but just your own data, not the software configuration, and reformat a new /home partition. Well that's how I'd do it. You'll get issues if you keep the software config if you switch to 2009.1 now, and you could also get issues with 2009.0, even if that's less risky. If you decide to reinstall 2009.0, and keep all the data (own + software settings) make sure to login with he same account name (and same user ID, should be 500 anyway by default, but a 501 could be created automatically if your old account is detected) and the same password.
Logos7

Logos7

Joined: 06 Mar 2009
Posts: 1592
Location: France

Back to top
View user's profile Send private message
PostPosted: Tue May 12, 2009 12:35 am    Post subject: Reply with quote

I'm using Dual CD for installation and it has an option to upgrade. I'd assume DVD should have the option as well.

I have 2009.0 installed and it always ask me to upgrade.

Well, I've never upgraded.
Sombody alse may share an experience.
_________________
I'll try

Smile
linux oid

Non Figura

Joined: 24 Jan 2008
Posts: 342

Back to top
View user's profile Send private message
PostPosted: Fri May 15, 2009 4:48 am    Post subject: Reply with quote

Will re-installing Mandriva will set my root device for grub?
I was re-installing it & foundin the "PARTITION" menu
that there were 3 partitions namely
Code:
/usr
/home


I mean there was no root partition there
So I stopped re-installing Mandriva .
Pls help I dont want to lose my software configs.
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Fri May 15, 2009 9:27 am    Post subject: Reply with quote

I used mandriva rescue cd to show output of fdisk -l

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

Hey I got what the problem is with my machine
my sda6 drive is not labelled as '/' drive

I mounted my sda6 drive & ls it i got following output
Code:
ls mnt
Recycled lost+found

i mounted then my sda5
Code:
ls mnt
X11R6     boot/  games/    lib/    local/     sbin/      src/       bin/   etc/    include/  libexec/     lost+found     share/   

Any suggestions?
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
PostPosted: Fri May 15, 2009 10:12 pm    Post subject: Reply with quote

you are not the only one having trouble with mandriva+grub+ rare location of linux bootdrive.

It looks like even 2009.1 as some issues with partition management and boot manager configuration. see my call for support or my threads.

I actually can´t figure out on what drive mandirva thinks it is installed.
I installed it to sdj but now it looks like that / (root) is sitting on sdc5. ????
I am confused... and then there is an issue with the created mbr. it should be of a file system type 15 (extended) but it is set to 5 (this type is called extended,too) which increases my confusion to a level at which I not longer can recommend mandriva in my upcoming article linux4newbies. and this would be very sad.

This issues have to be investigated and analysed soon. Because nobody is interessted in a linux which removes the wrong partition and then get lost on a unknown partition.

The rescues mode is actuelly much to primitive to be a real help.
Bastian Angerstein_1

Non Figura

Joined: 13 May 2009
Posts: 13

Back to top
View user's profile Send private message
PostPosted: Sat May 16, 2009 4:23 am    Post subject: Reply with quote

Quote:
i mounted then my sda5
Code:
ls mnt
X11R6 boot/ games/ lib/ local/ sbin/ src/ bin/ etc/ include/ libexec/ lost+found share/

Any suggestions?


What's in boot?

What is the output of the following,

cat mnt/boot/grub/menu.lst

when sda5 is mounted as before?

Quote:
you are not the only one having trouble with mandriva+grub+ rare location of linux bootdrive.


and

Quote:
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


and

Quote:
I not longer can recommend mandriva in my upcoming article linux4newbies.


Well, if your audience is those who, also, do stupid things and expect a dumb machine to make it all better, I'd thank you not to bring any more of that ilk around here.

Quote:
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


When fdisk reports .. for number of Blocks, I'd be concerned the filesystem is not usable. You know how to mount and ls. Use cat, also, or a file browser in a live cd to see if you have anything left of value.

If all the .. Block numbers are mistaken reporting and the partitions are usable, well, Logos7 has a practical idea. Someone who knows how to use grub or will listen to such a person can install/recover grub from the grub shell. Uninformed assertions about crude tools from someone who lacks the knowledge to use them are not going to yield any results. Except more FUD.
rolfp
BANNED
Non Figura

Joined: 19 Dec 2001
Posts: 6644
Location: Oakland, California

Back to top
View user's profile Send private message
PostPosted: Sat May 16, 2009 6:06 am    Post subject: Reply with quote

tell me how to access a sata device with mandriva One live cd. Maybe you have not noticed that internal medias are by default made NOT accessable from a LiveCD. Because this would be a security issue.
So I have no access to the data from a live cd and no possibilities to rescue. (all info on my issue is found in case 107520 )

grude tools... pah... let me lol a round... linux comes with the sticker on it "this may damage your system!". (Even windows does.)

(grub cant count to 10 and mixes up two different types of extended filesystems) leads only to chickening around instead of helpful reply.

"do stupid things and expect a dumb machine to make it all better" ->ok your point, but newbies do such things, because of a lag of knowledge not stupidity. and what about user friendliness? Looks like many people in the community think userfriendliness is unprofessionel. (Mandriva is much more userfriendly then any other linux distri I installed. I even pushed my wife to use it, because i am sat of repairing her windows on a daily base.... but is this already enough? Nope.) I don´t think so. Sure i am a programmer and no nurse, but i don´t write on my guns "pointing me on your head *might* result in *interesting* experiences. (Don´t be a chicken, give it a try!)"

Normaly I use Debian, Gentoo and Win64. I startet over 10 years ago with suse 5.0. Sure, its a little bit more "heavy stuff", but this software does in my case simply works.

Its a fact that mandriva should rethink the "eaze of use" politics in a manner that errormessage like "Cant do it." are replaced with the original message reported by the tools or syslog. (And than can be enhanced by helpful information. Even MS learned it.) It cant be so hard to read from STDERR... Or they should do a much strikter "idiot proofed" testing of there software. Hell, I guess we two are not the only people on the planet installing mandriva not on hda1, are we?

If you take a look in my post (107520 9, you will notice, that in the partitioning and boot manager process has some issues. If we admit that, we can go on with troubleshooting. One of them is that after shrinking (resizing) (large?) partitions, any created new partitions can´t be formated by the mandriva toolset. The other thing is that there are errors in the process of creating the grub config file(, because hdds are not uniquely identified, the developer might have thought identifing them by their position in the array is a good idea, but device-indexing in todays x86 systemes behave much more like a hash. The position of a device is not guarenteed, even if I admit that the strcture *looks* stable most of the time->Uraniums and Plutoniom does the same... they look stable... most of the time... it would really be a great idea to look at what is in the bottle, before start drinking).

I am willing to improve the errors I run into and give every info I could figure out. -but I will not start hunting bugs in posix c sourcecode authored not by me in my sparetime.
Bastian Angerstein_1

Non Figura

Joined: 13 May 2009
Posts: 13

Back to top
View user's profile Send private message
PostPosted: Sat May 16, 2009 8:01 am    Post subject: Reply with quote

Quote:
tell me how to access a sata device with mandriva One live cd. Maybe you have not noticed that internal medias are by default made NOT accessable from a LiveCD. Because this would be a security issue.


Here's a sata disk accessed from 2009.1 ONE:

<- click for bigger. ST3500630AS Barracuda 7200.10 SATA 3.0Gb/s 500-GB Hard Drive

So, maybe you have problems. Start your own thread, don't hijack this one. Show some humility commensurate with what is clearly ignorance and, maybe, someone who knows something will help you. Otherwise, take your trolling FUD back to suse, Debian, Gentoo, Win64, wherever. Just take it away from here.
rolfp
BANNED
Non Figura

Joined: 19 Dec 2001
Posts: 6644
Location: Oakland, California

Back to top
View user's profile Send private message
PostPosted: Sat May 16, 2009 10:08 pm    Post subject: Reply with quote

Thats exactly the ghost of unprofessionalism that makes linux a toy not a tool. Thx for your bombastic add to the community.

PS: Take a look at your screenshot again... Laughing And FUD Yourself!
Bastian Angerstein_1

Non Figura

Joined: 13 May 2009
Posts: 13

Back to top
View user's profile Send private message
PostPosted: Tue Jun 30, 2009 11:24 am    Post subject: Reply with quote

well i m going to re-install mandriva coz i love it
is there any way that i can store my softwares installed on my current (crashed)mandriva & can reuse them on my newly installed mandy
coz i dont wanna lose all my updated softwares
_________________
I can change the World ,
But the problem is I don't have the source code..
saurabh nigam

saurabh nigam

Joined: 13 Feb 2009
Posts: 24

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Mandriva Forum Index -> Security & System Administration All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group