HowTo: Use WD myBook external Drive with Raspberry Pi

If you want to mount your WD MyBook HDD (external Drive) with the Raspberry pi long term, you need to first install ntfs-3g. after than you need to create a folder to mount the drive … so Type:

sudo apt-get install ntfs-3g
sudo mkdir /media/myBook

ok 50% id already done. Next you have to check whats the name of the device. So Disconnect your drive. And call “ls /dev/”. Than connect the drive and again write “ls /dev/”. Compare both outputs. On the second call there should be apprear a device starting with “sd*”. My is called “sda” but “sdb” could also be possible. Now we will add a line to /etc/fstab to automatically mount this drive.

sudo nano /etc/fstab
add this line:
/dev/sda1 /media/myBook/      ntfs-3g default           0       0

By pressing ctrl+o you can save the file. And to leave nano press ctrl+x.
To refresh the system and mount the drive call:

sudo mount -a

now go to /media/myBook/ and check if it’s working 🙂

cd /media/myBook/

Another example for FAT32:

/dev/sda1 /media/myBook/ vfat defaults 0 2

Advertisements

Posted on January 5, 2014, in Uncategorized. Bookmark the permalink. 3 Comments.

  1. Doesn’t quite work right.
    If My book is connected at power on, the pi hangs with root user lockout. If My book is not attached at power on, the pi hangs waiting to mount it and won’t continue until I plug it into the usb port. That means that it can’t do an unattended reboot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: