Question

Cannot access Linux partition

Asked by: seemasharma22

Hello Everyone,

I have got Windows XP home edition and Red Hat Fedora Core 2 installed on my laptop. My boot partition is Windows. Due to virus attack on windows partition I re-installed windows xp home edition (which I had to do it anyways). To be precise, I deleted the C:/ Windows (boot partition) partition but linux was still there. Then created the C partition and installed Windows XP here. Now when I boot my machine, I dont get the dual boot option, ie. Windows or Fedora. How do I access Linux partition now? I didnt do anything to Linux partition.

Thanks for any help,
Seema

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-09-23 at 15:06:58ID21143104
Tags

access

,

windows

,

linux

,

partition

Topic

Windows XP Operating System

Participating Experts
8
Points
500
Comments
24

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Partitioning in  LINUX?
    If I wish to partition my LINUX machine to accomodate both LINUX and WINNT 4.0, is is possible? If yes, pls advise on how to carry out the partitioning as I 've never done that before. Cuurently, my PC is only installed with LINUX Red Hat 6.0.
  2. Fedora core1 Linux partition
    how do i do the partition with fedora core linux with 6 GB memory and 70 GB HDD for web application servers ? Can somebody help me i am new to this area. Thx, Prabha

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Eagle6990Posted on 2004-09-23 at 15:16:06ID: 12138404

You will need to edit your boot.ini file that got deleted when you formatted.

http://support.microsoft.com/?kbid=289022

You'll probably want an entry similar to this depending on what partition and drive you installed it to:

multi(0)disk(0)rdisk(0)partition(2)="Fedora Core"

This can be dangerous to be careful and take backups before doing anything.

 

by: SheharyaarSaahilPosted on 2004-09-23 at 15:33:15ID: 12138484

Eagle6990 are u sure that Linux uses the same boot commands as Windows.... :)
check here how it has described to change the boot.ini file from Windows to add the entry for Linux system !!

Setting Up a Windows/Linux Dual Boot System
http://www.linuxforums.org/forum/viewtopic.php?t=3573

 

by: Eagle6990Posted on 2004-09-23 at 15:53:56ID: 12138573

It all depends on which bootloader you want to use. If you want to use LILO for Linux's bootloader, then you can configure it with that, or you can use the Windows boot loader to start Linux as well.  6 on one, half dozen on the other.

 

by: Eagle6990Posted on 2004-09-23 at 15:55:41ID: 12138579

Nevermind, I read more into your link and others and see what they are talking about.  Bah, Linux.

 

by: seemasharma22Posted on 2004-09-23 at 18:17:44ID: 12139354

I tried all the above options but nothing seems to work. I looked at boot.ini of other computer which has Windows XP home edition (as default boot) and Fedora Core 2 installed. It looks the same as on my computer.

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect

I couldnt find any information regarding Linux boot in this boot.ini . Where else can I look for the information? Thanks

 

by: Eagle6990Posted on 2004-09-23 at 18:21:36ID: 12139373

Is Fedora available from the XP selection menu or did it load the Linux boot loader like LILO or GRUB?  If a Linux bootloader loads rather than the XP one, then you might need to reinstall Fedora to restore that bootloader.

 

by: seemasharma22Posted on 2004-09-23 at 18:31:00ID: 12139417

XP is not giving that option. I have no option to select from. It selects Windows XP by default. It doesnt talk about Linux at all.

 

by: SheharyaarSaahilPosted on 2004-09-23 at 19:00:06ID: 12139593

seema, when u formatted ur C:(primary drive) it erased the boot records, so now it doesn't know that u have a Linux install also.... !! =\

Did u tried the adding boot command for linux in boot.ini file of windows, as descibed in my link,,,,,, and if its not working, then as eagle has already mentioned,,,,,, u will need to run the Setup for ur Linux again,,, i dont know if it can be repaired also like windows,,,,, but it needed to be reinstalled so that it can re-enter itself in the boot menu choices !!

 

by: SheharyaarSaahilPosted on 2004-09-23 at 19:03:29ID: 12139616

one thing more,,,,, why dont u goto linux area >> http://www.experts-exchange.com/Operating_Systems/Linux/
and ask their advise,,,,, we can work with XP, but Linux is difficult for us to handle,,,,, we have told out way of dealing this problem,,,,, now u shud take the advises of Linux experts also, so that u can make sure that what u are required to do in order to solve this issue !!

and u dont need to post another full points question, just post a 20 points pointer question, with a heading something like "500 Points Question, Lost Linux after Repairng XP",,,,,, and give the link to this question, they will come here and will try to help u :)

 

by: dReichelPosted on 2004-09-23 at 19:09:04ID: 12139637

Hello Seema,

Boot from your Fedora CD

Mount your linux filesystem  - assuming your linux root is the second partition on your HD
#mount /dev/hda2 /mnt

