-
Notifications
You must be signed in to change notification settings - Fork 253
Using 2nd Harddrive
CLICKING the STAR in the UPPER RIGHT promotes our PROJECT on GITHUB! - WARNING, PLEASE VISIT https://plexguide.com/wikis/ - This is the old wiki!
Works, need cleaning up
Situation: Have a 250GB SSD and a second 2TB harddrive? The problem that you'll run into with PlexGuide is that all of your stuff downloading and uploading will target your PRIMARY DRIVE (in this example, the 250GB SSD). The following instructions will assist you in SETTING up your second harddrive.
To check, type df -h and if you notice your OTHER HD not there, you need to follow the steps below.
These notes are very loose, just added, please be patient
http://linux-sys-adm.com/how-to-add-second-hdd-additional-disk-drive-in-ubuntu-14-04-linux/
creating a file partition fdisk -l
Pay attention to the name of the new disk
type fdisk name-of-drive (mine was /dev/sdb)
m - print menu
if there is a valid partition, you can delete it with d
n - add new partition
p - to create a primary partition
1 - choose number of partition (pick only 1)
Press enter twice
press w to write to disk and exit
create a file system
mkfs.ext4 /dev/sdb -- keep pushing enter until done
now to add hhd so ubuntu can see it
mkdir /mnt/hd2/
type blkid
- look for the name of device you're loooking for, mine was /dev/sdb copy the uuid number
/dev/sdb: UUID="707cf076-5656-4b07-a062-989df6813fa3" TYPE="ext4"
type: nano /etc/fstab
Enter at the bottom of the file:
UUID="707cf076-5656-4b07-a062-989df6813fa3" /mnt2 ext4 defaults 0 0
(edit the UUID with the UUID of your harddrive you found earlier)
ctrl + x to save
type: sudo reboot
then
type: mount /mnt2
To ensure link the 2nd to back to the original
sudo rm -r /mnt/move
sudo mkdir /mnt2/move
sudo ln -s /mnt2/move /mnt/move
For hardmounting you can use this "small bash script", Please :!: do all this as root member , not as User.
Mount options can only change Root.
Step 1.)
apt-get install nano && cd && nano mount.sh
Step 2.) Only change this part = user-name:user-name to your user name
#!/bin/bash
##mount options
mount --bind /mnt2/move /mnt/move
chown -cR user-name:user-name /mnt/move
exit 0
and save STRG + X and Y
Step 3 .)
crontab -e
Step 4.) go to the end of the list ( press page-down )
@reboot bash /root/mount.sh >/dev/null 2>&1
if you follow this steps correctly , now the secondary HDD is hardmountet over "/mnt/move"
Troubleshooting :
Q1.) the secondary HDD is not mounten over /mnt/move
A1.) The biggest Problem is , you have to forgotten to change your Username, please check:
/// cat /root/mount.sh
see the line -->>
"" chown -cR user-name:user-name /mnt/move ""
Q2.) Who can i check it ?
A2.) you can check it so ->> ""df -h /mnt/move ""
Q3.) After reboot the script mounte the secondary HDD not correctly :!:
A§.) Please check this --
"crontab -e"
If you add the crotab as User you donˋt canˋt mount as User. The mount options are only for root.
Please checck this double.
Q4.) ..""..
If you need help go to this Thread ;
If you this like this ; Follow as 👍
Home - https://plexguide.com