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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-18-2004, 09:42 PM
|
#1
|
Member
Registered: Jun 2004
Location: New York
Distribution: Red Hat
Posts: 32
Rep:
|
Can't Access Windows Partition
Hi I just installed Red Hat 9 on my Vaio. I previously had the whole hard drive dedicated to Windows then I used Partition Magic 8 to repartition for the Linux install. The install went fine but now when I boot up the Grub Boot loader only shows my Linux partition. I can tell the Windows partition is still there on hda1, I just can't boot into it. Any help on how I can either get Grub to recognize it or should I switch to Lilo? Or is it going to take me using the Partition Magic Rescue disks to boot into Windows and delete the Linux partitions and start over again? I don't believe the data in the Windows partition was touched since I used Disk Druid to partition and selected the two partitions I had created with Partition Magic for my Linux install. I had one swap and the other is ext2 or ext3. Any help would be greatly appreciated.
Thanks in advance,
Spiros
|
|
|
06-18-2004, 09:54 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
You need to tell grub about the Windows partition. edit the /boot/grub/menu.list and add to the bottom something like:
Code:
title Windows
root (hd0,0)
makeactive
chainloader +1
Now you'll get the Windows option at boot. If it doesn't work, you may have damaged windows. ( You did resize I hope, and make backups )
Last edited by leonscape; 06-18-2004 at 09:56 PM.
|
|
|
06-18-2004, 10:01 PM
|
#3
|
Member
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244
Rep:
|
Hi
I think that what has happened was that the linux boot loader has overwritten your mbr on your primary drive resulting in a loss of booting windows. mmm this is strange as i read somewhere that grub will autodetect the oses. I dont use grub myself (prefer lilo).
Anyway at the end of the rh installation were you given some kind of option as of where to install the bootloader, if you were it probabaly would have been better to install the bootloader to the root partition of your linux installation, to fix your problem you could try poping in the windows cd to fix the bootloader (what version of win are you using 98 nt etc )
Hope that helped
cheers
ps there is also a windows fdisk option that will rewrite your mbr i think its C:fdisk /mbr but im not 100% sure
|
|
|
06-18-2004, 10:18 PM
|
#4
|
Member
Registered: Jun 2004
Location: New York
Distribution: Red Hat
Posts: 32
Original Poster
Rep:
|
Hmm...
I did remember to resize the partitions when I was using Partition Magic. And I'm running Windows XP Personal Edition. Any other information I should include?
|
|
|
06-18-2004, 10:24 PM
|
#5
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
No if its the firs partition on the primary master drive ( hda1 / C ) Then what I listed above should work.
try mounting the disk in Linux to check everthings still there
Code:
su
password: ( type your root password, though nothing will appear on screen )
mkdir /mnt/winC
mount -t vfat /dev/hda1 /mnt/winC
It might not be vfat so try ntfs ( Don't write to the driver if its ntfs though, as you can damage the disk ).
|
|
|
06-18-2004, 10:45 PM
|
#6
|
Member
Registered: Jun 2004
Location: New York
Distribution: Red Hat
Posts: 32
Original Poster
Rep:
|
Hmm..
The Window's partition is the second partition on the hard drive (whcih there is only one of), it's right behind my swap parition. Then comes the Linux partition. the Windows is hda1, Swap is hda3, and Linux is hda2. I tryed mounting my Windows partition like you suggested and I know it's ntfs since that's what the hardware browser tells me. But when I try to mount it Linux tells me my kernal doesn't support ntfs. That sounds weird to me cause I thought it would automatically.
|
|
|
06-18-2004, 11:08 PM
|
#7
|
Member
Registered: Jun 2004
Location: New York
Distribution: Red Hat
Posts: 32
Original Poster
Rep:
|
Well it didn't go too well.
Well I did what you said and edited my /boot/menu.lst and that went fine Grub detected Windows and began loading it. The Windows XP logo appears and it begins to load but soon afterwards it drops me to the screen the Partition Magic was using when I edited/resized my partitions and said two things were missing they came across the screen so fast I can't really read them and then the machine reboots. I have Partition Magic rescue disks which I am going to try to use but I don't know what to do with them exactly. Any more ideas? Or am I about to lose all my Windows data?
Thanks again leonscape and synapse for all your help.
-Spiros
|
|
|
06-18-2004, 11:17 PM
|
#8
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Ahh if windows is the second partition, and wasn't before partition magic, they you have to trick windows into thinking its still on the first partition.
Try:
Code:
title Windows
root (hd0,1)
makeactive
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
chainloader +1
If root(hd0,0) worked for you then it maybe that the bootloader is still there and wasn't moved by partition magic.
Some Distros don't put the ntfs module into Linux by default ( as its considered experimental and dangerous ). Theres porblems with writing to ntfs disks. Try adding it ( one of the redhat-config programs probably does this ).
If this doesn't work move your swap to the other end of the disk ( which is a better position for it anyway. ) and move windows to the front again.
Never used partition magic so I can't help with that.
|
|
|
06-19-2004, 12:17 AM
|
#9
|
Member
Registered: Jun 2004
Location: New York
Distribution: Red Hat
Posts: 32
Original Poster
Rep:
|
The output from booting into Windows..
Leonscape I can't thank you enough for your help. I haven't tryed the things from your last post sicne I've been trying to tsolve the problem on the Partition Magic end. I wrote down the error message outputed during my boot up into Windows. I don't think I need to edit the menu.lst anymore since I boot into Windows fine it's during XP's load up that Partition Magic takes over and things go wrong. So I believe I either need someway of changing how Partition Magic loads, I couldn't find any related forums to Partition Magic so I'm not quite sure where to go from here. I tryed using the rescue disks but they only allowed me to remove edit add partitions and change which is primrary etc.. it's basically a disk druid utility.
The message was as follows:
xmnt2002 program not found skipping autocheck
autochk program not found skipping authocheck
Then very very very quickly I see what I believe is a blue screen of death.
Thanks again for everyone's help,
Spiros
|
|
|
All times are GMT -5. The time now is 12:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|