chroot to your mount point  ( so your working root dir becomes the root of the HD volume you just mounted )
#chroot /mnt

Run grub-install to re-write your MBR - for example if your notebook has a single IDE drive
#grub-install /dev/hda

Your dual boot setup probably never used the windoes boot.ini file.

Good Luck, Dennis

 

by: seemasharma22Posted on 2004-09-23 at 19:22:04ID: 12139695

Yes, I tried exactly what you wrote. My problem is, I cannot re-install linux as all my thesis work is stored there. I am trying my best to avoid reinstallation, therefore, looking for options. This is what I did:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(1)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect
multi(0)disk(0)rdisk(0)partition(2)="Fedora Core"

I tried following options and got the problems as below:
1:     multi(0)disk(0)rdisk(0)partition(2)="Fedora Core"
Problem:  Computer restarts.
2:     multi(0)disk(0)rdisk(0)partition(2)="Fedora Core" /fastdetect
Problem: Computer restarts.
3:     multi(0)disk(0)rdisk(0)partition(2)\LINUX="Fedora Core" /fastdetect
Problem: I got the following error message:
            Windows could not start because the following file is missing or corrupt
             <Windows root>\system32\hal.dll.
             Please reinstall a copy of the above file.

Now what do I do?
Thanks

 

by: Eagle6990Posted on 2004-09-23 at 19:27:34ID: 12139723

The method I suggested initially is flawed since I don't know much about Linux and though you could boot just from the partition but you cannot.  In SheharyaarSaahil's link, about halfway down is a section about "Using the Windows Bootloader"  If you follow those directions, you should be fine, but it does involve you needing to boot into Linux.  Did you create a boot floppy for your Linux install?

 

by: SheharyaarSaahilPosted on 2004-09-23 at 19:29:44ID: 12139734

seema u are doing it in a wrong way...... i dont think so that it has anything to do with Windows,,,, u have to configure Linux to get itno boot menu choice,,,,,the link i gave was also abt booting with Linux disk and getting a Linux.bin file which we can enter in Windows boot.ini file,,,,,, but im not sure how it actually works coz i have no idea\experience with linux, i have only heard of its name =\

I think dReichel is giving a good advise here,,,, or as i said, contact Linux area coz experts there will be known to Linux problems and can help u in this issue !!

 

by: jleviePosted on 2004-09-23 at 21:00:52ID: 12140050

If the Linux partitions survived your deletion of "the C:/ Windows (boot partition)" dReichel's solution should work, although he failed to mention that you need to boot into rescue mode.

What I'd suggest that you do at this point is to boot from the Fedora Core 2 Rescue CD and see if it can locate your Linux installation. If the partition table survived your re-install of windows it will find it and offer to mount it. Allow rescue to do so and when you get to a command prompt do:

chroot /mnt/sysimage
grub-install /dev/hda
exit
exit

If rescue doesn't offer to mount the Linux system execute an 'fdisk -l /dev/hda', write down what it shows and post it here.

 

by: docburnsPosted on 2004-09-23 at 22:34:55ID: 12140308

Do you know which boot loader you were using?  When you re-installed Windows, windows replaced the MBR with its own.  I know that if you were using LILO, you can boot from a bootdisk into Linux and then re-install LILO into the MBR.  

If you don't have a bootdisk, you can boot from the CD into rescue mode as described above and re-install LILO from the CD.  After doing this, you will be able to boot into Linux, but not Windows.  Next you will need to edit /etc/lilo.conf and add Windows XP.

The following settings should work, but could be different depending on how your partitions are setup.  At the end of /etc/lilo.conf add the following information
other = /dev/hda1
  label = winXP
  table = /dev/hda

After making any changes to /etc/lilo.conf, you need to run LILO by using /sbin/lilo

 

by: karlwilburPosted on 2004-09-24 at 08:53:35ID: 12144576

Seema,

Your easiest solution is to do as Dennis, dReichel, suggested above.  This will not re-install linux, it just overwrites the Windows bootloader, NTLDR,  with your Linux bootloader, GRUB.  This is what you want.

Boot the computer with the Fedora Core 2 Dick 1 and go into "rescue" mode.(You could also use any other bootable linux CD like KNOPPIX or Audios, etc.).

Mount your root linux partition:

create a directory to mount to such as:

# mkdir /mnt/localdisk

then mount it:

# mount /dev/hda? /mnt/localdisk

replace the "?" with the partition number of the linux root partition.

then run GRUB:

/mnt/localdisk/sbin/grub

from the grub command line run:
> root (hd0,?)

replace the "?" with the partition number of the linux _boot_ partition (this may be the same as the root partition, but most likely is not) (with grub the partition number will be one less than that above: hda2 = (hd0,1); and hda1 = (hd0,0)).

next run this from the grub command line:

> setup (hd0)

This command overwrites NTLDR with GRUB.

> quit
# cd /
# umount /nmt/localdisk
# reboot

