Can duplicate partitions be created on one hard drive to keep data safer?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can duplicate partitions be created on one hard drive to keep data safer?
Some of my computers are becoming old and I am concerned the hard drives will eventually break. Due to the large file sizes, backing up takes a long time, so I only backup about twice per month, but am concerned I could lose lots of work between backups. Is it possible to create a duplicate partition, appearing on the same hard drive of a single computer, so any files placed on it are stored twice on the computer, such that if the hard drive breaks, recovery will be much easier?
Not really, if the hard drive breaks then assume the worst and you loose all of your data. As stated you need to use two separate drives but do not consider it as your only backup.
What / how are you using to backup your files? rysnc will backup only changes to files so using it my reduce the backup time.
I'll agree that one could raid or rsync or otherwise backup or duplicate a partition to a partition on a single drive. My guess would be that there is limited times for this to work. A better solution would be to spend your time on a better backup solution.
Some backup solutions only transfer the changed data. Not sure what data you have but a usb external is pretty cheap. Can set to run a backup everyday. Can use advanced file systems to for transparent backup and raid.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
Quote:
Is it possible to create a duplicate partition, appearing on the same hard drive of a single computer, so any files placed on it are stored twice on the computer, such that if the hard drive breaks, recovery will be much easier?
Your single point of failure is the drive, if it fails, (depending how) there's a high probability that you'll lose both partitions. Keep your second partition on a separate drive (mirror) for resilience.
Some of my computers are becoming old and I am concerned the hard drives will eventually break. Due to the large file sizes, backing up takes a long time, so I only backup about twice per month, but am concerned I could lose lots of work between backups. Is it possible to create a duplicate partition, appearing on the same hard drive of a single computer, so any files placed on it are stored twice on the computer, such that if the hard drive breaks, recovery will be much easier?
If you're concerned about the hard drive itself, then why are you asking to re-use that same "old" hard drive to store files twice. (I just wrote that fast and then it occurred to me that probably everyone who offered advice echoed that exact sentiment ... yep! )
Get a second hard drive, or an array storage solution.
I wondered if my situation merited an array storage, my current technique is that I use external 1-2 TB USB drives. Here actually is that thread. What I do is at some point I obtain a new drive and copy over all that I intend to keep. The former one stops getting used, but is still valid as of the point I swapped over. I end up doing this every few years. The things which I've had for years, like music files or important documentation, I now have several backups of and really it's my most newest stuff which may be at risk. Ultimately a RAID drive of some type is probably the best solution; however my method still works for me.
Can duplicate partitions be created on one hard drive
Yes
Quote:
to keep data safer?
Not really. You'd have two copies of it on the same drive drive. If the drive dies, both copies will die with it. The only thing it protects you from is a lost sector corrupting a file on one partition while leaving the copy on the other partition in-tact. However, since lost sectors generally are a precursor (usually with very little warning) to the entire drive dying, this doesn't help much.
Use an incremental backup solution (like rsync) and your backups should finish very quickly. The more often you run them, the quicker they'll finish. I back up a hair over 3 TB on my home server to external USB drives every night, the first backup took around 24 hours, but since then the backups only takes a few minutes.
Last edited by suicidaleggroll; 02-26-2015 at 10:19 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.