On 13 Feb 2003, Jeremy Jackson wrote:
> I have this problem too. Please let me know where I can get the
> patch, etc.
>
> On Mon, 2003-02-10 at 09:00, Nirranjan.K wrote:
> > Please send me the patch.
Would you please compose emails according to Email Etiquette? I
understand, the way you do this is comfortable but it's not for the
majority of the people who read it. In more details please see here:
http://www.infradead.org/~dwmw2/email.html#top-posting
http://www.infradead.org/~dwmw2/email.html#quote-selectively
> > > > I have a ntfs partition of 10GB. I defragmented it
> > > > and made sure that last 1 GB of the partition is of
> > > > free space (without any files). When i tried
> > > >
> > > > ntfsresize -i /dev/hda1
> > > >
> > > > it says only 132 MB can be claimed and not 1 GB.
> > >
> > > The defragmenter lied or can't/don't handle
> > > filesystem metadata. If you're interested I can send you a
> > > patch I have that tells who exactly use that space.
Download, gunzip this:
http://mlf.linux.rulez.org/mlf/ezaz/ntfsmeta.gz
Then run this
http://mlf.linux.rulez.org/mlf/ezaz/ntfslastclust.sh
like 'ntfslastclust.sh device'. It will print the inode and filename
of the last used cluster preventing ntfsresize to gain more free
space. If the file isn't unambiguous, mount the ntfs partition and run
'find -inum <INODE>' got by ntfslastclust.sh.
If it's not system or metadata (e.g. starting with $ or ".") then you
can copy + delete (don't move) it on Windows, with luck you can gain
more free space. You could also repeate the above or write a script
based on the above utils to get a list of files needed to be moved
around until ntfsresize supports relocating them.
Szaka
|