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.
|
 |
|
10-31-2007, 12:38 PM
|
#31
|
Senior Member
Registered: Sep 2003
Posts: 3,171
Rep: 
|
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 12:41 PM.
|
|
|
10-31-2007, 01:23 PM
|
#32
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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.
|
|
|
11-01-2007, 12:21 AM
|
#33
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
Quote:
Originally Posted by jiml8
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 03:14 AM.
|
|
|
11-01-2007, 12:25 AM
|
#34
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
Quote:
Originally Posted by uncle-c
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.
|
|
|
11-01-2007, 12:27 AM
|
#35
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
Quote:
Originally Posted by saikee
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; 11-01-2007 at 12:33 AM.
|
|
|
11-01-2007, 12:31 AM
|
#36
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
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 03:19 AM.
|
|
|
11-01-2007, 03:26 AM
|
#37
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
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.
|
|
|
11-01-2007, 03:30 AM
|
#38
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
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 03:45 AM.
|
|
|
11-01-2007, 03:31 AM
|
#39
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
You can compare post#37 and 38 with my original post(post#1) to see how windows changed its drive assignments.
|
|
|
11-01-2007, 03:36 AM
|
#40
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
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.
|
|
|
11-01-2007, 03:07 PM
|
#41
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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.
|
|
|
11-02-2007, 10:03 AM
|
#42
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
Quote:
Originally Posted by saikee
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
|
|
|
11-02-2007, 10:50 AM
|
#43
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
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
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 12:49 PM.
|
|
|
11-02-2007, 11:53 AM
|
#44
|
Member
Registered: Oct 2007
Location: Howrah, West Bengal, India
Distribution: fedora 4
Posts: 37
Original Poster
Rep:
|
Quote:
Originally Posted by saikee
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
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? 
|
|
|
11-02-2007, 11:58 AM
|
#45
|
Member
Registered: Oct 2006
Location: The Ether
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299
Rep:
|
Did you install Win98 after or before you installed XP ?
|
|
|
All times are GMT -5. The time now is 12:30 PM.
|
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
|
|