Friday, February 20, 2009

Linkstation Redux

When I switched from Knoppmyth to Mythbuntu, one of the casualties was that my awesome Linkstation NAS stopped working. Specifically, mythbuntu wouldn't mount it. After some googling and experimenting, I arrived at a solution. On Ubuntu, you have to use the "Samba" format for specifying the server name. i.e., instead of 192.168.1.127:/share, you have to use //192.168.1.127/share. Note that this doesn't imply that you use smbfs for the filesystem type; it's still cifs. I don't claim to understand these things, dear reader...


So, now a command like this mounts my NAS:

mount -t cifs -o user=admin //192.168.1.127/share /mnt/netdisk


And the /etc/fstab to auto-mount the disk on boot looks like:
//192.168.1.127/share /mnt/netdisk cifs user=admin,rw,defaults 0 0


The big mystery in this change is that specifying credentials=/root/.creds instead of user=admin doesn't work! So why is my Linkstation mounting without a password? Who knows. Luckily, I don't care that much (sorry crypto-geeks!)

No comments:

Post a Comment