Hi Gurus!
I've been given a Netgear SC101 which I'm intending to use for backups.
I found a post somewhere about how to mount it, and I have mounted it,
or at least I thought I had until I rebooted and it was no-longer mounted.
The steps I have to take are:
sudo modprobe nbd
sudo ut listall
sudo ut attach {DRIVE_ID_FROM_LISTALL} /dev/nbd0
sudo mount -t ext4 /mnt/sc101 /dev/nbd0
Line 1 adds a device driver to the kernel
line 2 finds the drive's "id". You only need to run this once - the ID
doesn't change
line 3 "attaches" the drive to the system.
line 4 mounts the block device at my chosen mount point.
I've added a line to FSTab to take care of line 4, but the problem is, I
seem to need to do line 1 and line 3 after a reboot before I can mount it.
Q1: How can I make a modprobe "stick" to survive a reboot?
Q2: Where should I execute line 3?
Q3: Should I should manually mount there too, rather than using FSTab?
I'm attempting to use BackupPC to backup my files. This runs as a
service, and requires that drive to be running to start.
Q4: Is there a way to conditionally start a service, dependant on
whether the drive is present or not, or should I just let it attempt to
auto-start and live with it failing if the drive's not there?
Any help much appreciated!
BTW, the reason I'm attempting to use BackupPC is because it "folds"
identical files from multiple PCs into 1, i.e. it doesn't store multiple
copies - i.e. it de-duplicates the backup, hopefully allowing me to
backup multiple machines without buying loads of disks!
Cheers
Steve