My first though
about how to use the Raspberry Pi has been to set-up a always-on,
low-power, home-server. There
are not many services that could be really useful
at home but, among them, a DLNA compatible server
is the one that more interested me.
Mounting the USB
drive
In order to be a useful
server, especially a media server, the Raspberry first needed some
bigger disk than the system 8 GB micro SD. I so selected as main
storage for Raspberry a old 3.5” IDE USB drive. No problems from
the electrical power side since the drive it's externally powered.
Mounting a USB drive on
the Raspberry is just a basic exercise of CLI Linux: after getting
the device name with the lsusb command the disk can be mounted
with a simple command:
sudo mkdir /media/usbdisk
sudo mount /dev/sda /media/usbdisk
the mount command
automatically recognized the XFS file system the disk was formatted
with (I used it, before, attached to the NAS). In order to make the
disk permanently mounted I added the following line to the /etc/fstab
file
/dev/sda1 /media/usbdisk xfs rw,defaults 0 0
