bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fatal: Out of memory


From: Andrew Clausen
Subject: Re: Fatal: Out of memory
Date: Sun, 15 Apr 2001 19:57:49 +1000

Evin Robertson wrote:
> Hrm, I'm thinking that even if I could get enough memory/swap
> available for parted, then windows itself might have problems dealing
> with so many clusters.

Yes, it does have problems... that said, I don't know which
versions have problems, and what size it starts to be a
problem, etc.

> When I had a partition mounted on the same disk as I was doing the
> resizing, parted warned that the kernel was unable to reread the
> partition table, and further parteding did bad things.

Hmmm, further parteding is ok.  Perhaps I should say this...

> >> Alternatively, is there another way to do the equivalent of "sys c:"
> >> from linux?  That's the only real point of using the small fat32
> >> partition I made.
>
> Are the locations of the fat32 boot sectors easy to calculate?  Could
> I dd them, copy io.sys, and expect things to work?
> 
> Is it as simple as copying from and to /dev/hda1
> bytes hidden*sector_size to (hidden+3)*sector_size ?

Oops, you're right (almost).  /me wonders what he was thinking.

Just, there's important metadata that you'd be overwriting, so
it's quite a bit more tricky than that.  Still dd'able,
though ;-)

Anyway, if my calculations are correct (unverified):

        # dd if=/dev/hda1 of=fat32-start bs=512 count=4
        # dd if=fat32-start of=/dev/hda1 bs=1 count=3
        # dd if=fat32-start of=/dev/hda1 bs=1 skip=$[0x5a] seek=$[0x5a] 
count=$[420 + 3 * 512]

Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]