Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3399065
By: nobody
Greetings.
I'm trying to resize an NTFS partition, but when I do, I get conflicting reports
as to whether it worked or not.
I'm trying to resize an NTFS partition on a disk image. Not wanting to go through
the hastle (and possible technical difficulty) of using losetup and calculating
the offset of the partition, I simply booted into a guest Damn Small Linux 1.5
system under Qemu with my Windows XP (SP1, I think) disk image (windoze.img)
as hda using something like this:
qemu -hda windoze.img -cdrom dsl-1.5.iso -boot d
Once I got it booted all the way up, I installed GCC and then NTFSProgs 1.12.1.
(I had to add a symbolic link from /usr/local/lib/libntfs.so.8 to /lib/libntfs.so.8
to make it work. But I don't think that would cause a problem...)
Then, I did the following:
ntfsresize -i -d /dev/hda1
Which showed me that I could resize the NTFS partition (at that time about 11GB)
down to about 2.5GB.
I then used the following to make sure everything would go alright:
ntfresize -s 5000M -n -d /dev/hda1
It returned with an all systems go.
So, I then did this:
ntfsresize -s 5000M -d /dev/hda1
Which worked just fine. I then shut down and restarted Qemu this time booting
into Windows which happily performed its disk checking and booted. I checked
the properties on disk C: and found that indeed the partition was only 5GB in
size.
I then decided that it would be more fun to have a smaller partition yet, so
I restarted DSL and used the same method above (complete with the -i and -n
checks) to resize it to closer to 4GB.
Again, I booted into Windows which did its disk check and booted just fine,
and found that My Computer said that the disk was only 4GB (It said precisely
3.8GB with 1.71GB free.)
So, then, I decided to install ReactOS in the newly created space on the disk
image. I booted up the ReactOS installation iso in Qemu using this:
qemu -hda windoze.img -cdrom ReactOS.iso -boot d
However, when I got to the portion of the ReactOS install that asked where I
wanted to install ReactOS, it said that I had 1 partition 10590MB in size and
just over 8000KB of unpartitioned space.
Confused, I booted back into Windows which still insisted I had a single partition
of size 3.8GB.
I opened cmd in Windows and ran diskpart which said I had one hard drive that
was 10.3GB, one volume of size 10.3GB, and one partition of size 10.3GB
Even more confused, I rebooted Qemu into DSL again. I ran fdisk /dev/hda and
found one partition on the disk 10GB in size.
So, needless to say, I can't partition the 10.3-3.8=6.5GB "My Computer" insists
I have unpartitioned for ReactOS.
Perhaps I'm too new to partition/volume/disk image/formatting theory to be attempting
this and am incorrect in my assumptions?
Or is this some fluke of the system that's *not* my fault?
And, when you use ntfsresize to resize a partition, does it also resize the
volume containing that partition? (I had no idea there was a difference between
a partition and a volume until I delved into this project.)
Thanks very much for your help. I appreciate it.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=44085
|