Re: Problem with hard drive and partitions

From: Michael C. (mcsuper5_at_usol.com)
Date: 12/20/03


Date: 20 Dec 2003 22:25:04 GMT

On Tue, 16 Dec 2003 19:44:32 +0000,
MikeyD <m_donaghy50@hotmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > I installed Linux (Mandrake 8.0) using the free space in my windows
> > partition. The problem is that I cannot see a drive unit assigned to the
> > Linux partition from Windows. Windows thinks that all the space in the
> > hard drive is available to it, but this is not true.
> >
>
> I think it may think that the whole thing should be a fat partition. You may
> have to either shrink it with parted or reformat if that's the case. You
> can try and salvage as much as possible from your linux partition but
> you'll probably have to reformat that too.

If the disk was defraged first before changing the partitions and
windows hasn't been writing to the disk the linux partition may be fine.
The fdisk man page has a warning that MS format doesn't get its size
from the partition table unless the first sector of the partition is
zeroed. I've never used parted, so I don't know if it modifies the FAT.

Assuming you've made a backup of your windows partition:

>From linux

dd if=/dev/zero of=/dev/hda1 bs=512 count=1

fsck /dev/hda5

If you have more than a small number of errors you might want to
reinstall linux to be safe.

>From 98

format c: /s

then restore your backup.

You'll need to use a rescue disk or boot floppy to start linux and
reinstall grub/lilo.

Michael C.

-- 
mcsuper5@usol.com http://mcsuper5.freeshell.org/
Registered Linux User #303915 http://counter.li.org/


Relevant Pages

  • Re: xp on intel Mac from usb stick?
    ... Would it be possible to run windows xp native from a usb stick? ... A custom slipstreamed CD is required to install XP on a Mac. ... partition managers but if you're feeling adventurous you may ... This procedure WILL WIPE YOUR iMAC DISK CLEAN. ...
    (comp.sys.mac.apps)
  • Re: Cloning a disk using dd
    ... It seems to have cloned the MBR correctly and the partition layout ... inaccessible boot disk error. ... The drives have to be almost identical to work, ... especially with Windows in the mix. ...
    (comp.os.linux.misc)
  • Re: Move space from one partition to another
    ... Which partition contains Windows XP Pro? ... To increase you free space on your Windows XP partition select Start, ... Programs, Accessories, System Tools, Disk CleanUp, More Options, System ... Create a My Documents folder in another partition and copy the ...
    (microsoft.public.windowsxp.general)
  • Re: New HDD Installation
    ... Right clicking on the partition or using the | Action> All Tasks menu at the top of the console should show the option, either greyed out or usable to make the partition active. ... Do the fixboot and fixmbr things in the Recovery Console then see if things change. ... There are other ways to mark the partition active, either with a Windows 98 startup disk or using the DISKPART command while in Windows XP. ...
    (microsoft.public.windowsxp.general)
  • Re: New HDD Installation
    ... DISKPART> list disk ... DISKPART> select partition 1 ... You can do the same thing starting with the "list volume" instead of the "list disk" command, then selecting volumes to gain focus. ... At this point I haste to point out that this is mostly for educational purposes and for you to gain an inner working knowledge of disks and partitions and how Windows works with them. ...
    (microsoft.public.windowsxp.general)