Find news and information about the latest advances in technology, news and multimedia on the Internet, telecommunications, wireless devices & applications, electronics, smartphones, tablets, ultrabooks, computers, e-mail and the Web.

This article is a follow-up to help you expand the capacity of  your RasPi. Now, its time to add an external storage to the Pi – in this tutorial we will be adding an removable 500 GB USB harddisk drive to our mini-computer and share it over network for wireless access using Samba server.

RPI and external HDD

Installing and configuring an external disk drive on Raspberry Pi :

    1. While we can use a variety of file-systems on linux like FAT, FAT32 and NTFS. The best option is to use EXT4 for your disk-driver, to format it to EXT4 file-system using a windows computer we can use excellent, free utility MiniTool Partition Wizard.
    2. Once formatted properly, attach your disk drive to RasPi and boot it, make sure you connect the hard-disk via an externally powered USB hub, as RaspberryPi is not capable of handling too many USB powered devices reliably.
    3. To check whether our disk drive is detected by the operating-system, use the sudo fdisk -l command at the terminal and it should list our drive.
fdisk raspi
    1. Now, we will need to manually mount the disk-drive and configure it to load on every boot.
    2. Create an folder inside our disk so we can mount it. Use sudo mkdir -p /media/ExternalHd and sudo chmod 755 /media/ExternalHd to get this done.
Mount Disk
    1. Use sudo blkid command and copy the UUID of the newly added disk, in my case this would be the /dev/sda1: LABEL=”NAS” UUID=”f477a7f6-67a5-cd01-2027-a4f667a5cd01″ TYPE=”ext4″ entry as shown below.
    1. Now, edit the fstab file using sudo nano /etc/fstab and add the UUID and other relevant details as shown below.
fstab editing
    1. Save the fstab file and exit nano, use sudo mount -a to mount the disk.
mounting disk
  1. The disk will now automount on every boot.

Sharing the Raspberry Pi storage over WiFi network using Smaba to create an wireless fileserver (NAS Storage) for cheap :

    1. We will now need to install samaba server on RasPi to make an networked fileserver, use sudo apt-get install samba followed by sudo apt-get install samba-common-bin to do that.
    2. Now, edit the samba config file to enable sharing. use sudo nano /etc/samba/smb.confand add the following to share our newly added disk driver over network.
      comment = External USB Disk
      path = /media/ExternalHd
      writeable = Yes
      only guest = Yes
      create mask = 0777
      directory mask = 0777
      browseable = Yes
      public = yes
Samba share on RasPi
    1. Restart samba server to make changes take effect.
samaba service
    1. Now you can access this samba share over the network. Just access //YourPiLanIP/. You can also add this add as an network share for access like any other regular partition.
Raspberry Pi over wifi network

Comments on: "Attach and configure an external hard-disk on the Raspberry Pi computer" (4)

  1. Nice site over here! I’ll just wanna thank you for that. If you like to visit my website check it out! thanks for visiting!

  2. this is very nice one and gives in depth information. i think it will be helpful. thank you very much for that extraordinarily first class editorial! keep up the good work. lista de email lista de email lista de email lista de email lista de email

  3. this article certainly will help me to start up my own blog. lista de emails lista de emails lista de emails lista de emails lista de emails

  4. nice site you got here! very informative. highly recommended! lista de email lista de email lista de email lista de email lista de email

Leave a Reply

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

You are commenting using your 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

Tag Cloud

%d bloggers like this: