LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2006, 12:19 PM   #16
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15

this is what happen.

first try
Quote:
root (fd0)
Filesystem type is ext2fs, using the whole disk

setup (fd0)
Checking if "/boot/grub/stage1" exist... yes
Checking if "/boot/grub/stage2" exist... yes
Checking if "/boot/grub/e2fs_stage1_5" exist... no
Running "install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/grub.conf "...failed

Error 29: Disk write error.
2nd try.

Quote:

i use cp in rescue mode to copy the missing file

cp /boot/grub/e2fs_stage1_5 /media/floppy/boot/grub/e2fs_stage1_5

in grub command promt

root (fd0)
Filesystem type is ext2fs, using the whole disk

setup (fd0)
Checking if "/boot/grub/stage1" exist... yes
Checking if "/boot/grub/stage2" exist... yes
Checking if "/boot/grub/e2fs_stage1_5" exist... yes
Running "embed /boot/grub/e2fs_stage1_5 (fd0)"...failed (this is not fatal
Running "embed /boot/grub/e2fs_stage1_5 (fd0)"...failed (this is not fatal
Running "install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/grub.conf "...failed

Error 29: Disk write error.
EDIT: im a fedora core 4 user.

Last edited by an2ny_18; 03-09-2006 at 12:28 PM.
 
Old 03-09-2006, 12:36 PM   #17
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Strange. What size floppy disk are you using? (Almost all are 1.44 Mb, but older ones could be smaller.) This is unlikely to be the problem, since my boot floppies use less than half of the floppy capacity.

The "disk write error" is, most probably, from the write to the disk boot sector, so perhaps something (i.e., your BIOS settings) is interfering with writes to boot sectors. Many computer viruses re-write boot sector information, so BIOS settings are often used to disable such activity. (My BIOS is set to require a confirmation before any boot sector write is done. This slows down partition changes, but does block some viruses.)
 
Old 03-09-2006, 01:03 PM   #18
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Strange. What size floppy disk are you using? (Almost all are 1.44 Mb, but older ones could be smaller.) This is unlikely to be the problem, since my boot floppies use less than half of the floppy capacity.
yah i know. btw sir im using 1.44 mb floppy. i dont know what happen!. pls give a last chance. when i try to boot my floppy it says GRUB 2 loading............

and back to grub command promt. sorry to disturb you guys i need my files inside the hard drive and this is my server. thank you for your help PTrenholme but i need more help about this.
 
Old 03-09-2006, 01:14 PM   #19
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Which is the same symptom as you had from your HD. So, perhaps there's something wrong with the /boot/grub/grub.conf file. You now have a copy of it on your floppy, so you can look at it and edit it on your other system.

Can you post the /boot/grub/grub.conf file?

Also, you could try recreating the initrd file in /boot. (mkinitrd as root after chroot in rescue mode.)
 
Old 03-09-2006, 01:29 PM   #20
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
i finally write the files into the floppy

root (fd0)
setup (fd0)

Running "install /boot/grub/stage1 (fd0) /boot/grub/stage2 p /boot/grub/grub.conf "...Success

the same problem, i need to start the menu not the grub command promt.

bout grub.conf

/boot/grub/grub.conf
sh; /boot/grub/grub.conf : no such file or directory

EDIT: sir just wanna buy some cigar. btw its 3:50am here in phil.

Last edited by an2ny_18; 03-09-2006 at 01:39 PM.
 
Old 03-09-2006, 01:43 PM   #21
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
A further thought: The problem may be in the kernel= line. You should check that the file exists and contains the correct information.

Fedora just released kernel 2.6.15-1.1833_FC4. Perhaps you should (again, as root from linux rescue after chroot) do a yum upgrade kernel* and see if a kernel upgrade shows up. That would write a fresh vmlinuz in /boot.
 
Old 03-09-2006, 01:51 PM   #22
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
sir about the yum upgrade command my output is:

yum upgrad kernel*
Error: cannot find a valid baseurl for repo: updates-released

what can i do?

EDIT: sir i remember when grub load the menu i press "c" or "a" i dont know and after that grub show me the command promt with a command i dont remember. i think it is kernel and i remove the command and enter another command.

Last edited by an2ny_18; 03-09-2006 at 01:54 PM.
 
Old 03-09-2006, 01:52 PM   #23
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by an2ny_18
[snip]
bout grub.conf

/boot/grub/grub.conf
sh; /boot/grub/grub.conf : no such file or directory[/snip]
Is that from the floppy in your other system, or from the Fedora system after the chroot? If it's the latter, I think you've found the problem. Without the /boot/grub/grub.conf file, GRUB can't do anything except start its command line.

You should have something like this in /boot/grub/grub.conf:
Code:
default=0
timeout=5
splashimage=(hd1,1)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.15-1.1833_FC4smp)
        root (hd1,1)
        kernel /vmlinuz-2.6.15-1.1833_FC4smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.15-1.1833_FC4smp.img
title Old Fedora Core 4 (2.6.15-1.1831)
        root (hd1,1)
        kernel /vmlinuz-2.6.15-1.1831_FC4smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.15-1.1831_FC4smp.img
title New Fedora Core 4 (2.6.15-1.1831)
        root (hd3,1)
        kernel /vmlinuz-2.6.15-1.1831_FC4smp ro root=/dev/FC4_00/LogVol00 rhgb quiet
        initrd /testinit.img
Edit: Sorry about the time difference, but that's not really somthing I want to change right now. Every time I stop the workd turning, I get all kinds of complaints, so I don't do it any more.

Edit2: I just remembered you displayed you /boot directory in post #9, above. It looks quite different from mine. What you should have in /boot is something like this:
Code:
$ sudo ls /boot
Password:
config-2.6.11-1.1369_FC4         memtest86+-1.55.1
config-2.6.15-1.1830_FC4         System.map-2.6.11-1.1369_FC4
config-2.6.15-1.1831_FC4         System.map-2.6.15-1.1830_FC4
config-2.6.15-1.1831_FC4smp      System.map-2.6.15-1.1831_FC4
config-2.6.15-1.1833_FC4smp      System.map-2.6.15-1.1831_FC4smp
grub                             System.map-2.6.15-1.1833_FC4smp
initrd-2.6.11-1.1369_FC4.img     vmlinuz-2.6.11-1.1369_FC4
initrd-2.6.15-1.1830_FC4.img     vmlinuz-2.6.15-1.1830_FC4
initrd-2.6.15-1.1831_FC4.img     vmlinuz-2.6.15-1.1831_FC4
initrd-2.6.15-1.1831_FC4smp.img  vmlinuz-2.6.15-1.1831_FC4smp
initrd-2.6.15-1.1833_FC4smp.img  vmlinuz-2.6.15-1.1833_FC4smp
lost+found
Edit3: And what is in that /boot/boot directory? Is it possible that the "real" boot directory has somehow been moved to a subdirectory of /boot??? By whom? When? If this is a server, perhaps you've had a break-in.

Last edited by PTrenholme; 03-09-2006 at 02:10 PM.
 
Old 03-09-2006, 01:58 PM   #24
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
sir about that problem what i suppose to do? i need to re install a fresh copy of my fedora? and how can i get my files in my hard drive? i have 1 hard drive here can install a new fedora and put in the slave my defective grub hard drive and i can transfer my files?

thanks for your full support sir.

EDIT: i give up............... sir can you please tell how to recover my old files?

EDIT2: sir im here in my new fedora core 4, can i use the grub here to load my old fedora installation?

the grub settings here is:

Quote:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img

Last edited by an2ny_18; 03-09-2006 at 02:22 PM.
 
Old 03-09-2006, 02:22 PM   #25
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, if my edit3 above is correct, all you need to do (after the chroot) is
Code:
# rm -R /boot/grub #to clean out the grub directory that's been created trying to recover.
# cp -R /boot/boot/* /boot
Verify that /boot and /boot/grub look correct, and then just reboot.

Of course, if you've had a break-in, you'll need to do a lot more to verify that you system is secure.

Edit: I'm assuming here that someone unknown did a mv /boot /boot to move the /boot directory down one level. Trying to reverse this by a mv /boot/boot /boot (Not sure of the syntax. Perhaps mv /boot/boot / is correct) might cause conflicts with existing files.

Last edited by PTrenholme; 03-09-2006 at 02:32 PM.
 
Old 03-09-2006, 02:26 PM   #26
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Edit3: And what is in that /boot/boot directory? Is it possible that the "real" boot directory has somehow been moved to a subdirectory of /boot??? By whom? When? If this is a server, perhaps you've had a break-in.
yes sir i have a /boot/grub /grub/ /boot/boot/grub

after that sir what i suppose to do?

EDIT:
Quote:
dit: I'm assuming here that someone unknown did a mv /boot /boot to move the /boot directory down one level. Trying to reverse this by a mv /boot/boot /boot (Not sure of the syntax. Perhaps mv /boot/boot / is correct) might cause conflicts with existing files.
omg.... how can fix it?

Edit: ]
Quote:
mv /boot/boot /boot
mv: '/boot/boot' and '/boot/boot/' are the same file

