Raspberry Pi Home Server - step 4 : Preparing the disk
Now that we have our ready to use system thanks to installation of Moebius, We can move on to the configuration of the hard disk and its partitions.
- As a first step it should be obviously connect our disk and connect it to the Pi Raspberry !
- Detect the name of the device with the command dmesg
- If we return to what has been defined in the post on the hardware, with the command fdisk Here's what it takes create :
- We are not going to touch the HFS partition (/dev/sda1) for the moment. We'll talk when Time Machine.Il setting must prepare the partitions with the commands
mkfs.ext4/dev/sda2/dev/sda3/dev/sda4 mkfs.ext4 mkfs.ext4
- So now we have to automatically mount different partitions at startup of Raspberry Pi. For this, just change the file /etc/fstab as below. We will see later in updating it to rights-manage because here partions are all mount with the user root.
/dev/sda2/media/usbdrive/internet ext4 defaults 0 0 /dev/sda3/media/usbdrive/private ext4 defaults 0 0 /dev/sda4/media/usbdrive/share ext4 defaults 0 0
So at home I created a directory /Media/usbdrive then a directory by partition usage
- Here is the result of occupation of disks
On the other hand, a point that I have not yet clarified it is why my memory went from 29 MB to 32 MB …
If you have evidence I'm interested because having regard to the objective of the project, 3Mo ça peut servir 🙂
Cheers for the installation of the first service