I hope this helps.

 

by: SheharyaarSaahilPosted on 2004-09-24 at 08:57:22ID: 12144610

look seema, now we are getting super advises from these super Linux Experts !! :D
Cheers guys ^_^

 

by: EinarThPosted on 2004-09-24 at 09:23:44ID: 12144924

Now this is silly... Windows geeks giving Linux advice? ;)

I'm pretty sure you must have used grub as your bootloader before you re-installed... Lilo is mostly dead, and windows bootloader isn't particularly nice to linux.

So what you do is that you boot from any live linux cd (or a rescue cd, doesn't matter). I use knoppix for these occasions (go to www.knoppix.org, download the latest ISO burn it to cd and boot from it)

Then mount your linux root partition somewhere, say /mnt/linuxroot.

If you have a separate boot partition, then mount your boot partition at the /boot inside your root partition (if you dont have a seperate boot partition you skip this step)

Now, under the boot directory or in a subdirectory there, you will find a file called either grub.conf or menu.lst

Take a look at the contents of that file. If it contains a boot entry for windows, then you _did_ use grub to boot windows before the reinstall, and the only thing left to do is to re-install the mbr part of grub to your mbr.

To do this you chroot to your linux partition mountpoint with 'chroot /mnt/linuxroot /bin/bash' and then run grub-install /dev/hda to install the grub bootloader to the mbr of your primary master hard disk (assuming you're using a ide disk and that the disk in question is indeed the primary master).  

Disclaimer, I'm typing this from memory since I'm not a fedora user, but if you have some linux experience you shouldn't have a hard time adjusting these directions to your needs.

On the other hand, if the grub config doesn't mention windows, then you've used the windows bootloader, and this becomes a windows problem... and I dont touch those ;)

cheers.

 

by: fulp02Posted on 2004-09-24 at 09:26:08ID: 12144950

WINDOWS DOES NOT UNDER STAND LINUX BOOT FROM A CD INSTAL GRUB INTO THE MBR AND IT SHOULD
FIND FEDORA AND XP WHEN YOU INSTALL XP IT OVERWROTE GRUB WITH ITS OWN BOOT LOADER. BEST
OF LUCK.

 

by: SheharyaarSaahilPosted on 2004-09-24 at 09:28:01ID: 12144967

>> Now this is silly... Windows geeks giving Linux advice? ;)

lol, coz it was aksed in WinXP,,,,, and u can see the results of our Windows Advices !!  ;-)

 

by: dReichelPosted on 2004-09-24 at 09:38:37ID: 12145080

karlwilbur>>Boot the computer with the Fedora Core 2
karlwilbur>>Dick 1 and go into

Interesting..  Apparently the Fedora Team has been busy adding advanced Window$ emulation features ;)

Cheers!

 

by: karlwilburPosted on 2004-09-24 at 10:48:15ID: 12145788

>>karlwilbur>>Boot the computer with the Fedora Core 2
>>karlwilbur>>Dick 1 and go into
oops. :-D

 >> Now this is silly... Windows geeks giving Linux advice? ;)
Actually, I'm a Linux geek. :-)

fulp02  is correct.  When you reinstalled WinXP, Windows overwrites the Master Boot Record (MBR) on the hard drive. [The MBR is the location on the hard drive where the boatloader resides.  It is the very first sector of the hard drive.] Windows puts NTLDR in the MBR. It does not ask permission to overwrite the MBR, it just does it.  This is presumptuous and "know-best".  This kind of "know-best" attitude is why I left Windows in the first place.

By undoing what Windows did to "break" you dual boot, you will have your dual boot back.  

There is a way to have NTLDR be your bootloader and dual boot with Fedora by editing boot.ini but GRUB is _FAR_ superior to NTLDR, so just stick with GRUB.

Best, Karl

 

by: seemasharma22Posted on 2004-09-24 at 19:53:53ID: 12148978

Beautiful Solution...Go Linux Experts.....Hats Off to all you guys... It finally worked.. This is exactly what I did:
# mount /dev/hda3 /mnt/localdisk
# mount /devhda2 /mnt/localdisk/boot
# chroot /mnt/localdisk /bin/bash
# grub-install /dev/hda
And Voila!!!.. I got the option to start either Windows or Fedora..

Thanks a Bunch experts..
Seema

QUESTION:
EinarTh: You asked me to look at the contents of grub.conf or menu.lst. I couldnt open these files. What is the procedure to open these files? But still assuming it contains the entry for windows, I followed whatever was you wrote. Thanks a million for your complete solution.

 

by: EinarThPosted on 2004-09-25 at 06:00:20ID: 12150258

On gentoo the file is /boot/grub/grub.conf on suse it's /boot/grub/menu.lst

To display the contents, you 'cat' the file e.g. : 'cat /boot/grub/grub.conf'

It's human readable with 2-3 lines per OS or special purpose boot.

Glad to help

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...