WarheadsSE wrote:Dumb ? What is the FS on this hard drive it can't use?
NTFS. Thanks for the hint, I finally got this all sorted out without any undesirable side effects.
SAB apparently doesn't like the mount parameters used by udev-automount so I removed it and set up my own. Here are the steps I took:
Remove automount:
- Code: Select all
pacman -R udev-automount
Unmount the NTFS partition you want SAB to save to.
- Code: Select all
umount /media/{Your mount point}
Find the UUID of said partition.
- Code: Select all
blkid
Output should look something like this. The partition we're looking for is the one with TYPE="ntfs"
- Code: Select all
[root@alarm ~]# blkid
/dev/sda1: UUID="7a18d305-a9c3-4c6d-98c4-cb3d45aa2037" TYPE="ext2"
/dev/sdb1: LABEL="DVR" UUID="01CD1614230ACDC0" TYPE="ntfs"
/dev/sdb2: UUID="a0ca2678-0808-487d-bccf-41245c68f2f3" TYPE="swap"
[root@alarm ~]#
Edit /etc/fstab and add the following line, making sure to replace the UUID with the one you found using blkid. Also make sure to keep an empty newline at the end of /etc/fstab or you'll get warning messages about it later.
- Code: Select all
UUID=01CD1614230ACDC0 /media/DVR ntfs-3g rw,umask=0000,defaults 0 0
Create your mount point if it doesn't already exist.
- Code: Select all
mkdir /media/DVR
And mount the partition.
- Code: Select all
mount /media/DVR
I also gave disk permissions to the user that SABnzbd runs under but this may or may not actually be necessary. If you do this, make sure the user is correct, as it can vary depending on how you installed SAB. It's easy to check by using the 'top' command while SAB is running.
- Code: Select all
usermod -a -G disk sabnzbd
At this point you should be good. Make sure to go back into SAB and change the folders, as it will have likely reset them to default when you unmounted the drive.
I also set up a script called 'attach' that I run manually when I connect the drive, which mounts the NTFS partition, restores my sabnzbd.ini from a backup file (to fix the folder settings,) and activates the swap partition that I've set up on the same drive. Eventually I'd like to be able to do this all automatically when the drive is connected, but I haven't figured out how to do that yet.
- Code: Select all
[root@alarm ~]# cat /usr/sbin/attach
#!/bin/bash
mount /media/DVR
cp /opt/sabnzbd/sabnzbd.ini.fix /opt/sabnzbd/sabnzbd.ini
swapon /dev/sdb2
free
[root@alarm ~]#