On Thu, 2006-04-06 14:37:33 +0800, Sumit Narayan <[email protected]> wrote: > Shouldn't the superblock be changed/deleted once the partition is > deleted? I tried a reboot, but the output remained the same. No, everything you see is "works as expected." A partition is only a container (as well as "disks", "volume groups", "RAID arrays", "logical volumes", "image files" etc. are.) Whenever you destroy such a container, its contents isn't modified (or deleted) or otherwise modified. So it's perfectly okay to delete such a container (eg. remove start and end from the partition table) and recreate it at some time later (by adding those values back to the partition table.) As long as the new container starts at the same location, a filesystem driver will be able to find the old information. If you start a block later, it won't find it's superblocks. Finally, you have several choices how to defeat getting back old data. Most probably, you'd just zero it out before deleting the partition with something like: # cat /dev/zero > /dev/hda3 (of course with the correct device name!) MfG, JBG -- Jan-Benedict Glaw [email protected] . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Attachment:
signature.asc
Description: Digital signature
- Follow-Ups:
- Re: deleting partition does not effect superblock?
- From: Jan Engelhardt <[email protected]>
- Re: deleting partition does not effect superblock?
- References:
- deleting partition does not effect superblock?
- From: "Sumit Narayan" <[email protected]>
- deleting partition does not effect superblock?
- Prev by Date: Re: [OOPS] related to swap?
- Next by Date: Re: [patch 1/3] mm: An enhancement of OVERCOMMIT_GUESS
- Previous by thread: deleting partition does not effect superblock?
- Next by thread: Re: deleting partition does not effect superblock?
- Index(es):