bad sector wrote:
>
> Thank you both Paul & Char, I'll answer you this way for now.
>
> Since I posted I resized the partition to 45gb with linux fdisk. It
> boots fine but as far as w7 thinks its still on 30gb though disk manager
> does show it as 45gb. There's no expand option that I can find so I
> tried tricking it to reduce from 45gb by 1mb ..that didn't work.
>
> I don't know Windows-7 at all, I've had it installed for a year for
> someone else and am for my own limited needs upgrading to XP but need
> this Windows-7 running and with service packs applied if possible.
>
> The size shortage came up when I tried to apply service pack 1, as I
> said, which was the reason to increase to 30gb which still ended up
> short with a message along the lines of "you need 9gb".
>
> There's no separate boot partition, it's all on primary #2. Primary #1
> is 4gb and has XP on it very comfortably (when I want XP on there).
>
> #2 is now 45gb so I either find a clean and bulletproof way to expand
> the filesystem to parttition size or reinstall.
>
So I think what you're telling me, is you've modified the MBR parameters,
to show a larger partition. Sorta like this picture. The thing is, doing this,
doesn't cause the NTFS file system to expand to fill the space. It's
like a sausage skin, without enough meat in it. Logically, the
parameters maintained by the file system, still say "30GB".
+-----+------------------+--------------+
| MBR | 30GB formatting 15GB "space" |
| | added on end |
+-----+---------------------------------+
I would:
1) Go back to fdisk, and undo the change. Put back the exact original
value (you wrote it down, right ?). If you don't know what that
value is, then using package manager, get a copy of TestDisk, have
it scan and recompute the correct value. Not all distros, have TestDisk
built-in, in which case you'll have to install it. Get it to write
out a new MBR (and pray you did it right). If you wrote down the original
value, then fdisk is sufficient.
2) Boot Windows 7 and go to Disk Management.
You can try typing diskmgmt.msc in the Start thing, as
a command to get Disk Management running. I start Disk Management
in three different OSes that way (win2K, winxp, win7). If it gives
you a hard time, right click after the search finds it, and do
"Run as Administrator".
3) Once in Disk Management, increase the size of C: as you see fit. You'd
want something like this, just before expanding in Disk Management.
Now that your MBR is fixed, this is how it should look.
+-----+------------------+--------------+
| MBR | 30GB formatted | unallocated |
| | | |
+-----+------------------+--------------+
In this picture, you can see the Disk Management offers "Extend Volume"
and "Shrink Volume". What that *should* do, is properly expand the
file system. It'll change the MBR for you, and it will also logically
expand the formatting of the file system within the newly sized space.
http://www.techfuels.com/attachments...-7-vista-2.jpg
If you were a Linux buff, you could also use GParted to attempt
something like this, but I don't know how safe that is with a
Windows 7 volume. My batting average screwing around with
Win7 C: isn't too good so far. I advise a conservative
approach, such as "backing up before doing brain surgery".
I've already bailed out of one mess, by using my backup made
moments before (lucky, really). If you can get the Disk Management
function to work, it's bound to be safer than GParted.
Paul