LinuxQuestions.org
Review your favorite Linux distribution.
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 10-31-2007, 11:38 AM   #31
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115

Quote:
Do not be fooled by the OP description that XP being a "D" drive will be the second partition. It is actually hdd5 (by it size) and no OS can be installed in an extended partition.

There may be typo errors in Post #12 suggesting hdc1, hdc2 and hdc3 are all extended partitions whereas only hdc1 is. The partition Type c is an indisputable evidence that hdc2 and hdc3 are fat32 partitions.
Typos??? Doesn't everyone cut and paste these things? But you are right; the definitions as listed are internally inconsistent. Type c is of course a Win95 FAT partition (LBA mapped). Hence the subsequent description must be wrong. Hence this can't be a cut and paste.

And if it isn't a cut and paste, then none of it can be trusted. In fact, based upon size as specified in the fdisk output, you can't distinguish partitions 1, 2, or 3 on that drive. By location, hdc5 is associated with hdc1, but that is pretty much all you can tell.

Edit:

Oh, right. drives hdc and hdd appear to be interchanged.

nebbermind; you have it.

Last edited by jiml8; 10-31-2007 at 11:41 AM.
 
Old 10-31-2007, 12:23 PM   #32
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
This is my way of reading the 20Gb disk hdd

If is reported in Linux
Code:
Device Boot Start End Blocks Id System
/dev/hdd1 * 1 609 4891761 b W95 FAT32
/dev/hdd2 610 2386 14273752+ f W95 Ext'd(LBA)
/dev/hdd3 2387 2434 385560 82 Linux swap/Solaris
/dev/hdd5 610 1212 4843566 b W95 FAT32
/dev/hdd6 1213 2125 7333641 b W95 FAT32
/dev/hdd7 2126 2386 2096451 6 FAT16
In Windows as known to the user
Code:
20 GB, divided into 4 partitions.
C:\ (4.67 GB, FAT32, Primary partition,Win 98SE installed here)
D:\(4.62 GB,FAT32, WIN XP Professional installed here)
E:\(6.99 GB, FAT32)
F:\(2 GB, FAT)
The red ones are Win9x and the blue ones are XP.

MS systems do not support Linux so hdd3 would not be mounted. hdd2 being an extended partition also technically cannot be mounted.

Thus the partition table AFAIK is healthy.
 
Old 10-31-2007, 11:21 PM   #33
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jiml8 View Post
Typos??? Doesn't everyone cut and paste these things? But you are right; the definitions as listed are internally inconsistent. Type c is of course a Win95 FAT partition (LBA mapped). Hence the subsequent description must be wrong. Hence this can't be a cut and paste.

And if it isn't a cut and paste, then none of it can be trusted. In fact, based upon size as specified in the fdisk output, you can't distinguish partitions 1, 2, or 3 on that drive. By location, hdc5 is associated with hdc1, but that is pretty much all you can tell.

Edit:

Oh, right. drives hdc and hdd appear to be interchanged.

nebbermind; you have it.
hmmmm....I see, here's a lot of discussions relating if I reported my hdd partitions correctly

Well I'll check again if it was a typo error.

And by the way, what's this OP thing?

Last edited by sujoy mukherjee; 11-01-2007 at 02:14 AM.
 
Old 10-31-2007, 11:25 PM   #34
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uncle-c View Post
Well you can boot into your win98 which is a good thing ! You do not need to change the code in your menu.lst as it seems the "hal.dll" problem commonly occurs in systems where you have 2 different Windows installs.

http://www.kellys-korner-xp.com/xp_haldll_missing.htm

The above link should shed some light on the problem and help you further.

Uncle
uncle-c, your link is a good one.
But the very first solution is again saying reinstalling windows. Microsoft also suggested that in their website for this error. But I would try that if everything else will fail.

However there are other solutions/ways it provided....so I'll go through those and come back to you with the result.
 
Old 10-31-2007, 11:27 PM   #35
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by saikee View Post
I think there is a good chance that your problem would disappear if you map the drive instead of just map the Win9x partition. This is to say revise your menu.lst to
Code:
title WinXP
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1
Please report the result.
saikee, I tried your scheme. The sad thing is, it was of no use. Still the hal.dll error coming.

Last edited by sujoy mukherjee; 10-31-2007 at 11:33 PM.
 
Old 10-31-2007, 11:31 PM   #36
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
One thought, OP for Original poster? Is it?

Well, you were right friends....it was a typo error for post#12. Sorry for my mistake.....my apology.
But I can assure you except post#12, my every other post was error-free..I double-checked that.

