LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-21-2015, 06:57 AM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
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?
 
Old 02-21-2015, 08:01 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can use raid mirroring on using two partitions on same hard disk.

Read raid howto on http://www.tldp.org
 
Old 02-21-2015, 10:28 AM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Two partitions on the same HDD with the same data will not make recovery any easier. If you want to use RAID1, you need 2 HDDs.
 
Old 02-21-2015, 02:28 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
Old 02-21-2015, 02:39 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
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.
 
Old 02-23-2015, 04:16 AM   #6
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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.

Play Bonny!

 
Old 02-26-2015, 07:13 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by General View Post
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.
 
Old 02-26-2015, 10:14 AM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimum downtime way to switch server data from bad hard drive to new hard drive? postcd Linux - Hardware 1 05-18-2014 11:27 AM
[SOLVED] transfer data from a SATA external hard drive to a IDE internal hard drive Cabtech Linux - Newbie 7 04-22-2012 02:55 PM
Formatting A Hard Drive Free From Data And Partitions, Fresh Start, How Is It Done? Novatian Linux - Hardware 5 05-11-2008 10:15 PM
Duplicate Hard drive 19 times? luminousnerd Linux - Software 1 08-13-2005 06:57 PM
How to duplicate a Redhat Linux 9.0 Hard Drive garykuipers Red Hat 2 01-14-2004 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration