How to restore access to Windows XP after installing Linux? - Linux

This is a discussion on How to restore access to Windows XP after installing Linux? - Linux ; I installed Debian on a second physical hard drive (not a partition). At first, I had no problems dual-booting (I installed GRUB on the Windows drive). But somehow I have overwritten something on the Windows drive, and now GRUB will ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: How to restore access to Windows XP after installing Linux?

  1. How to restore access to Windows XP after installing Linux?

    I installed Debian on a second physical hard drive (not a partition). At
    first, I had no problems dual-booting (I installed GRUB on the Windows
    drive). But somehow I have overwritten something on the Windows drive,
    and now GRUB will only allow me to boot to Linux.

    I ran the Windows XP repair utility, and it says I have an "unknown"
    partition where it should have seen NTFS.

    What have I done, and does anyone know how to fix it?

  2. Re: How to restore access to Windows XP after installing Linux?

    GateKeeper wrote:

    > I ran the Windows XP repair utility, and it says I have an "unknown"
    > partition where it should have seen NTFS.


    From the linux console:

    fdisk /dev/hda
    p
    q
    fdisk /dev/hdb
    p
    q

    Post your output here.

    Regards,

    Mark.

    --
    Mark Hobley
    393 Quinton Road West
    QUINTON
    Birmingham
    B32 1QE

    Telephone: (0121) 247 1596
    International: 0044 121 247 1596

    Email: markhobley at hotpop dot donottypethisbit com

    http://markhobley.yi.org/


  3. Re: How to restore access to Windows XP after installing Linux?

    Hi

    I had same kind of problem, only worse...i fixed it by installing Lilo
    instead of Grub.
    GO where you set up boot loaders, and change the loader

    Darko



    GateKeeper wrote:
    > I installed Debian on a second physical hard drive (not a partition). At
    > first, I had no problems dual-booting (I installed GRUB on the Windows
    > drive). But somehow I have overwritten something on the Windows drive,
    > and now GRUB will only allow me to boot to Linux.
    >
    > I ran the Windows XP repair utility, and it says I have an "unknown"
    > partition where it should have seen NTFS.
    >
    > What have I done, and does anyone know how to fix it?


  4. Re: How to restore access to Windows XP after installing Linux?

    Mark Hobley wrote:
    > GateKeeper wrote:
    >
    >> I ran the Windows XP repair utility, and it says I have an "unknown"
    >> partition where it should have seen NTFS.

    >
    > From the linux console:
    >
    > fdisk /dev/hda
    > p
    > q


    Disk /dev/hda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 573 4602591 b W95 FAT32
    /dev/hda2 574 30400 239585377+ f W95 Ext'd (LBA)
    /dev/hda5 574 30400 239585346 7 HPFS/NTFS

    > fdisk /dev/hdb
    > p
    > q


    Disk /dev/hdb: 10.2 GB, 10262568960 bytes
    255 heads, 63 sectors/track, 1247 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 * 1 1192 9574708+ 83 Linux
    /dev/hdb2 1193 1247 441787+ 5 Extended
    /dev/hdb5 1193 1247 441756 82 Linux swap / Solaris

    Command (m for help): q

  5. Re: How to restore access to Windows XP after installing Linux?

    GateKeeper wrote:

    > Mark Hobley wrote:
    >> GateKeeper wrote:
    >>
    >>> I ran the Windows XP repair utility, and it says I have an "unknown"
    >>> partition where it should have seen NTFS.

    >>
    >> From the linux console:
    >>
    >> fdisk /dev/hda
    >> p
    >> q

    >
    > Disk /dev/hda: 250.0 GB, 250059350016 bytes
    > 255 heads, 63 sectors/track, 30401 cylinders
    > Units = cylinders of 16065 * 512 = 8225280 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/hda1 * 1 573 4602591 b W95 FAT32


    That's where your XP boot files (should) reside. Since that partition is
    FAT32, it may well have been altered by linux.
    Check (from linux) if you still see ntldr, ntdetect.com, boot.ini and
    bootfont.bin there.

    > /dev/hda2 574 30400 239585377+ f W95 Ext'd (LBA)
    > /dev/hda5 574 30400 239585346 7 HPFS/NTFS


    You may try to mount it r/o (mount -t ntfs /dev/hda5 /mnt/windows), after
    installing ntfs-progs.
    At least you should be able to get your data off safely.
    --
    vista policy violation: Microsoft optical mouse found penguin patterns
    on mousepad. Partition scan in progress to remove offending
    incompatible products. Reactivate MS software.
    Linux 2.6.17-mm1,Xorg7.1/nvidia [LinuxCounter#295241,ICQ#4918962]

+ Reply to Thread