mv /boot/boot /
mv: cannot overwrite directory '/boot'
sir, can you please tell me how to backup my old files? or use my new fedora core 4 installation grub? my old hard disk is now in /dev/hdb1 thank you. i need to run this server. my ym gm_yufa

Last edited by an2ny_18; 03-09-2006 at 02:51 PM.
 
Old 03-09-2006, 02:57 PM   #27
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, the procedure I suggested in my "Edit3" should "fix" it.

Also, perhaps better, you could copy everything from /boot/boot to /boot on the floppy, and then boot from the floppy again. That would tell you if my conjecture was close to correct without you needing to change anything on your HD.
 
Old 03-09-2006, 03:41 PM   #28
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by an2ny_18
[snip]
sir, can you please tell me how to backup my old files? or use my new fedora core 4 installation grub? my old hard disk is now in /dev/hdb1 thank you. i need to run this server. my ym gm_yufa
Well, if you've moved the HD to /dev/hdb and made a fresh FC4 install, you may have created another problem for yourself. But only if you've been accepting the Fedora default installation settings. That is, by default Fedora sets up a "logical volume" during installation to contain the root file system (/) and the swap file system. This logical volume is, again, by default, labeled "VolGrp00."

In fact, looking at you post, above, you're using "VolGrp00," so you've accepted the defaults.