Here's again a newer version of fdisk -l report, this time using copy-paste

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 2 2551 20482875 f W95 Ext'd (LBA)
/dev/hdc2 2552 5101 20482875 c W95 FAT32 (LBA)
/dev/hdc3 5102 7651 20482875 c W95 FAT32 (LBA)
/dev/hdc4 * 7652 9563 15358140 83 Linux
/dev/hdc5 2 2551 20482843+ b W95 FAT32

Disk /dev/hdd: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 609 4891761 b W95 FAT32
/dev/hdd2 610 2386 14273752+ f W95 Ext'd (LBA)
/dev/hdd3 2387 2434 385560 82 Linux swap / Solaris
/dev/hdd5 610 1212 4843566 b W95 FAT32
/dev/hdd6 1213 2125 7333641 b W95 FAT32
/dev/hdd7 2126 2386 2096451 6 FAT16

Last edited by sujoy mukherjee; 11-01-2007 at 02:19 AM.
 
Old 11-01-2007, 02:26 AM   #37
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
One more interesting thing....I also have Windows Recovery Console installed on my pc....So I used the map command from there to see how Windows is seeing my disk partitions....I run WRC(win recovery console) twice, one from my boot menu, the next time when I boot from WinXP cd.

You might want to look at the results:-

The result of map command when I run it from recovery console that was installed on my pc



H:\ FAT32 20002 MB \Device\HardDisk0\Partition 4
G:\ FAT32 20002 MB \Device\HardDisk0\Partition 1
I:\ FAT32 20002 MB \Device\HardDisk0\Partition 2
K:\ 14999 MB \Device\HardDisk0\Partition 3

C:\ FAT32 4778 MB \Device\HardDisk1\Partition 1
D:\ FAT32 4731 MB \Device\HardDisk1\Partition 3
E:\ FAT32 7161 MB \Device\HardDisk1\Partition 4
F:\ FAT16 2047 MB \Device\HardDisk1\Partition 5
L:\ 376 MB \Device\HardDisk1\Partition 2

A:\ \Device\Floppy0
J:\ \Device\CdRom0


From here, you can see Linux is installed on K:\ and L:\ is the Swap file.
 
Old 11-01-2007, 02:30 AM   #38
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
This time I boot from Win XP's bootable CD and run Recovery Console from there and use the map command.

This is the latest picture of my didks as I can see using the map command from Window's Recovery console:



E:\ FAT32 20002 MB \Device\HardDisk0\Partition 4
C:\ FAT32 20002 MB \Device\HardDisk0\Partition 1
I:\ FAT32 20002 MB \Device\HardDisk0\Partition 2
K:\ 14999 MB \Device\HardDisk0\Partition 3

D:\ FAT32 4778 MB \Device\HardDisk1\Partition 1
F:\ FAT32 4731 MB \Device\HardDisk1\Partition 3
G:\ FAT32 7161 MB \Device\HardDisk1\Partition 4
H:\ FAT16 2047 MB \Device\HardDisk1\Partition 5
L:\ 376 MB \Device\HardDisk1\Partition 2

A:\ \Device\Floppy0
J:\ \Device\CdRom0


Here Win 98 is installed on D:\ and Win XP is on F:\.
Linux is on K:\, Swap is on L:\.


If you compare it with the previous map output, you can see a change in the partitions's names....may be not that important but I just want to point it out to you.

Last edited by sujoy mukherjee; 11-01-2007 at 02:45 AM.
 
Old 11-01-2007, 02:31 AM   #39
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
You can compare post#37 and 38 with my original post(post#1) to see how windows changed its drive assignments.
 
Old 11-01-2007, 02:36 AM   #40
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
uncle-c, as I promised to you to come back with feedback, here it is.

I boot from Win XP cd and enter Recovery Console. From there I used Expand, Bootcfg and Fixboot commands as it was written in your link.

Expand didn't work. It says it cannnot expand hal.dl_ from DVDrom drive to windows xp's system32 folder.

Bootcfg /rebuild didn't work.

Fixboot said it was going to write the new Boot sector to K:\ ....which I didn't want to do....because as you can see from post#37 & 38, K:\ is the Linux root...so i feared if Linux would become unusable.

That's it.
 
Old 11-01-2007, 02:07 PM   #41
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Can the OP confirm what exactly is the current problem?

I believe the partition confusion is behind us and Windows does not boot, right?

Have you got a Grub screen and able to boot into Fedora?

If you do then give us the lastest "fdisk -l" and we can give you the instructions to boot up the system manually.
 
