LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-19-2004, 06:58 AM   #1
zhgjerry
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
Help:(linux can mount the fat32 correctly,but dos can't recognize the partition.)


I have some question about fat32 to ask,
There're two harddisks in my computer,I have installed three operate systems.the first disk is win98 in drive c,winxp in

drive d.they are all fat32 filesystem.the second drive is linux (ext3).one time the boot record about Grub is lost,so i use

the following command to rescue it.(i can't remember very clearly!)

install (hd1,0)/boot/grub/stabel1 (hd0) p (hd1,0)/boot/grub/menu.1st

after i reboot the computer,the system stoped at the "grub" displaying in the screen.It can't boot linux.
Then i boot computer to DOS,the command "dir c:" tell me the drive c is invailde,
fdisk only know the size of drive c,but display the system of drive c unkown.
then i try the
root(hd1,0)
setup(hd0)
then the grub can boot up,i can mount the win98 partition successfully.All the files in the partition are correct.
I have use diskedit,nu8,pq6 for dos,but they all can't access the drive c,PQ can only tell me the drive C is fat32 and the

size of it.
I check the MBR,I think it may be correct.May be the problem is in the first sector of drive C.

Can anyone help me?thx!
(My English is not very good,please don't laught at me )
 
Old 03-20-2004, 08:57 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
actually i dont know grub commands. if my mbr craches (it happens when i setup windows again), i boot from redhat cdrom with "linux rescue" option. i create /mnt/lnx directory then mount my / patition on my disk in /mnt/lnx patition then change root (/) to this directory.. (chroot /mnt/lnx) finally i give this command "grub-install /dev/hda".. grub installs itself to MBR. i tried this most of time, it always worked with no problem..

the commands u typed to install grub, migth be wrong. it migth write itself to first record of fat32.. if u still reach the fat32 from linux, first backup your data then try to install grub as i do..

i hope it works.
PS: im not good enough english either.
 
Old 03-21-2004, 03:29 AM   #3
zhgjerry
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your help!

I have checked the boot sector of driver C.And I find the message of Grub in it.And can't find the "NTLDR",I think it has been destroyed.I don't want to reinstall the windows,I only think out a fool idea.I try to copy the "NTLDR" boot sector of others whose partition is near to me to rescue my disk.I hope it can work.

Do you have some better idea?Thx!
 
Old 03-21-2004, 03:45 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
cool. make sure fat32 is marked as active. dont forget to check other files.. ntdetect.com boot.ini etc..

i hope it will work.
 
Old 03-21-2004, 11:37 PM   #5
zhgjerry
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
A good news!

I have readed the specification of the FAT32 from Microsoft.I find there is a backup of boot sector in the harddisk.I saved it to file and read it.I find that it's too old to use,it is just to boot win98.However i recover the boot sector with it.And now i am posting in the win98 .

the rest thing is how to rescue the winxp,how can i put NTLDR into the boot sector?

I really don't want to "rescue install" winxp,because it will kill grub again,and it's hard for me to find the cd of winxp!Is there a easy way to recover the winxp?Or can I rescue it through a 3.5" disk.

Thx!
 
Old 03-22-2004, 11:52 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
im glad to hear that

sorry i dont know how to do that. (NTLDR).. u may try to copy these files (if u have them) to c:\ ..i hope it will work.
"ntldr, ntdetect.com, boot.ini"
maybe the following files r needed too, im not sure
"bootsec.dos, bootfont.bin"

dont worry about MBR record if u have redhat CDs. u may install grub to MBR easyly as i told b4. it takes 2 minutes.
 
Old 03-26-2004, 10:40 AM   #7
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
http://www.tldp.org/HOWTO/Linux+NT-Loader.html#toc1

read it please.
 
Old 03-27-2004, 07:55 AM   #8
zhgjerry
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you very much!

I've rescued all my OS.

The winxp i repair it as follows:

I use DISKEDIT opening the first harddisk.
and i search "NTLDR is missing",thourgh more than 2000 sectors it found a matched sectors.I copy it to a file.Then i open it in win98 thourgh "UltraEdit"
I find Its structure is very like a boot sector.But its BPB(BIOS Parimatar Block) is a little different from my backup boot sector.So i modify the BPB to match the backup boot sector.Then i load the file,and covered my boot sector.Then it can works

very thanks to your help!

I'm sorry to tell you that the HTML pages can't open in my computer.
maybe it's the problem of the serve.
I am a chinese boy.
can i make a friend with you?
 
Old 03-28-2004, 12:53 AM   #9
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
im glad to hear that!
im a turkish...
sure we r already friends!

why cant u open html in your browser? doesnt your browser support HTML?
 
Old 03-28-2004, 09:24 AM   #10
zhgjerry
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0

If a browser can't read HTML,can it be call as a "browser"?

Maybe it was forbided to visit by my gateway in the school.We can't visit the pages outside one year before!
 
Old 03-29-2004, 05:29 AM   #11
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
ohh i got it.
is it foolish? why dont they allow u serach over net? at least they could prefer a proxy server. so they would allow u for clean sites.
 
Old 03-30-2004, 09:23 AM   #12
zhgjerry
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I only wanted to make a joke ,don't care for it!

Can u mail the web page to me?Thx!

jiguangpianyu5000(at)sina.com

can u leave a email to me?
 
  


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
Windows won't recognize fat32 partition mngmd Linux - Hardware 7 10-27-2005 08:54 AM
Linux doesn't recognize a fat32 partition soldeace Linux - General 5 12-04-2004 05:27 PM
HELP! I can't get Linux to recognize my FAT32 partition. booboo808 Linux - General 4 09-26-2004 01:40 PM
Help me:(linux can mount the fat32 correctly,but dos can't recognize the partition.) zhgjerry Arch 2 03-19-2004 07:41 AM
Formating a FAT32 partition, putting the partition correctly into FSTAB, and more. squall14716 Linux - General 14 10-27-2003 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:56 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
Open Source Consulting | Domain Registration