LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disk Partition problem (https://www.linuxquestions.org/questions/linux-newbie-8/disk-partition-problem-595068/)

jiml8 10-31-2007 11:38 AM

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.

saikee 10-31-2007 12:23 PM

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.

sujoy mukherjee 10-31-2007 11:21 PM

Quote:

Originally Posted by jiml8 (Post 2943639)
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?

sujoy mukherjee 10-31-2007 11:25 PM

Quote:

Originally Posted by uncle-c (Post 2943509)
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.

sujoy mukherjee 10-31-2007 11:27 PM

Quote:

Originally Posted by saikee (Post 2943539)
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.

sujoy mukherjee 10-31-2007 11:31 PM

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

sujoy mukherjee 11-01-2007 02:26 AM

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.

sujoy mukherjee 11-01-2007 02:30 AM

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.

sujoy mukherjee 11-01-2007 02:31 AM

You can compare post#37 and 38 with my original post(post#1) to see how windows changed its drive assignments.

sujoy mukherjee 11-01-2007 02:36 AM

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.

saikee 11-01-2007 02:07 PM

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.

sujoy mukherjee 11-02-2007 09:03 AM

Quote:

Originally Posted by saikee (Post 2944825)
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

saikee 11-02-2007 09:50 AM

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.

sujoy mukherjee 11-02-2007 10:53 AM

Quote:

Originally Posted by saikee (Post 2945765)
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?:(

uncle-c 11-02-2007 10:58 AM

Did you install Win98 after or before you installed XP ?


All times are GMT -5. The time now is 11:09 PM.