I have heard if you don't make partitions in linux, it is so hard to recover the data. And if you make few partitions it would be easy to recover the data.for example if you make /par1 /part2 /part3 it is better for recovery.But now some of my friends tell me that /home/user/{all data here} has no difference with making /par1 /part2 /part3 concerning recovery.Which one is true, and why?
Why creating partitions in linux is a good solution for easy recovery?
linux;partition;hard disk;data recovery;ext4
To illustrate the question in a simple and efficient manner, consider two scenarios:You install your favourite linux distribution on entire disk i.e. without any partitions:Suppose your system is crashed because operating system is unable to access some sectors and unable to boot. You lost some chunk of data due to bad sectors and because of that you might be unable to access other chunks of data in your hard disk. Bottom line is that some bad sector is affecting your entire data. So recovery here is probably hard than if you were to use multiple partitions for different category of data.You install your favourite linux distribution by partitioning the hard disk:If you partition your hard disk say sda1 for boot, sda2 for root, sda3 for opt, sda4 for usr, sda5 for home and so on, now if some kind of crashing or bad sector problem occurs then there is a greater probability than the previous scenario that you might save/recover your other partitions. It is also useful in cases like, for example say that i have crashed my system (consider it an os problem) and system does not boot, i could reinstall my system without touching my home partition so, partition home is isolated and safe. Other benefits are as follows:less amount of time in file system check.freedom to choose different file systems.protection of file systems.ease in repairing file systems by pin pointing to the problematic file system.And of course there are benefits of Logical Volume Management(LVM), it starts with a single volume group and subsequently creating multiple logical volumes to hold the necessary file systems. I personally don't use LVM, so for more you can visit Wikipedia and Gentoo