Re: Fun with Partition Tables and Zero's!!!

From: Eric Moors (scare.crow_at_oz.land)
Date: 07/15/03


Date: Tue, 15 Jul 2003 10:33:59 +0200


>> <linux/windows trouble>
>>
>> How did you repartition?
>> What steps did you take(starting from an empty disk)?
>
> I didn't really care about what was on the disk, so I just ended up
> putting Linux first, its swap after that, then last Windows, which would
> throw a fit and its fdisk was totally unusable at this point. I tried
> about any way you can think of: win 1st, linux 2nd, primary part's,
> logical part.s', any config at all. Really, I spent a good 6-7 hours
> just trying to get both of these guys to fit on one disk together. I've
> done win machines before, NT's, Macs, but Liux part is new, although I
> did my homework on how it sees HD's. On my sys, it is /dev/hde- new,

Okay, then it's on a external (PCI) IDE controller.

> clean. That I broke down (on one of many attempted config.'s) to
> /dev/hde1 : windows, so it wouldn't freak, then /dev/hde5 : Linux
> primary, /dev/hde6 : linux's swap. fdisk labeled these like this, and if
> you tried to write any other partition than /dev/hde (notice- no number

You shouldn't write a table to any partition directly.
The partition chain starts from the MBR.

> after /hde) it would say it was writing and updating the table, but it

Yes it did. If it writes it writes.

> never actually did it. There is a program called cfdisk which comes with
> this Linux too, it can cfdisk -P{r} /dev/hde, to show you the raw output
> of the partition table, and that was how I figured out that it had gone
> really wrong, as it had blanked over certain markers with zero's. A
> partition table has special markers in it that must be there for
> windows/dos to even think about looking at it (from my assembler
> programming days). Linux's fdisk isn't as picky, and if I didn't have
> this, I would be setting with a useless HD right now, (unless there's
> another fdisk that can do the same as Linux's).

Only the partitiontable endmarker 55AA is important

>> ###################################################################
>> if your windows is an OEM version, it may ignore the partitiontable
>> completely and occupy the entire disk. If so, use a FAT FS for windows
>> and use parted (or Partition Magic if you have it) to resize the
>> partition and the filesystem.
>>
> Who knows what's in this box? I got it second hand (really, a good deal,
> because it was ahead of its time before, now just average) and have
> since replaced some stuff inside, and I've found a new case for it
> that'll let me fit my CD-RW in it (it kinda hangs out right now- had to
> do some plastic surgery to get it to fit) If you haven't guess yet,
> computers are mostly just fun and a hobby for me, I like to take them
> apart and fix them up, install new OS's and programs...so it's really no
> big loss if I spend a while trying to get Linux to run.
>

You did reinstall windows right?
Did it ignore the partitiontable?
If so, you will have to install windows first, shrink the partition and
afterwards install linux.

Go read a good intro on installing linux first. www.tldp.org should
get you started :-)

Eric



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: 2 versions of win2000 on disk
    ... I have windows200 and winnt on disk, ... either boot the Windows 2000 install CD-Rom or setup ... existing partition, If you press D to delete an existing partition, you must ...
    (microsoft.public.win2000.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)