1

Topic: xp cannot boot after repartition

hi, i used Gparted to shrink two NTFS partitions and then created a FAT32 one on my 160GB sata disk (windows only.) then i shrunk my reisefs partitions on my IDE 40GB disk (linux only) to  create another FAT32 partiton.

however right after that i could not boot into both my linux and winxp systems subsequently.

for winxp: welcome screen but no "windows is starting up..." freezes
for suse linux: cannot read partition at dev/hda3 (the new FAT32 partition in my linux drive.)

subsequently i reformatted the FAT32 partition in my linux drive to reisefs and it could boot again. however my user home folder was lost. then i used YaST partititoner to format that problematic partition yet again to FAT32, and now theres no problem with my linux.

tried recovery console with winxp, diskpart and chkdsk showed no problems.
i can still mount and read my ntfs drives in linux (ie my files can be opened and played in linux.)

so how should i go about in making sure winxp boots again?

2

Re: xp cannot boot after repartition

hi !
this may come from the boot.ini file which point to  the wrong partition. Your xp partition is behind or after the new partition you have created ?
could you past the output of
#fdisk -ul
please ?

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

3 (edited by blueutopia 2006-09-19 15:33:29)

Re: xp cannot boot after repartition

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1              63     2104514     1052226   82  Linux swap / Solaris
/dev/hda2         2104515    53978399    25936942+  83  Linux
/dev/hda3        53978400    78140159    12080880    c  W95 FAT32 (LBA)

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *    81096120   220299344    69601612+   7  HPFS/NTFS
/dev/sda2       220299345   312576704    46138680    f  W95 Ext'd (LBA)
/dev/sda3              63    81096119    40548028+   b  W95 FAT32
/dev/sda5       220315410   312576704    46130647+   7  HPFS/NTFS


also here is my boot.ini file as retrieved...

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect


so how could i correct boot.ini?

thanks in advance! (:

4

Re: xp cannot boot after repartition

blueutopia:

What version of GParted?

5

Re: xp cannot boot after repartition

oh its gparted livecd 0.3.1-1

6

Re: xp cannot boot after repartition

so it's not a wrong bootsector..

maybe it's the same problem Szaka mentioned in that other topic. I have to take this to the parted-dev list and see what they think about it.

7

Re: xp cannot boot after repartition

After resizing XP, did you get the blue screen asking cheking of consistency ?
Did you let it run ?

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

8

Re: xp cannot boot after repartition

yes, it was consistent

9

Re: xp cannot boot after repartition

IF PLORS IS OKAY,
could you send one of us the mbr file ?
Booting linux, just type :
#dd if=/dev/sda of=/thepathyouwant/sda.mbr

Then we could have a look at the mbr of your sata on which is XP.

Plors, what do you think of that ?

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

10

Re: xp cannot boot after repartition

you don't need my permission for helping someone tongue
by all means, go ahead.

11

Re: xp cannot boot after repartition

plors wrote:

you don't need my permission for helping someone tongue
by all means, go ahead.

In fact the question was around the syntax of the "dd" smile

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

12

Re: xp cannot boot after repartition

ah ok
it's not wink now he's mirrorring the entire disk tongue
the correct command would look like:
#dd if=/dev/sda of=/thepathyouwant/sda.mbr bs=1 count=1