Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 3
    I know this is old, but will this keep the data if you delete the partition? Commented May 7, 2014 at 3:02
  • 6
    @CanadianLuke, yes, deleting the partition in fdisk only modifies the partition table. If you recreate it the same size, there will be no change at all. The data is never altered unless you shrink a partition and create another logical or extended partition in the middle of what your partition used to be, in which case the partition record for that extended/logical partition will be written over some data there. Commented May 7, 2014 at 10:47
  • This also works great for ntfs partitions (with an existing volume, with data). Commented Aug 2, 2014 at 19:55
  • That sounds reasonable, but what if i have Extended, Linux LVM and Linux swap/Solaris partitions which starts on the end of Linux partition? Should I delete these partitions>? I am worried that in that case, filesystem won't start, becuase may be using Linux LVM for example in same start and end. And i don't want to loose data too. Commented Sep 21, 2018 at 10:40
  • @cyan resizing a LVM logical volume with a ext4 FS on it, or resizing a partition used as a physical volume for LVM would be different questions with different procedures. Commented Sep 21, 2018 at 10:48