If i deleted a partition using fdisk , will that delete the data on this partition?
If i deleted a partition using fdisk , will that delete the data on this partition?
I want to use this in order to increase the partition size (after i increased the file system size). |
Hi, the real answer is no, but you won't be able to access it directly.
The file table will be gone, so the files will have no-names and just be data. <edit>Looks like gparted copes well with the job, post #4 by syg00 and post #5 by exvor, thank you </edit> gparted There are programs that can recover data from a partition, like testdisk and photorec, http://www.cgsecurity.org/wiki/TestDisk http://www.cgsecurity.org/wiki/PhotoRec dd_rhelp and dd-rescue http://freshmeat.net/projects/dd_rhelp/ http://www.garloff.de/kurt/linux/ddrescue/ The best option for you would be to backup the data first, then resize the partition, format it, reboot, and finally copy the data back. You might want to use "rsync" to backup and restore the files, it saves file-permisions Cheers, Glenn |
Quote:
U should use lvm partitioning ,using which u can resize ur partition size(increase or decrease) without affecting the data . |
Quote:
Quote:
Generally you'd be better to use gparted to do the whole lot - a GUI like partition magic. |
gparted will also allow you to extend a existing file system and its a gui. Tho I would only try this on a ext2 or ext3 partition. Otherwise its perfectly safe.
|
Quote:
|
Caution: Playing with fire here. Much of this has not been thoroughly tested.
If I am not mistaken, creating, deleting, and re-sizing partitions only affects the partition tables**. For example, if you had a partition, formatted with a filesystem, and full of data, then you could delete it and create a new one with the same starting point and size, and everything would be intact. If you create a new partition with different parameters, the first thing that happens is that the filesystem structure is no longer correct----then, once you create a new filesystem, you have effectively de-referenced all of the data. Even then, some of it is still intact and can be recovered. The only way to be totally sure of all this is to run experiments on a system with no irreplaceable data. **In addition to the primary partition table (4 entries), each logical partition has a 2-entry table as part of the "linked-list" structure when using extended/logical partitions. |
I have deleted a partition that I didn't want anymore (& therefore its data).
& then resized the required partition up a bit in size. Takes a while, on a slow processor, but works ok with Gparted, for all of those functions. |
Quote:
|
All times are GMT -5. The time now is 11:36 PM. |