LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-22-2004, 04:45 AM   #1
togura
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
Dual booting with GRUB makes HD disappear


Hi all

THis is my first post, apologies if this has been covered elsewhere - I can't find any reference to it.

OK, I've just installed the latest download of RedHat, and am using GRUB to have the option of dual booting between LINUX and Windows XP. My problem is that when I choose XP, my second hard drive is not visible after it has loaded.

My current setup is that my first hard drive contains all my music in a single partition. My second hard drive contains two partitions, one containing XP, the other Linux. My GRUB boot options to boot XP are as follows:

map (hd0, hd1)
map (hd1, hd0)
unhide (hd0,1)
hide (hd0,0)
rootnoverify (hd0,0)
chainloader +1
makeactive
boot

when XP loads, C: is visible, but no other partitions - not my LINUX partition, not my music drive.

I've tried various combinations of unhides and hides, none of which seem to work, though as I'm not au fait with the GRUB syntax I admit I could be doing something wrong.

Is it GRUB that is preventing XP from seeing my music drive? should I switch drives so the XP/Linux drive is first?

Any help gratefully received, thanks.
 
Old 02-22-2004, 04:59 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
don't worry about hiding them, remove all the hide/unhide and change the partitions back to visible.
XP can't see Linux partitions, if you music drive is a fat32/ntfs, go in disk manager and try giving it a drive letter.
 
Old 02-22-2004, 05:20 AM   #3
togura
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
OK, I removed all the hide/unhide gubbins and Windows still boots okay, so that's a help. However, the Music drive is still invisible. Disk Manager thinks the drive is NTFS, however PartitionMagic thinks the drive is 'CP/M, Sys V'. This is very strange. I've never head of this type, has anyone else?

If anyone has any ideas, let me know. I appreciate this is becoming slightly OT, but I'm posting it here in case it is GRUB that's causing me problems.

thanks!
 
Old 02-22-2004, 05:21 AM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
do a "fdisk -l", whats the partition type on that music partition?
 
Old 02-22-2004, 06:06 AM   #5
togura
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
hey

wow, being such a linux newbie i'm even having troubles getting fdisk to run. I go into Linux, open a terminal and type fdisk, but no luck - it doesn't recognise the command. Do I need do open fdisk from a boot disk?

sorry for such an embarrasingly newbie question :-/
 
Old 02-22-2004, 06:10 AM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try "/sbin/fdisk -l" as root
 
Old 02-22-2004, 06:41 AM   #7
togura
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
very bizarre. fdisk lists dev/hda as having a CP/M file system. Do you recognise this? I'm at a loss as to how it was converted, it was either through PartitionMagic or in the LINUX install process. I'll try to work something out at this end. Hopefully I haven't lost the best part of 30Gb mp3s...
 
Old 02-22-2004, 06:54 AM   #8
togura
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
ha! problem solved. i used Disk Manager in Windows to convert the drive to a Dynamic drive. After that Windows had no problem assigning a frive letter. The odd thing is that all the way through, Disk Manager was convinved the volume was NTFS.

anyway DB, thanks for your help, it's much appreciated.
 
Old 02-22-2004, 06:56 AM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
It's just the partition id in the MBR, and can be safely changed if you know what you're doing.
What hiding a partition does it that it changes the partition to a certain id, though I'm not exactly sure why grub(or partition magic) didn't use type 17(Hidden NTFS/HPFS)
Just change it to what its suppose to be, which is type 7(HPFS/NTFS)
Code:
/sbin/fdisk /dev/hda

Command (m for help): p
(prints out partition table)

Command (m for help): t
(Enter partition number, then "7" for the hex code)

Command (m for help): w
(writes it to the partition table and exit)
 
Old 02-22-2004, 07:02 AM   #10
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Yea that would work too, IIRC a dynamic disk uses 8 megs of space somewhere on the partition instead of the MBR to store the partition table, therefore you basically got around the partition id problem.
 
Old 02-22-2004, 07:04 AM   #11
togura
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
cheers, i'm going to try that anyway, it will give me valuable experience. thanks for all your help :-)
 
Old 02-22-2004, 07:13 AM   #12
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Not exactly sure if GNU fdisk supports dynamic disks (Linux kernel does)
If its working right now don't worry about it.
 
  


Reply



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
Dual-booting using grub damasta55r Linux - Newbie 13 11-20-2005 07:02 AM
lilo vs grub, dual-booting binkgle Ubuntu 6 05-16-2005 01:39 AM
Grub dual booting assatron Linux - Software 9 11-09-2004 09:11 AM
Dual booting and GRUB jfrye Linux - Newbie 1 10-09-2003 09:48 AM
GRUB, and dual booting sammyballz Linux - General 9 10-14-2002 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 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