Jump to content











Photo
- - - - -

winXP cd with grub4dos


  • Please log in to reply
66 replies to this topic

#1 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 07 May 2010 - 12:09 PM

Is it possible to boot the iso that the method from here creates with grub4dos? or is there another way of booting a windows xp installation cd iso image with grub4dos or any other bootloader?
also is there any other way of making a xp installation cd iso? i've seen plenty of places that tell you how to burn one but i can't find any where that tell you how to just make a iso image. because i can't burn any cd's.

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 07 May 2010 - 12:54 PM

Have you actually tried it? :lol:
Point #8):

Open a command prompt, go to the d:\bcd folder and run:
For Windows XP Home edition: bcd wxphome.
For Windows XP Professional: bcd wxppro.
This will build the (bootable) ISO image and burn it to your recorder.

In any case a .iso image is generated.

You can use either mkisofs (like most of Winbuilder based project use) or Microsoft tools to create the .iso. (cdimage/oscdimg)

The net is choking full of examples on how to make an XP install .iso, and also nlite can be used.
Read here:
http://flyakite.msfn.org/
http://flyakite.msfn...tingburning.htm
and here:
http://www.boot-land...?showtopic=9550
http://www.boot-land...?showtopic=9696

About booting it with grub4dos it WON'T work, UNLESS a RAMDISK boot method is used:
http://www.boot-land...?showtopic=8944

Read this :cheers::
http://www.msfn.org/...howtopic=137714

:cheers:
Wonko

#3 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 07 May 2010 - 01:19 PM

i've already made the iso it was just how to boot it i was wondering about. sorry about not saying that before. :lol: so to do a RAMDISK boot method do you need a specific amount of ram? because i only have 256MB's of ram.

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 07 May 2010 - 01:57 PM

i've already made the iso it was just how to boot it i was wondering about. sorry about not saying that before. :cheers: so to do a RAMDISK boot method do you need a specific amount of ram? because i only have 256MB's of ram.


Yep, unfortunately you are out of luck :cheers:, to use a RAMdisk, some RAM is needed :huh:.

Your only option is to wait until Sha0 or karyonix have the time to fulfill this request:
http://www.boot-land...?...=8168&st=11
sooner or later either Firadisk or WinVblock will be able to directly map something. :cheers:
http://www.boot-land...?...8168&st=140
http://www.boot-land...?...8168&st=150

or you may want to start experimenting with available "filedisk" miniport drivers:
http://www.boot-land...?showtopic=1507
(actually NO, with all due respect :lol: you are not - yet - ready for this)

:P
Wonko

#5 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 07 May 2010 - 04:47 PM

ok... how much ram would i need to use a ramdisk? well the reason i need a windows xp installation cd is that when i repartitioned my other computers hard drive i must of accidentally deleted or corrupted some important file so i need to do a repair install to fix it seeing as it won't boot.
the problem's i have is that i didn't get a xp cd with ether of my computers and as i said before i can't burn any cd's so the only option is somehow do it from a usb drive.
so do you know of any way of fixing a windows installation without needing to burn a cd?

#6 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 07 May 2010 - 10:58 PM

so do you know of any way of fixing a windows installation without needing to burn a cd?

YES. :lol:
http://homepages.tes...no-answers.html


So, you were confusing the problem (and a possible solution to it) with the method you chose. :cheers:

And you are still confusing the actual problem:

must of accidentally deleted or corrupted some important file

and it's solution (which actually is replace the missing/corrupted files) with the method you chose:

so i need to do a repair install to fix it


Let's focalize to the problem:

PC won't boot.

And let's try finding the REASON why this happens (in order to hopefully find a solution to the problem, while taking into account the fact that you cannot burn a CD).

Right now we are well past the "I'm ill, doctor. Help!" phase:
http://homepages.tes...ard-litany.html
and well into the "I know I have some problems with my kidney and you must prescribe me medicin xxxxxx", which is much worse.

So, let's start from scratch, OK?

  • Describe what happens when you try to boot that PC.
  • Describe what you think that happened and how/when it happened that could have caused the actual problem
  • Describe the PC (hardware).

:cheers:
Wonko

#7 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 08 May 2010 - 01:24 PM

So, let's start from scratch, OK?


yeah thats probably the best idea. :huh:

i install debian linux on it but now when i try to boot windows xp the windows boot sreen comes up but then i get a BSOD.(the one in the pic in the spoiler)

what i think happened is that when the debian installer shrank the windows partition there must of been some files near the end of the xp partition so there for it accidentally deleted some files or corrupted them.

hers my computer specs:

IBM R40e 2684 L9G
2.4GHz Intel celeron processor
128MB ram
ATI radeon 330M 16MB integrated
30GB hard drive
DVD rom drive

