Error 15 : File not found
Hi,
I am using Fedora-8 and currently learning about grub. On booting my system,in grub shell I typed find /boot/grub/stage1 It flashes an error Error 15: File not found Then I simply boot my system and checked stage1 file.It was there. Why it was not showing in grub shell? |
Welcome to LQ!
That would be because that file is hidden from GRUB or you're not running that command as root..You can run Code:
grub> unhide (hd0) This could be because you maybe have Windoze on some other partition and not on the first one. |
Thanks alan_ri,
I am running this command as superuser I've tried your solution. While unhide (hd0),an error was falsing. Error 30: Invalid Argument My Windows is on first partition ie (hd0,0). How to solve this?:confused: |
Try
Code:
grub> unhide (hd0,0) |
alan_ri
while unhide (hd0,4) an error was shown Error 5: Partition table invalid or corrupt One magic happened: before running unhide, on fdisk -l all /dev/sda1 to /dev/sda5 was there, but after running unhide, fdisk -l only showing upto /dev/sda4,with and error Warning: invalid flag 0x0000 of partition table 5 will be corrected by w(rite) Then I did fdisk /dev/sda and press w(rite) , it again gave an error WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. What is this? I think, my system is full of errors and warnings.:scratch: |
Please reboot and post the output of
Code:
fdisk -l Code:
gedit /boot/grub/grub.conf |
alan_ri,
strange things are happening:confused: I rebooted my system and after linux kernel uncompressed, hell lot of errors were there. Code:
monut: Could not find the filesystem '/dev/mount I am posting this from windows_XP:o, how to fix the problem? |
You wrote a new partition table with fdisk and you messed up some things.That's why it's not good to use commands that you don't understand completly what they can do.
Do you have some program in Windoze to see your current hard disk state (partitions) and can you say how your disk was partitioned before this? On what partition was Fedora installed and did you maybe had a separate /boot partition? |
alan_ri,
I have no such software. I have one ext2-fsd which shows linux partition on windows.But now, it says unavailable location to linux and swap partition.But yes, seprate /boot partition is good. I can still see /boot in windows. How can I get back my linux. |
|
alan_ri,
Thank you man. Testdisk worked. :) My grub need not be reinstalled as only partition table was corrupted( only pointers were lost may be) , i think. One more question,while installing grub stage1 is installed in MBR, does this file do anything with 64 bytes of partition table?:confused: And yes, my previous query was still not solved., ie GRUB shell still not able to find /boot/grub/stage1.:confused: |
alan_ri,
Also I didnt understand working of Test-Disk. It was showing 4 partitions . I analysed with it and re-write partition table. Then there were 5. How ? |
Grub stage1 only points to Grub stage2.
Have you tried Code:
find /stage1 |
alan_ri,
Code:
grub> find /stage1 Code:
[root@localhost ~]# ls -ld /boot/grub/stage1 |
Please post the output of /boot/grub/grub.conf.
Also ls -l in /boot/grub directory and fdisk -l. |
Code:
[root@localhost ~]# cat /boot/grub/grub.conf . Code:
[root@localhost ~]# ls -l /boot/grub . Code:
[root@localhost ~]# fdisk -l |
Well I see some really strange things goin' on here.
Change this: Code:
title Fedora-base (2.6.23.1-42.fc8) Code:
title Fedora-base (2.6.23.1-42.fc8) |
alan_ri,
You could have led me in danger.I did as u said and while booting I got more errors. Code:
mount: could not find filesystem /dev/root One more thing, when I'm doing find /etc/passwd grub shell returns the (hd0,4) and for other files also.But for any file in /boot directory it is not able to find. |
Quote:
Quote:
Quote:
If you want you can try with /dev/sda5 in the code I posted before.It should work. Stage1 should be on the MBR. Run Code:
find /grub/stage1 Quote:
Code:
grub-install --root-directory=/boot /dev/hda Code:
cd /boot && ln -s . boot Code:
grub> root (hd0,1) |
hifun:
Another way at solving your boot prob is doing it "outside" grub: try reinstall grub in your linux /boot, then install grub also into the MBR. The first procedure is booting through your live cd. Chroot to the linux partition install grub package as you would install other software package. Then at the bash prompt: grub-install /dev/sda <you wouldn't need use (hd0,0) because you are dealing with bash not with grub prompt. The second part writes the usual boot image into the mbr; you don't need specify what stage, usually stage 1.5 is enough. (I have a disk containing more than ten partitions yet grub stage 1.5 has no problem loading the systems.) Please read grub tutorials available on web before using the procedure here, it is wise to get familiar with grub before using it. Good luck. Hope this helps. |
alan_ri,
Thanks again. find /grub/stage1 worked.As u said it depends...on what.? if you are saying root=/dev/sda5 is valid then what does root=LABEL=/ means? . malekmustaq, Thanks you too. I already know steps suggested by you.I've read some tutorials. Tell me one thing ,how can system loads w/o GRUB stage2, i mean system is booted through grub shell which came into existence at stage2. stage 1.5 can identify file-systems only and can find files by names anywhere in HDD (usually through LBA), main booting is done by stage2. |
Quote:
What I can tell you based on what I know and what they say > you should install Grub on the MBR always,do not create boot partitions,of course if you have other Linux distros there then they should go on their root partitions,logic. About root=LABEL=/ >> well,it looks like Fedora specific some kind of labeling things.This is what I've found. |
alan_ri,
Thank you, your last post helped me. Now I got the thing. I had 1 problem, but learned solutions to many.;) Thank You once again. |
All times are GMT -5. The time now is 05:58 PM. |