LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-30-2004, 10:08 PM   #1
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Rep: Reputation: 0
grub wont install


Hi, I recently reinstalled windows on my windows partition again. Before I reinstalled, I had grub booting windows and debian. I have made a rescue floppy and when I boot from floppy, it gives me the grub prompt:

grub>

i type:

Code:
root (hd0,2)
it replies:
filesystem type is ext2fs
partition type 0x83

then I type:

Code:
setup(hd0)
to reinstall grub,
it replies:
checking if "/boot/grub/stage1" exists...no
checking if "/grub/stage1" exists...no
Error 15: file not found

I also try to boot using the command lines straight from my menu.1st file...when I type in the line that starts with kernel, it comes up with a "cannot mount partition" error.

Anyone have any clues? or you need more info?

Last edited by zajaco0; 08-30-2004 at 10:09 PM.
 
Old 08-31-2004, 12:15 AM   #2
BigBug
LQ Newbie
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 4

Rep: Reputation: 0
Does /dev/hda3 partition contain grub stage files? it must. Or maybe forgot to mount it? (eg /boot)
 
Old 08-31-2004, 02:13 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Sounds like you are not pointing to the /boot partition with the root command. That is why it is not finding the files. Post how your partitions are laid out.

You can also type in root (hd0 then hit tab to get it to list what you have to pick from. I have done that before too. It helps anyway.

Later


Last edited by dalek; 08-31-2004 at 02:20 AM.
 
Old 08-31-2004, 06:44 PM   #4
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Original Poster
Rep: Reputation: 0
Ok, I actually tried a few things and none of them worked.

I pressed tab when i got to root (hd0, and got

Partiton num: 0: filesystem type unknown, partition type 0xa0
Partiton num: 1: filesystem type unknown, partition type 0x7
Partiton num: 2: filesystem type is ext2fs, partition type 0x83
Partiton num: 3: filesystem type unknown, partition type 0x82
Partiton num: 4: filesystem type 0x83, partition type 0x83

/ is hda3 and /home is hda5

I downloaded a rescue cd also. I booted using the rescue cd, and got into a bash prompt. i mounted my / partition using:
# mount -t ext3 /dev/hda3 /rootdirectory

I get a few errors that I think are causing my problem.

EXT_FS warning (device hda3): ext3.clear.journal.err:filesystem error recorede from previous mount: IO failure
EXT_FS warning (device hda3): ext3.clear.journal.err: marking fs in need of filesystem check
EXT_FS warning (device hda3): mounting fs with errors, running e2fstk is recommended

the drive mounted, and I could paruse around my directories all I wanted.
I typed:
# e2fstk -p /dev/hda3
and got:
the Filesystem size according to superblock is 2558351 blocks. The physical size is 2112547.
Either superblock or partition table is likely to be corrupt!
/dev/hda3: unexpected Inconsistency run fsck manually

so I ran fsck /dev/hda3 and got the same error

Am I receiving the errors because I am booting off of the recovery CD? or do i have some real problems?

BTW, I checked partititon table and it wasn't corrupt, i could still display it using fdisk -l
 
Old 09-01-2004, 02:18 AM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
It sounds like the partition size was changed after it was formatted. There is a command to fix that, I used it once, but I can not remember what it is. Got to love locate.

I think you have to do this from the CD. I also seem to recall the partitiion can not be mounted when you do this. The command is resize2fs for ext2 and ext3 file systems. It is resize_reiserfs for reiserfs file systems. You can type man for details regarding your specific issue. I think it is command /dev/hd<your drive and partition info here> though. Pretty straight forward.

It sounds like you don't have a seperate /boot partition, which is OK, nothing wrong with that, and that you are typing in the right commands to install grub. So I hope that works.

Post back if you need to. I'm hoping this works though.

Later

 
Old 09-03-2004, 11:17 AM   #6
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Original Poster
Rep: Reputation: 0
resize2fs /dev/hda3 gives:

please run e2fstk -f /dev/hda3

which is run error checking again. It prompts again and says my partion or superblocked is messed up, then it asks if i want to abort...should I abort and try something else?? or just continue? I dont want to corrupt my data.


~zach
 
Old 09-03-2004, 01:19 PM   #7
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
There is, as far as I know, nothing else to try. If you have partition errors-- which you seem to-- and you try to resize a partition without correcting them, you are very likely to corrupt your data.

Run e2fstk -f /dev/hda3 as requested and see what happens. The command will hopefully be able to fix the partition without hurting your data.
 
  


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 error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Help! computer crashed and grub wont go away frostbute669 Linux - Software 1 09-02-2005 10:46 PM
2 probs, apt-get wont download anything. blackbox wont install minibootsy Linux - Software 2 06-10-2004 01:55 AM
grub wont boot XP Dark Elf Linux - Software 2 06-08-2004 03:49 PM
new install wont boot, hangs at grub cphase Slackware - Installation 12 02-06-2004 10:31 PM


All times are GMT -5. The time now is 11:28 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration