Main Categories: | Landscape | Fenceposts | Wildlife | Trees | Mushrooms | Art | Games || All Posts ||
for daily images, visit my ||Tumblr||

Tuesday, 27 March 2012

MyBook access from Linux

I just spent most of an evening trying to access my Western Digital MyBook Live net drive from a machine running Debian Linux. Got there eventually, so if I write out the steps that worked, it might save someone a few headaches:

You will need to apt-get install nfs-common and portmap - this is the networking file system drivers - you may well have them already. So, as root:

apt-get install nfs-common portmap

Then, still as a super user run:

showmount -e the ip address of your MyBook)

This should return a couple of lines of text something like this:

Export list for
/nfs *

The first term on the second line is telling you the mount point you need to access to get at the files on the netdrive, so next - still as root - type:
mount (ipAddr):(2nd line of showmount response) (your chosen mount point)
mount /mnt/mybook

Now you should be able to access the public folders on the network drive by navigating to /mnt/mybook in the file manager, terminal, etc.

If this worked, you can then mount the net drive at startup by editing the file /etc/fstab (need to be super user to do this)
add a line like the following:
(ip-addr):(2nd line of showmount response) (your chosen mount point) nfs defaults 0 0
eg: /mnt/mybook nfs defaults 0 0

And that should be you done! I need to figure out how to access the private shares next, but that is for another day... :-P


JustMe said...
This comment has been removed by the author.
JustMe said...

You put this post up over a year ago and wanted to say thanks.
One item that you forgot to mention is that you need to create the folder mybook in the /mnt directory

mcswt1 said...

Thanks for the concice excellent instructions! Worked like a charm!