rookie65
Posts: 1
Joined: Thu Apr 07, 2016 7:26 am

Mount 2 USB drives at boot & power saving.

Thu Apr 07, 2016 8:36 am

I have followed this guide
http://elinux.org/R-Pi_NAS
I have used 2 identical 2 T USB drives. They are in powered enclosures.
I did this sudo mkdir /home/shares/public/disk1, followed by sudo mkdir /home/shares/public/disk2
then sudo mount /dev/sda1 /home/shares/public/disk1, followed by sudo mount /dev/sdb1 /home/shares/public/disk2
This works fine but sometimes after a reboot, disk 1 will be mounted here /home/shares/public/disk2 and vice versa
How do I force them to mount in the correct place?

Also how do I get them to power/spin down to save power/wear when they are not being accessed?
Thanks

Aydan
Posts: 727
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: Mount 2 USB drives at boot & power saving.

Thu Apr 07, 2016 8:46 am

Mount via UUID in fstab

Regards
Aydan

mutley
Posts: 61
Joined: Sat Jan 02, 2016 8:06 pm

Re: Mount 2 USB drives at boot & power saving.

Thu Apr 07, 2016 1:39 pm

Above answered the mount problem.

look at hdparm and smartctl to control the spindown, but most USB controllers do not support these commands / will not pass them to the native IDE / ATA / SATA disk. So even if the disk itself does support the functionality you may not be able to pass it the command.

Return to “General discussion”