if you need any more detail just ask. :cheers:

Spoiler


#8 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 08 May 2010 - 04:08 PM

Basically 0X000000ED is an error caused by ANY of three things:
  • corrupted filesystem (not necessarily an actual problem of overwritten/deleted files, but often a minor NTFS filesystem integrity breach)
  • bad connection with the device (typically bad or badly seated cable)
  • "wrongly" partitioned hard disk


Check this:
http://www.msfn.org/...howtopic=117693
(which is about cases #1 and #2 and should NOT be your current problem)

This:
http://support.micro...kb/931760/en-us
(which is case #3 and may actually be your current problem)

Please note how the second code of the STOP ERROR is same as yours: 0xC000014F
And this (similar/connected to the above):
http://www.boot-land...?...ic=9897&hl=

It is possible that the debian installer "assumed" something incorrect while shrinking the partition.

But is the debian booting? :cheers:

If yes, you should post (compressed in a .zip or .7z archive) your actual MBR (you can get it with dd in Linux).

In any case I need a description of the hard disk and how it is currently partitioned/formatted.

What happens when booting in Safe Mode?

Have you got a USB stick available to which you can put the Recovery Console and/or DOS based bottdisks/utilities?

:huh:
Wonko

#9 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 09 May 2010 - 02:36 PM

But is the debian booting?


well it was... now when i try to boot it go's to the grub command shell. there's still a menu.lst there.
ok well i did try to disable the "boot default after 5 seconds" by commenting it out with "#" in the menu.lst but i did get it back the way it was though and i don't see how that could be the problem. granted i'm no expert by any means.
i've just tried booting it with grub4dos on my usb stick and it booted.

If yes, you should post (compressed in a .zip or .7z archive) your actual MBR (you can get it with dd in Linux).


ok i'll get on with that.

In any case I need a description of the hard disk and how it is currently partitioned/formatted.


/dev/hda1: NTFS 18.63GB
/dev/hda2: ext3 9.01GB
/dev/hda3: extended 313.77MB
/dev/hda5: linux swap 313.74

What happens when booting in Safe Mode?


the same as when you try to boot normally. i've also tried to "restore to last known good configuration" but that didn't work either.

Have you got a USB stick available to which you can put the Recovery Console and/or DOS based bottdisks/utilities?


well i have the usb stick that i have grub4dos on so yes.

#10 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 09 May 2010 - 04:22 PM

Now I am COMPLETELY lost. :cheers:

WHAT are you booting (after grub4dos) on your USB stick?
HOW did you get the info about the partitions? (WHAT did you boot to get that info?)

WHAT is the HD booting? (choose):
  • GRUB (possibly from the Debian installer)
  • grub4dos
  • BOOTMGR directly

WHICH menu.lst are you talking about? (choose one):
  • the one on the HD
  • the one on the USB stick

Post the contents of BOTH above menu.lst's.

Anyway, you can boot to grub4dos (from the stick), right?

Try booting from it, then press "c" to get to command line.
Type in it:
geometry (hd0)
[ENTER]
(post grub4dos feedback)

geometry (hd1)
[ENTER]
(post grub4dos feedback)

:cheers:
Wonko

#11 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 09 May 2010 - 05:10 PM

If yes, you should post (compressed in a .zip or .7z archive) your actual MBR (you can get it with dd in Linux).

An MBR is 512 bytes. I'm not sure how big that will be once zipped. :cheers:
dd if=/dev/XXX of=my_mbr.bin count=1 bs=512


#12 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 09 May 2010 - 06:58 PM

An MBR is 512 bytes. I'm not sure how big that will be once zipped.[/code]

Yep, it will probably (please read as "surely") be a case of a compressed file being bigger than the original, but I doubt you will be able to upload as attachment something that has not one of the "correct" file extension, though. :cheers:

So, in order to prevent the problem:

I save the file as my_mbr.bin :cheers:, but the board doesn't let me attach the file...! :cheers:


I ALWAYS suggest to compress ANY file that is going to be attached in a .zip or .7z archive. :cheers:

:P
Wonko

#13 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 10 May 2010 - 10:40 AM

dumb question but how to you attach a file to a reply? i can't find a any way to. :cheers:

WHAT are you booting (after grub4dos) on your USB stick?

debian on the HD.

HOW did you get the info about the partitions? (WHAT did you boot to get that info?)

gparted in debian.

WHAT is the HD booting? (choose):

grub.

WHICH menu.lst are you talking about? (choose one):

the one on the HD.

my HD menu.lst:

my usb stick menu.lst:
color white/black black/white white/black white/blacktimeout 30default /defaulttitle dsl using syslinuxmap (hd0,1)+1 (fd0)map --hookroot (fd0)chainloader +1boottitle debianroot (hd1,1)kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hda2 roinitrd /boot/initrd.img-2.6.26-2-686title netbootcdfind --set-root /images/netbootcd.isomap /images/netbootcd.iso (0xff) || map --mem /images/netbootcd.iso (0xff)map --hookchainloader (0xff)title NimbleXfind --set-root /OSimages/NimbleX-100532IaZ.isomap /OSimages/NimbleX-100532IaZ.iso (hd32)map --hookchainloader (hd32)title Ubuntu 9.10\nload ubuntu from hard driveroot (hd1,4) kernel /boot/vmlinuzinitrd /boot/initrd.gztitle KolibriOS v.0.7.7.0map (hd0,0)/OSimages/kolibri.iso (hd32)map --hookchainloader (hd32)boottitle Ultimate Boot CDmap /OSimages/ubcd411.iso (hd32)map --hookchainloader (hd32)title SliTaz cooking from ISO chainloader (hd1,0)map --mem (hd1,0)/OSimages/slitaz.iso (hd32)map --hookmap --statuschainloader (hd32)title SliTaz cooking from ISO chainloader (hd0,0)map --mem (hd0,0)/OSimages/slitaz.iso (hd32)map --hookmap --statuschainloader (hd32)title TinyCorefind --set-root /OSimages/tinycore_2.8.isomap /OSimages/tinycore_2.8.iso (0xff) || map --mem /OSimages/tinycore_2.8.iso (0xff)map --hookchainloader (0xff)title Boot Parted Magic 4.8find --set-root /OSimages/pmagic-4.8.isomap /OSimages/pmagic-4.8.iso (hd32)map --hookroot (hd32)chainloader (hd32)title not working boot optionsfind --set-root /submenu.lstconfigfile /submenu.lsttitle commandlinecommandlinetitle floppy (fd0)chainloader (fd0)+1rootnoverify (fd0)title back to dosquittitle rebootreboottitle halthalt
and my submenu:
feedback from grub4dos:

grub> geometry (hd0)
drive 0x80(LBA): C/H/S=490/255/63, Sector Count /size=7871850/512
partition num: 0, active, Filesystem type is fat, partition type 0x0B
partition num 1, Filesystem type is fat, partition type 0x0B

grub> geometry (hd1)
drive 0x81(LBA): C/S/H=1024/255/63, sector count /size=16450560/512
partition num: 0, active, Filesystem type is ntfs, partition type 0x07
partition num: 1, Filesystem type is ext2fs, partition type 0x83

#14 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 10 May 2010 - 11:24 AM

When you reply to a thread or post, you should have a dropdown box (on the right using "classical" skin) "managing current attachments (0)" and just below it a couple of buttons, one (depending on YOUR OS language) like "Browse" and another one with "UPLOAD".

It won't probably help, but you can add to your grub4dos menu.lst on the USB stick an entry to boot the XP on HD:
title XP on internal hd

map (hd0) (hd1)

map (hd1) (hd0)

map --hook

root (hd0,0)

chainloader /ntldr
The above is useful to solve some problems connected to the bootsector (as it bypasses it).

If I were you I would create a Recovery Console on your USB stick and try running from it a CHKDSK.
Related topics here:
http://www.boot-land...?showtopic=2254
http://www.boot-land...?showtopic=5316
Easiest should be this:
http://www.boot-land...?...=5316&st=96

but in the given thread there are a number of examples to make it manually, guess which ones I recommend :cheers::
http://www.boot-land...?...=5316&st=38
http://www.boot-land...?...=5316&st=40

but there are more:
http://www.boot-land...?...=5316&st=60
http://www.boot-land...?...=5316&st=88

Or, since you have debian booting, you can check the NTFS filesystem from it using TESTDISK:
http://www.cgsecurit...g/wiki/TestDisk
which also has some provisions to check and repair NTFS:
http://www.cgsecurit..._and_MFT_Repair


:cheers:
Wonko

#15 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 10 May 2010 - 01:31 PM

I still can't find a way to attach it so i uploaded it to here.

so doing it this way:
http://www.boot-land...?...=5316&st=96
how do you make/get the "xp setup source folder? is it just the i386 folder or is there some thing else you need to do?

It won't probably help, but you can add to your grub4dos menu.lst on the USB stick an entry to boot the XP on HD:

title XP on internal hdmap (hd0) (hd1)map (hd1) (hd0)map --hookroot (hd0,0)chainloader /ntldr


that should come in handy thanks.

#16 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 10 May 2010 - 01:49 PM

Yep, a source is a \386\, either from original CD or copied to HD (to make things faster, but for RC you won't need this step).

I'll check the file and let you know, but from the report you posted about grub4dos feedback, the MBR should be OK.

:cheers:
Wonko

#17 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 10 May 2010 - 02:08 PM

There are also:

#18 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 10 May 2010 - 02:10 PM

There are also:


Sure :cheers:, but how easy is to install the Recovery Console if you cannot boot? :cheers:

:cheers:

:cheers:
Wonko

#19 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 10 May 2010 - 05:08 PM

in the make_IMG.exe program it says "please select sources and target drive" but i try to select my i386 folder for "windows xp setup source folder" under sources but it comes up "select your XPSOURCE folder and NOT your i386 folder". there's something I'm missing isn't there? do i need to do the same as when i made the xp installation cd?

#20 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 10 May 2010 - 05:10 PM

in the make_IMG.exe program it says "please select sources and target drive" but i try to select my i386 folder for "windows xp setup source folder" under sources but it comes up "select your XPSOURCE folder and NOT your i386 folder". there's something I'm missing isn't there? do i need to do the same as when i made the xp installation cd?

Try pointing it to the *whatever* that contains the \I386\ folder. :cheers:

BTW, what you uploaded is NOT the MBR, but rather the bootsector of the NTFS partition.

Which device did you put as source for the dd command?

The bootsector is using a geometry of 240 heads, which is somewhat unusual. Is it a Lenovo notebook? (if Yes it's normal)

grub4dos detected a "standard" 255 head geometry in your previous report. :cheers:

If also the debian "assumed" a 255 head geometry we have possibly found the problem.

Only seemingly unrelated:
http://www.911cd.net...showtopic=23147
http://www.911cd.net...showtopic=23408



:cheers:
Wonko

#21 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 11 May 2010 - 10:05 AM

BTW, what you uploaded is NOT the MBR, but rather the bootsector of the NTFS partition.

Which device did you put as source for the dd command?

i put hda1 instead of hda. heres the mbr hopefully. :(

i made the RC ramdisk and it booted ok. however when the rc lists windows installations to login to it only has one entry:

1: E:\CATCH22

The bootsector is using a geometry of 240 heads, which is somewhat unusual. Is it a Lenovo notebook? (if Yes it's normal)

well it's a IBM notebook so yeah.

#22 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 May 2010 - 07:57 AM

Yep, but don't worry, it should log to it allright and allow you to run chkdsk.

Running CHKDSK from RC:
http://www.boot-land...?...=11342&st=8

:cheers:
Wonko

#23 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 12 May 2010 - 10:16 AM

I put in the "map" command to see what devices it was recognizing and this is what came up:

D: 25587MB \device\harddisk0\partition1
E: FAT32 3576MB \device\harddisk1\partition1
F: \device\cdrom

I tried:
CHKDSK C: /p
but it said there was no problem and it said the size was 15328KB so i don't think thats my windows partition.

so i tried chkdsk with D: and it came up:

the volume appears to contain one or more unrecoverable problems.

#24 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 May 2010 - 10:49 AM

D: 25587MB \device\harddisk0\partition1
E: FAT32 3576MB \device\harddisk1\partition1
F: \device\cdrom

I tried:
CHKDSK C: /p
but it said there was no problem and it said the size was 15328KB so i don't think thats my windows partition.

so i tried chkdsk with D: and it came up:

the volume appears to contain one or more unrecoverable problems.

Yep, with your setup your first partition on hd (hda1) is \device\harddisk0\partition1 i.e. D:

The chkdsk report is NOT good news.

The good news are that your MBR partition table (yes, now you got the right sector :cheers: ) uses the "standard" 255 head geometry, that may be the cause of the problem.

What I am not sure about is whether the right value on your machine is the 240 or the 255 (I vote for the first, since the filesystem was created with that value BEFORE you fiddled with the Linux install).

Find attached a modified MBR that you should try to restore on the hard disk, before trying to re-run CHKDSK.
The only change I made to it is to change byte 0x1C3 from 254 to 239 (End Head of first partition).

I see that you have installed the GRUB MBR, I cannot say (and it also depends on the actual way it was installed) if GRUB creates, like grub4dos does, a copy of the previous MBR on sector #2.
Try making a dd of hda sized 1024 bytes instead of 512 or, better yet, do it with 100 sectors 51,200 bytes and upload it.

:cheers:
Wonko

Attached Files



#25 apemax

apemax

    Frequent Member

  • Advanced user
  • 172 posts
  • Location:uk
  •  
    United Kingdom

Posted 12 May 2010 - 12:14 PM

ok so do you want me to

Find attached a modified MBR that you should try to restore on the hard disk, before trying to re-run CHKDSK.

and then

Try making a dd of hda sized 1024 bytes instead of 512 or, better yet, do it with 100 sectors 51,200 bytes and upload it.

?

also how do you restore the mbr on the hard disk?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users