Old 11-02-2007, 09:03 AM   #42
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by saikee View Post
Can the OP confirm what exactly is the current problem?

I believe the partition confusion is behind us and Windows does not boot, right?

Have you got a Grub screen and able to boot into Fedora?

If you do then give us the lastest "fdisk -l" and we can give you the instructions to boot up the system manually.
Yup, exactly. Fedora is booting but Windows not.

I think you may just overlooked that I already posted the latest fdisk -l on post # 36. Anyhow, here it is again(using copy-paste, so no typo errors)

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 2 2551 20482875 f W95 Ext'd (LBA)
/dev/hdc2 2552 5101 20482875 c W95 FAT32 (LBA)
/dev/hdc3 5102 7651 20482875 c W95 FAT32 (LBA)
/dev/hdc4 * 7652 9563 15358140 83 Linux
/dev/hdc5 2 2551 20482843+ b W95 FAT32

Disk /dev/hdd: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 609 4891761 b W95 FAT32
/dev/hdd2 610 2386 14273752+ f W95 Ext'd (LBA)
/dev/hdd3 2387 2434 385560 82 Linux swap / Solaris
/dev/hdd5 610 1212 4843566 b W95 FAT32
/dev/hdd6 1213 2125 7333641 b W95 FAT32
/dev/hdd7 2126 2386 2096451 6 FAT16
 
Old 11-02-2007, 09:50 AM   #43
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
OK

Tell us which line Grub isn't happy if you boot it manually. To do it you press the "c" key when you see the booting screen (i.e. do not choose a system to boot) and drop yourself into a Grub prompt. You then type line by line the following

First check the geometry of 2st disk (hd1) by command
Code:
geometry (hd1)
The first partition 0 should match up your hdd1. To boot XP via hdd1 you type

Code:
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1
boot
Grub responds to every line you type. Silence means acceptance. The response after the first line should be something like "partition type b fat32 found".

If the above does not work then your XP may not be bootable originally. In such a case you need to remove hdc disk temporarily, restore the XP MBR onto hdd disk and repair XP as a stand alone hard disk.

Last edited by saikee; 11-02-2007 at 11:49 AM.
 
Old 11-02-2007, 10:53 AM   #44
sujoy mukherjee
Member
 
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by saikee View Post
OK

Tell us which line Grub isn't happy if you boot it manually. To do it you press the "c" key when you see the booting screen (i.e. do not choose a system to boot) and drop yourself into a Grub prompt. You then type line by line the following

First check the geometry of 2st disk (hd1) by command
Code:
geometry (hd1)
The first partition 0 should match up your hdd1. To boot XP via hdd1 you type

Code:
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1
boot
Grub responds to every line you type. Silence means acceptance. The response after the first line should be something like "partition type b fat32 found".

If the above does not work then your XP may not be bootable originally. In such a case you need to remove hdc disk temporarily, restore the XP MBR onto hdd disk and repair XP as a stand alone hard disk.
hmmm....I did follow your instructions and now here is the result which I'm afraid negative.

After I execute geometry (hd1), this result came out:


drive 0x81: C/H/S = 1023/255/63, The number of sectors = 39102336, LBA

Partition num:0, Filesystemtype is fat, partition type 0xb
Partition num:2, Filesystemtype unknown, partition type 0x82
Partition num:4, Filesystemtype is fat, partition type 0xb
Partition num:5, Filesystemtype is fat, partition type 0xb
Partition num:6, Filesystemtype is fat, partition type 0x6


Then I executed your code as you said:
Code:
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1
boot
After the first line, the response was: Filesystem type is fat, partition type 0xb

The grub simply accepts every other code....after typing boot and pressing enter, it took me to Windows boot screen....But then on, its the same old story....when I select Windows XP and press Enter, the same "hal.dll" error message came.

So now, tell me what shall I do?
 
Old 11-02-2007, 10:58 AM   #45
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296

Rep: Reputation: 30
Did you install Win98 after or before you installed XP ?
 
  


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
problem during disk partition at a toshiba laptop mariav Linux - Software 3 08-20-2007 04:30 PM
SAMBA problem with disk partition casper234 Linux - Networking 5 01-25-2006 02:38 AM
disk partition problem whee Linux - Newbie 2 05-28-2005 07:58 PM
Strange Disk Partition Problem Ross Clement Linux - Hardware 5 06-30-2003 06:34 AM
Help: Disk partition problem during install groston Linux - Distributions 1 10-07-2002 07:06 PM


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