lkml.org 
[lkml]   [2006]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: deleting partition does not effect superblock?
On Thu, 6 Apr 2006, Sumit Narayan wrote:

> On my system, I first created a partition with EXT3 and put some data
> on it. Later, I deleted the partition, and re-created another
> partition with the same starting block number and a higher ending
> block number. I intended to format it with another filesystem, but
> surprisingly (or maybe just to me), the superblock of the partition
> had not changed. I could still mount the new partition as the same old
> filesystem. I could see all the files which was present earlier. Doing
> 'df' showed me the older partition details (size, % used etc.).
>
> Shouldn't the superblock be changed/deleted once the partition is
> deleted? I tried a reboot, but the output remained the same.

This is the expected behavior. A filesystem is created within the
partition. If you grow the partition, the filesystem doesn't
automatically grow (use resize2fs for that). In fact, you should
probably read the resize2fs manpage, as it might give you some starting
clue of what's going on.

Damian Menscher
--
-=#| <menscher@uiuc.edu> www.uiuc.edu/~menscher/ Ofc:(650)253-2757 |#=-
-=#| The above opinions are not necessarily those of my employers. |#=-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-06 09:36    [W:0.464 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site