Getting two USB drives - Question

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
midnightwatcher
Posts: 54
Joined: Mon Dec 26, 2016 7:54 am

Getting two USB drives - Question

Post by midnightwatcher »

I'll be receiving 2 x 8TB USB drives soon and will be attaching them both to an Odroid C2. How can I set up DietPi to use one drive to mirror/backup the other?
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Getting two USB drives - Question

Post by Fourdee »

midnightwatcher wrote:I'll be receiving 2 x 8TB USB drives soon and will be attaching them both to an Odroid C2. How can I set up DietPi to use one drive to mirror/backup the other?
Use dietpi-drive_manager to add the drives and assign perm UUID mounting.

DietPi-Sync is one option, good for daily backups, front end for rsync:
http://dietpi.com/phpbb/viewtopic.php?f ... rt=30#p256

If your master drive is /mnt/usb_1, you would setup

Code: Select all

/mnt/usb_1 = source
/mnt/usb_2 = target
Enable delete mode if you want a exact mirror of the master drive.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Gigabit
Posts: 27
Joined: Fri Dec 23, 2016 6:28 pm

Re: Getting two USB drives - Question

Post by Gigabit »

midnightwatcher wrote:I'll be receiving 2 x 8TB USB drives soon and will be attaching them both to an Odroid C2. How can I set up DietPi to use one drive to mirror/backup the other?
I would recommend not using mirror set up as it only protects you against drive failure. It does not protect you against data corruption due to hardware, software or any other catastrophic failure. Given your set up you could try the following approach.

UrBackup Server and client on the primary hard drive. With everything transferred from the SD to the hard drive except the boot loader. Then having UrBackup Server store incremental backups on the second hard drive. Restores would have to be performed off-line as operation.

In truth though it would be best to have a second device dedicated to UrBackup Server with the second hard drive. That way your backups are totally isolated from the primary server except by network connection.
midnightwatcher
Posts: 54
Joined: Mon Dec 26, 2016 7:54 am

Re: Getting two USB drives - Question

Post by midnightwatcher »

Thank you gentlemen, great suggestions. Once they arrive I'll test this out.
midnightwatcher
Posts: 54
Joined: Mon Dec 26, 2016 7:54 am

Re: Getting two USB drives - Question

Post by midnightwatcher »

Hi Fourdee, I have the first 8TB drive attached and loaded up with all my movies, but when I go into DietPi-Drive Manager is sees the drive on /mnt/usb_1 but says "No filesystem / format required". It's already formatted to ext4. Selecting Refresh to scan for recently added drives does nothing. How can I get it to recognize the drive?
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Getting two USB drives - Question

Post by Fourdee »

midnightwatcher wrote:Hi Fourdee, I have the first 8TB drive attached and loaded up with all my movies, but when I go into DietPi-Drive Manager is sees the drive on /mnt/usb_1 but says "No filesystem / format required". It's already formatted to ext4. Selecting Refresh to scan for recently added drives does nothing. How can I get it to recognize the drive?
Its possible the drive has multiple partitions, with the 1st being unreadable/unknown. DietPi-Drive_Manager only checks the 1st partition and assumes you want to use the whole drive capacity.

Lets check that, please paste results:

Code: Select all

blkid | grep sda
If it has multiple partitions, you'll need to remove the 1st partition manually, or, do a format on the drive in dietpi-drive_manager (backup your data 1st).

If not, we'll need to do some investigating and debug.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
midnightwatcher
Posts: 54
Joined: Mon Dec 26, 2016 7:54 am

Re: Getting two USB drives - Question

Post by midnightwatcher »

Got this result. Maybe the "Microsoft reserved partition" is what's causing the problem?

Code: Select all

/dev/sda2: LABEL="KODI Media" UUID="0dca34ad-abdc-40cc-9378-xxxxxxxxxxx" TYPE="ext4" PARTLABEL="KODI 8GB" PARTUUID="d41d2c6f-6cdf-48g2-910c-xxxxxxxxxxxx"
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="fe2323223-413b-420f-9e72-xxxxxxxxxxx"
Last edited by midnightwatcher on Sun May 21, 2017 5:23 am, edited 1 time in total.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Getting two USB drives - Question

Post by Fourdee »

midnightwatcher wrote:Got this result. Maybe the "Microsoft reserved partition" is what's causing the problem?
Yep, that will be it :)

Although, if this drive will be dedicated to this device, you can format in dietpi-drive_manager, it will remove both those partitions and create one in their place (which DietPi will work with).
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply