I am also assuming that your USB hard-drive is /dev/sda1 when connected to your Raspberry pi.
In order to make a partition accessible to the file system, you need to use the Linux "mount" command, referencing the hardware (e.g., /dev/sda1) and a "mount point" in the file system, which is any empty directory, usually created for the purpose by the user. There is a canonical (i.e., standard) directory path where mount points are usually created: the /mnt directory. You can create a new directory under /mnt for each partition to be mounted, and it can be named anything you want as long as it doesn't contain any spaces. You might want to name it to correspond to the drive's physical characteristics, e.g., /mnt/sda1, or /mnt/120GB_USB_hard_disk.
Connect to device, once connected, to find devices attached type
(This Lists HDD devices connected the system)
My output is
----
Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 32 sectors/track, 121280 cylinders
Units = cylinders of 128 * 512 = 65536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ee283
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 17 1216 76800 c W95 FAT32 (LBA)
/dev/mmcblk0p2 1233 26672 1628160 83 Linux
/dev/mmcblk0p3 26689 29744 195584 82 Linux swap / Solaris
/dev/mmcblk0p4 29745 121280 5858304 b W95 FAT32
(Will mount the filesystem on /dev/sda1 which will be a USB drive)
replace sda1 with your device
replace <<name of directory>> with your directory (with no <<>>)
Ideally you want the raspberry pi to start mounted every time you start the system.
replace sda1 with your device
replace <<name of directory>> with your directory (with no <<>>)
What do you need Part B?
All above
To install Owncloud
http://wwww.owncloud.org - Store your files, folders, contacts, photo galleries, calendars and more on a server of your choosing. Access that folder from your mobile device, your desktop, or a web browser. Sync Your Data, Keep your files, contacts, photo galleries, calendars and more synchronized amongst your devices. One folder, two folders and more – Share Your Data, Share your data with others, and give them access to your latest photo galleries, your calendar, your music, or anything else you want them to see. Share it publicly, or privately. It is your data, do what you want with it.
At time of this writing, the current version is v4, but this will not yet work with the debian OS for raspberry pi. But you can run the full V3 version.
Once you have restarted you can use a web browser and go to the ipaddress of your raspberry pi
You will be asked to create admin user:
Below you will see Advanced, click that and change location to
<</path/to/your/owncloud/install/data>>
eg:
/mnt/sda1/owncloud/
And that is it you have your own personal cloud storage. Which you can get sync clients for most OS's and mobile platforms..
Comments (0)