The problem is this: Your old root file system is also in a "VolGrp00," and LVM can only "see" one logical volume at a time, and so your data in /dev/hdb will be invisible to your new installation until you change the volume group name on your old disk. You'll need to look at the lvm documentation to see how it's done, but the steps are fairly straightforward:

1) Deactivate the physical volume (pvchange)
2) Rename the logical volume (lvrename)
3) Activate the newly named volume (lvchange -ay)
4) Create a mount point (mkdir /mnt/old_root for example)
5) Mount the logical volume (mount /dev/mapper/<new name>-LogVol00 /mnt/old_root)

And you should be "home free."

You might be better off just building the boot floppy as I suggested above, and changing the "root" from (hd0,0) to (hd1,0) to see if you can boot from your old disk.

Edit:

WARNING: Be very careful that you never run fsck on a device contaning logical volumes. Doing so can destroy the data. (If you need to check a logical volume, do it through /dev/mapper, not the raw /dev. Of course, dev/mapper can also only see the "first" LV if they have the same LV name.

Last edited by PTrenholme; 03-09-2006 at 03:51 PM.
 
Old 03-09-2006, 04:08 PM   #29
an2ny_18
Member
 
Registered: Mar 2006
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 43

Original Poster
Rep: Reputation: 15
sir about my old hardrive, i try also copy all the files in /boot/gub/ from my new installation to my floppy drive and remove the new hardive., but i have a error when i try to boot from floppy drive.


root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
Kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb qiet

Error 15: File not found.

and i also test to add in menu.lst and grub.conf ex. Fedora core(new), fedora core 2(old), thats what i enter in thier name. after that i copy also all the txt from new installation and paste under fedora core 2 (old). and after that i reboot my system and try to boot the number 2. i got the same error.

root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
Kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb qiet

Error 15: File not found.

i think my error is my kernel. how can i know the list of fedora kernel?
sorry sir im o noob about this.
thank you

Last edited by an2ny_18; 03-09-2006 at 04:41 PM.
 
Old 03-09-2006, 04:35 PM   #30
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by an2ny_18
sir about my old hardrive, i try also copy all the files in /boot/gub/ from my new installation, but i have a error when i try to boot from floppy drive

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
Kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb qiet

Error 15: File not found.

i think my error is my kernel. how can i know the list of fedora kernel?
sorry sir im o noob about this.
thank you
Well the root (hd0,0) line is telling GRUB to look in /dev/hda Try changing it to root (hd1,0) so it points to /dev/hdb

You can use GRUB's built-in editor to make a temporary change in the line. Just enter "e", find the line, enter "e" again, change the first 0 to a 1, hit <enter>, and then enter "b" to boot using the changed values.

Last edited by PTrenholme; 03-09-2006 at 04:36 PM.
 
  


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
what is Grub loading error 21, and how can I fix the problem! logiplex Linux - Software 26 06-30-2009 03:20 PM
Please help me fix GRUB - error13 nyheat Linux - Newbie 8 08-31-2005 05:45 PM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 09:02 AM
How to fix GRUB after reformatting Windows? X-Crawler Linux - General 1 05-29-2004 10:18 AM
grub or windows error and how to fix netquest1 General 2 04-30-2004 02:27 AM


All times are GMT -5. The time now is 05:09 AM.

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